Package net.minecraft.block.entity
Class BedBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BedBlockEntity
- Mappings:
Namespace Name official cshintermediary net/minecraft/class_2587named net/minecraft/block/entity/BedBlockEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
ConstructorsConstructorDescriptionBedBlockEntity(BlockPos pos, BlockState state) BedBlockEntity(BlockPos pos, BlockState state, DyeColor color) -
Method Summary
Modifier and TypeMethodDescriptiongetColor()voidImplement and return a packet that should be sent to players nearby when the observable state of this block entity changes.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, readNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, writeIdToNbt, writeNbt
-
Field Details
-
color
- Mappings:
Namespace Name Mixin selector official aLcsh;a:Lbyt;intermediary field_11869Lnet/minecraft/class_2587;field_11869:Lnet/minecraft/class_1767;named colorLnet/minecraft/block/entity/BedBlockEntity;color:Lnet/minecraft/util/DyeColor;
-
-
Constructor Details
-
BedBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcsh;<init>(Lgt;Lcur;)Vintermediary <init>Lnet/minecraft/class_2587;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/BedBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
BedBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcsh;<init>(Lgt;Lcur;Lbyt;)Vintermediary <init>Lnet/minecraft/class_2587;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1767;)Vnamed <init>Lnet/minecraft/block/entity/BedBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/DyeColor;)V
-
-
Method Details
-
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 cLcsh;c()Lsz;intermediary method_38237Lnet/minecraft/class_2587;method_38237()Lnet/minecraft/class_2622;named toUpdatePacketLnet/minecraft/block/entity/BedBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
getColor
- Mappings:
Namespace Name Mixin selector official dLcsh;d()Lbyt;intermediary method_11018Lnet/minecraft/class_2587;method_11018()Lnet/minecraft/class_1767;named getColorLnet/minecraft/block/entity/BedBlockEntity;getColor()Lnet/minecraft/util/DyeColor;
-
setColor
- Mappings:
Namespace Name Mixin selector official aLcsh;a(Lbyt;)Vintermediary method_11019Lnet/minecraft/class_2587;method_11019(Lnet/minecraft/class_1767;)Vnamed setColorLnet/minecraft/block/entity/BedBlockEntity;setColor(Lnet/minecraft/util/DyeColor;)V
-