Package codechicken.lib.block
Class ModularBlockEntity.DataComponent
java.lang.Object
codechicken.lib.block.ModularBlockEntity.DataComponent
- Direct Known Subclasses:
InventoryComponent.Data,ValueComponent.Data
- Enclosing class:
ModularBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ModularBlockEntityprotected final ModularTileBlock.TileComponent<?> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataComponent(ModularBlockEntity tile, ModularTileBlock.TileComponent<?> tileComponent) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidload(net.minecraft.world.level.storage.ValueInput input) protected voidonClientPacket(net.minecraft.network.RegistryFriendlyByteBuf buf, net.neoforged.neoforge.network.handling.IPayloadContext ctx) protected voidonServerPacket(net.minecraft.network.RegistryFriendlyByteBuf buf, net.neoforged.neoforge.network.handling.IPayloadContext ctx) protected voidsave(net.minecraft.world.level.storage.ValueOutput output) protected final voidsendToClient(@Nullable net.minecraft.server.level.ServerPlayer to, Consumer<net.minecraft.network.RegistryFriendlyByteBuf> cons) protected final voidsendToServer(Consumer<net.minecraft.network.RegistryFriendlyByteBuf> cons)
-
Field Details
-
tile
-
tileComponent
-
-
Constructor Details
-
DataComponent
-
-
Method Details
-
sendToServer
-
onServerPacket
protected void onServerPacket(net.minecraft.network.RegistryFriendlyByteBuf buf, net.neoforged.neoforge.network.handling.IPayloadContext ctx) -
sendToClient
protected final void sendToClient(@Nullable @Nullable net.minecraft.server.level.ServerPlayer to, Consumer<net.minecraft.network.RegistryFriendlyByteBuf> cons) -
onClientPacket
protected void onClientPacket(net.minecraft.network.RegistryFriendlyByteBuf buf, net.neoforged.neoforge.network.handling.IPayloadContext ctx) -
save
protected void save(net.minecraft.world.level.storage.ValueOutput output) -
load
protected void load(net.minecraft.world.level.storage.ValueInput input)
-