Package net.minecraft.block.entity
Class MobSpawnerBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.MobSpawnerBlockEntity
- Mappings:
Namespace Name official ctqintermediary net/minecraft/class_2636named net/minecraft/block/entity/MobSpawnerBlockEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclientTick(World world, BlockPos pos, BlockState state, MobSpawnerBlockEntity blockEntity) booleangetLogic()booleanonSyncedBlockEvent(int type, int data) voidreadNbt(NbtCompound nbt) static voidserverTick(World world, BlockPos pos, BlockState state, MobSpawnerBlockEntity blockEntity) Serializes the state of this block entity that is observable by clients.Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes.protected voidwriteNbt(NbtCompound nbt) Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, writeIdToNbt
-
Field Details
-
logic
- Mappings:
Namespace Name Mixin selector official aLctq;a:Lcfc;intermediary field_12114Lnet/minecraft/class_2636;field_12114:Lnet/minecraft/class_1917;named logicLnet/minecraft/block/entity/MobSpawnerBlockEntity;logic:Lnet/minecraft/world/MobSpawnerLogic;
-
-
Constructor Details
-
MobSpawnerBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lctq;<init>(Lgt;Lcur;)Vintermediary <init>Lnet/minecraft/class_2636;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/MobSpawnerBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
readNbt
- Overrides:
readNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcsl;a(Lpj;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
- Overrides:
writeNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcsl;b(Lpj;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, MobSpawnerBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official aLctq;a(Lcga;Lgt;Lcur;Lctq;)Vintermediary method_31696Lnet/minecraft/class_2636;method_31696(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2636;)Vnamed clientTickLnet/minecraft/block/entity/MobSpawnerBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/MobSpawnerBlockEntity;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, MobSpawnerBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official bLctq;b(Lcga;Lgt;Lcur;Lctq;)Vintermediary method_31697Lnet/minecraft/class_2636;method_31697(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2636;)Vnamed serverTickLnet/minecraft/block/entity/MobSpawnerBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/MobSpawnerBlockEntity;)V
-
toUpdatePacket
Description copied from class:BlockEntityImplement and return a packet that should be sent to players nearby when the observable state of this block entity changes. Return null to not send an update packet.If the data returned by
initial chunk datais suitable for updates, the following shortcut can be used to create an update packet:BlockEntityUpdateS2CPacket.create(this).The NBT will be passed to
BlockEntity.readNbt(net.minecraft.nbt.NbtCompound)on the client.- Overrides:
toUpdatePacketin classBlockEntity- Mappings:
Namespace Name Mixin selector official cLctq;c()Lsz;intermediary method_38251Lnet/minecraft/class_2636;method_38251()Lnet/minecraft/class_2622;named toUpdatePacketLnet/minecraft/block/entity/MobSpawnerBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataNbt
Serializes the state of this block entity that is observable by clients. It is sent alongside the initial chunk data, as well as when the block entity implementsBlockEntity.toUpdatePacket()and decides to use the defaultBlockEntityUpdateS2CPacket.- Overrides:
toInitialChunkDataNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official ab_Lcsl;ab_()Lpj;intermediary method_16887Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data) - Overrides:
onSyncedBlockEventin classBlockEntity- Mappings:
Namespace Name Mixin selector official a_Lcsl;a_(II)Zintermediary method_11004Lnet/minecraft/class_2586;method_11004(II)Znamed onSyncedBlockEventLnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperatorin classBlockEntity- Mappings:
Namespace Name Mixin selector official uLcsl;u()Zintermediary method_11011Lnet/minecraft/class_2586;method_11011()Znamed copyItemDataRequiresOperatorLnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
getLogic
- Mappings:
Namespace Name Mixin selector official dLctq;d()Lcfc;intermediary method_11390Lnet/minecraft/class_2636;method_11390()Lnet/minecraft/class_1917;named getLogicLnet/minecraft/block/entity/MobSpawnerBlockEntity;getLogic()Lnet/minecraft/world/MobSpawnerLogic;
-