Class PaucalBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
at.petrak.paucal.api.block.PaucalBlockEntity

public abstract class PaucalBlockEntity extends net.minecraft.world.level.block.entity.BlockEntity
  • Field Summary

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaucalBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> pType, net.minecraft.core.BlockPos pWorldPosition, net.minecraft.world.level.block.state.BlockState pBlockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
     
    net.minecraft.nbt.CompoundTag
     
    void
    load(net.minecraft.nbt.CompoundTag pTag)
     
    protected abstract void
    loadModData(net.minecraft.nbt.CompoundTag tag)
     
    protected void
    saveAdditional(net.minecraft.nbt.CompoundTag pTag)
     
    protected abstract void
    saveModData(net.minecraft.nbt.CompoundTag tag)
     
    void
    Manually sync the data to the client.

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PaucalBlockEntity

      public PaucalBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> pType, net.minecraft.core.BlockPos pWorldPosition, net.minecraft.world.level.block.state.BlockState pBlockState)
  • Method Details

    • saveModData

      protected abstract void saveModData(net.minecraft.nbt.CompoundTag tag)
    • loadModData

      protected abstract void loadModData(net.minecraft.nbt.CompoundTag tag)
    • saveAdditional

      protected void saveAdditional(net.minecraft.nbt.CompoundTag pTag)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • load

      public void load(net.minecraft.nbt.CompoundTag pTag)
      Overrides:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdatePacket

      public net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • sync

      public void sync()
      Manually sync the data to the client.