Class ModularBlockEntity.DataComponent

java.lang.Object
codechicken.lib.block.ModularBlockEntity.DataComponent
Direct Known Subclasses:
InventoryComponent.Data, ValueComponent.Data
Enclosing class:
ModularBlockEntity

public abstract static class ModularBlockEntity.DataComponent extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • sendToServer

      protected final void sendToServer(Consumer<net.minecraft.network.RegistryFriendlyByteBuf> cons)
    • 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)