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, setPosprivate final MobSpawnerLogic logic
public void fromTag(BlockState state, CompoundTag tag)
fromTag in class BlockEntitypublic CompoundTag toTag(CompoundTag tag)
toTag in class BlockEntity@Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
toUpdatePacket in class BlockEntitypublic CompoundTag toInitialChunkDataTag()
toInitialChunkDataTag in class BlockEntitypublic boolean onSyncedBlockEvent(int type,
int data)
onSyncedBlockEvent in class BlockEntitypublic boolean copyItemDataRequiresOperator()
copyItemDataRequiresOperator in class BlockEntitypublic MobSpawnerLogic getLogic()