Package net.minecraft.block.entity
Class MobSpawnerBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.MobSpawnerBlockEntity
- All Implemented Interfaces:
Tickable
public class MobSpawnerBlockEntity extends BlockEntity implements Tickable
-
Field Summary
Fields Modifier and Type Field Description private MobSpawnerLogiclogicFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description MobSpawnerBlockEntity() -
Method Summary
Modifier and Type Method Description booleancopyItemDataRequiresOperator()voidfromTag(BlockState state, CompoundTag tag)MobSpawnerLogicgetLogic()booleanonSyncedBlockEvent(int type, int data)voidtick()CompoundTagtoInitialChunkDataTag()CompoundTagtoTag(CompoundTag tag)BlockEntityUpdateS2CPackettoUpdatePacket()Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, cancelRemoval, createFromTag, getCachedState, getPos, getRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, populateCrashReport, resetBlock, setLocation, setPos
-
Field Details
-
logic
-
-
Constructor Details
-
MobSpawnerBlockEntity
public MobSpawnerBlockEntity()
-
-
Method Details
-
fromTag
- Overrides:
fromTagin classBlockEntity
-
toTag
- Overrides:
toTagin classBlockEntity
-
tick
public void tick() -
toUpdatePacket
- Overrides:
toUpdatePacketin classBlockEntity
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTagin classBlockEntity
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Overrides:
onSyncedBlockEventin classBlockEntity
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperatorin classBlockEntity
-
getLogic
-