Interface BlockEntityExtension


public interface BlockEntityExtension
Extensions to BlockEntity, implement this on to your class.
  • Method Details

    • loadClientData

      @Environment(CLIENT) void loadClientData(net.minecraft.world.level.block.state.BlockState pos, net.minecraft.nbt.CompoundTag tag)
      Handles data sent by saveClientData(CompoundTag) on the server.
    • saveClientData

      net.minecraft.nbt.CompoundTag saveClientData(net.minecraft.nbt.CompoundTag tag)
      Writes data to sync to the client.
    • syncData

      @NonExtendable default void syncData()