Class ValueComponent.Data
java.lang.Object
codechicken.lib.block.ModularBlockEntity.DataComponent
codechicken.lib.block.component.tile.ValueComponent.Data
- Enclosing class:
ValueComponent<V>
-
Field Summary
Fields inherited from class codechicken.lib.block.ModularBlockEntity.DataComponent
tile, tileComponent -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedData(ModularBlockEntity tile, ModularTileBlock.TileComponent<?> tileComponent) -
Method Summary
Modifier and TypeMethodDescriptionvoidget()protected voidload(net.minecraft.world.level.storage.ValueInput input) voidprotected voidonClientPacket(net.minecraft.network.RegistryFriendlyByteBuf buf, net.neoforged.neoforge.network.handling.IPayloadContext ctx) protected voidsave(net.minecraft.world.level.storage.ValueOutput output) voidvoidMethods inherited from class codechicken.lib.block.ModularBlockEntity.DataComponent
onServerPacket, sendToClient, sendToServer
-
Constructor Details
-
Data
-
-
Method Details
-
onChanged
-
get
-
set
-
forceSet
-
onChanged
public void onChanged() -
syncToClient
public void syncToClient() -
onClientPacket
protected void onClientPacket(net.minecraft.network.RegistryFriendlyByteBuf buf, net.neoforged.neoforge.network.handling.IPayloadContext ctx) - Overrides:
onClientPacketin classModularBlockEntity.DataComponent
-
save
protected void save(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
savein classModularBlockEntity.DataComponent
-
load
protected void load(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadin classModularBlockEntity.DataComponent
-