public class MobSpawnerBlockEntity extends BlockEntity implements Tickable
Modifier and Type | Field and Description |
---|---|
private MobSpawnerLogic |
logic |
pos, removed, world
Constructor and Description |
---|
MobSpawnerBlockEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
copyItemDataRequiresOperator() |
void |
fromTag(BlockState state,
CompoundTag tag) |
MobSpawnerLogic |
getLogic() |
boolean |
onSyncedBlockEvent(int type,
int data) |
void |
tick() |
CompoundTag |
toInitialChunkDataTag() |
CompoundTag |
toTag(CompoundTag tag) |
BlockEntityUpdateS2CPacket |
toUpdatePacket() |
applyMirror, applyRotation, cancelRemoval, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, populateCrashReport, resetBlock, setLocation, setPos
private final MobSpawnerLogic logic
public void fromTag(BlockState state, CompoundTag tag)
fromTag
in class BlockEntity
public CompoundTag toTag(CompoundTag tag)
toTag
in class BlockEntity
@Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
toUpdatePacket
in class BlockEntity
public CompoundTag toInitialChunkDataTag()
toInitialChunkDataTag
in class BlockEntity
public boolean onSyncedBlockEvent(int type, int data)
onSyncedBlockEvent
in class BlockEntity
public boolean copyItemDataRequiresOperator()
copyItemDataRequiresOperator
in class BlockEntity
public MobSpawnerLogic getLogic()