Class BedBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BedBlockEntity

public class BedBlockEntity extends BlockEntity
Mappings:
Namespace Name
official clv
intermediary net/minecraft/class_2587
named net/minecraft/block/entity/BedBlockEntity
  • Field Details

    • color

      private DyeColor color
      Mappings:
      Namespace Name Mixin selector
      official a Lclv;a:Lbta;
      intermediary field_11869 Lnet/minecraft/class_2587;field_11869:Lnet/minecraft/class_1767;
      named color Lnet/minecraft/block/entity/BedBlockEntity;color:Lnet/minecraft/util/DyeColor;
  • Constructor Details

    • BedBlockEntity

      public BedBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lclv;<init>(Lgh;Lcoc;)V
      intermediary <init> Lnet/minecraft/class_2587;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named <init> Lnet/minecraft/block/entity/BedBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • BedBlockEntity

      public BedBlockEntity(BlockPos pos, BlockState state, DyeColor color)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lclv;<init>(Lgh;Lcoc;Lbta;)V
      intermediary <init> Lnet/minecraft/class_2587;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1767;)V
      named <init> Lnet/minecraft/block/entity/BedBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/DyeColor;)V
  • Method Details

    • toUpdatePacket

      public BlockEntityUpdateS2CPacket toUpdatePacket()
      Description copied from class: BlockEntity
      Implement 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 data is 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:
      toUpdatePacket in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lclv;c()Lrf;
      intermediary method_38237 Lnet/minecraft/class_2587;method_38237()Lnet/minecraft/class_2622;
      named toUpdatePacket Lnet/minecraft/block/entity/BedBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
    • getColor

      public DyeColor getColor()
      Mappings:
      Namespace Name Mixin selector
      official d Lclv;d()Lbta;
      intermediary method_11018 Lnet/minecraft/class_2587;method_11018()Lnet/minecraft/class_1767;
      named getColor Lnet/minecraft/block/entity/BedBlockEntity;getColor()Lnet/minecraft/util/DyeColor;
    • setColor

      public void setColor(DyeColor color)
      Mappings:
      Namespace Name Mixin selector
      official a Lclv;a(Lbta;)V
      intermediary method_11019 Lnet/minecraft/class_2587;method_11019(Lnet/minecraft/class_1767;)V
      named setColor Lnet/minecraft/block/entity/BedBlockEntity;setColor(Lnet/minecraft/util/DyeColor;)V