public class MobSpawnerBlockEntity extends BlockEntity
| Modifier and Type | Field and Description |
|---|---|
private MobSpawnerLogic |
logic |
pos, removed, world| Constructor and Description |
|---|
MobSpawnerBlockEntity(BlockPos blockPos,
BlockState blockState) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clientTick(World world,
BlockPos blockPos,
BlockState blockState,
MobSpawnerBlockEntity mobSpawnerBlockEntity) |
boolean |
copyItemDataRequiresOperator() |
void |
fromTag(CompoundTag compoundTag) |
MobSpawnerLogic |
getLogic() |
boolean |
onSyncedBlockEvent(int type,
int data) |
static void |
serverTick(World world,
BlockPos blockPos,
BlockState blockState,
MobSpawnerBlockEntity mobSpawnerBlockEntity) |
CompoundTag |
toInitialChunkDataTag() |
CompoundTag |
toTag(CompoundTag tag) |
BlockEntityUpdateS2CPacket |
toUpdatePacket() |
cancelRemoval, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, setCachedState, setWorldprivate final MobSpawnerLogic logic
public MobSpawnerBlockEntity(BlockPos blockPos, BlockState blockState)
public void fromTag(CompoundTag compoundTag)
fromTag in class BlockEntitypublic CompoundTag toTag(CompoundTag tag)
toTag in class BlockEntitypublic static void clientTick(World world, BlockPos blockPos, BlockState blockState, MobSpawnerBlockEntity mobSpawnerBlockEntity)
public static void serverTick(World world, BlockPos blockPos, BlockState blockState, MobSpawnerBlockEntity mobSpawnerBlockEntity)
@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()