Class BedBlock

All Implemented Interfaces:
BlockEntityProvider, Itemable

public class BedBlock extends HorizotalFacingBlock implements BlockEntityProvider
Mappings:
Namespace Name
official bcq
intermediary net/minecraft/class_109
named net/minecraft/block/BedBlock
  • Field Details

    • field_17739

      public static final EnumProperty<class_2176> field_17739
      Mappings:
      Namespace Name Mixin selector
      official a Lbcq;a:Lbmh;
      intermediary field_17739 Lnet/minecraft/class_109;field_17739:Lnet/minecraft/class_2245;
      named field_17739 Lnet/minecraft/block/BedBlock;field_17739:Lnet/minecraft/state/property/EnumProperty;
    • field_17740

      public static final BooleanProperty field_17740
      Mappings:
      Namespace Name Mixin selector
      official b Lbcq;b:Lbmb;
      intermediary field_17740 Lnet/minecraft/class_109;field_17740:Lnet/minecraft/class_2243;
      named field_17740 Lnet/minecraft/block/BedBlock;field_17740:Lnet/minecraft/state/property/BooleanProperty;
    • field_17741

      protected static final VoxelShape field_17741
      Mappings:
      Namespace Name Mixin selector
      official c Lbcq;c:Lcew;
      intermediary field_17741 Lnet/minecraft/class_109;field_17741:Lnet/minecraft/class_4100;
      named field_17741 Lnet/minecraft/block/BedBlock;field_17741:Lnet/minecraft/util/shapes/VoxelShape;
    • field_17742

      private final DyeColor field_17742
      Mappings:
      Namespace Name Mixin selector
      official o Lbcq;o:Lasc;
      intermediary field_17742 Lnet/minecraft/class_109;field_17742:Lnet/minecraft/class_2674;
      named field_17742 Lnet/minecraft/block/BedBlock;field_17742:Lnet/minecraft/util/DyeColor;
  • Constructor Details

  • Method Details

    • getMaterialColor

      public MaterialColor getMaterialColor(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getMaterialColor in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lbcs;c(Lblc;Laxk;Lel;)Lbzb;
      intermediary method_8680 Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_65;
      named getMaterialColor Lnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/MaterialColor;
    • method_421

      public boolean method_421(BlockState blockState, World world, BlockPos blockPos, PlayerEntity playerEntity, Hand hand, Direction direction, float float2, float float3, float float4)
      Overrides:
      method_421 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;Laog;Ladk;Leq;FFF)Z
      intermediary method_421 Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Z
      named method_421 Lnet/minecraft/block/Block;method_421(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Z
    • getPlayer

      @Nullable private PlayerEntity getPlayer(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcq;a(Laxy;Lel;)Laog;
      intermediary method_8631 Lnet/minecraft/class_109;method_8631(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_988;
      named getPlayer Lnet/minecraft/block/BedBlock;getPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/player/PlayerEntity;
    • method_11562

      public boolean method_11562(BlockState state)
      Overrides:
      method_11562 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;)Z
      intermediary method_11562 Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Z
      named method_11562 Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
    • onLandedUpon

      public void onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
      Runs when an entity falls on the block.
      Overrides:
      onLandedUpon in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      entity - The entity who fell on the block
      distance - The relative height from which the entity fell
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxy;Lel;Laer;F)V
      intermediary method_8647 Lnet/minecraft/class_197;method_8647(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;F)V
      named onLandedUpon Lnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
    • method_8650

      public void method_8650(BlockView blockView, Entity entity)
      Overrides:
      method_8650 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxk;Laer;)V
      intermediary method_8650 Lnet/minecraft/class_197;method_8650(Lnet/minecraft/class_1158;Lnet/minecraft/class_864;)V
      named method_8650 Lnet/minecraft/block/Block;method_8650(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)V
    • method_16575

      public BlockState method_16575(BlockState blockState, Direction direction, BlockState blockState2, IWorld iWorld, BlockPos blockPos, BlockPos blockPos2)
      Overrides:
      method_16575 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Leq;Lblc;Laxz;Lel;Lel;)Lblc;
      intermediary method_16575 Lnet/minecraft/class_197;method_16575(Lnet/minecraft/class_2232;Lnet/minecraft/class_1354;Lnet/minecraft/class_2232;Lnet/minecraft/class_3598;Lnet/minecraft/class_2552;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;
      named method_16575 Lnet/minecraft/block/Block;method_16575(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • method_16559

      private static Direction method_16559(class_2176 class_2176, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcq;a(Lblz;Leq;)Leq;
      intermediary method_16559 Lnet/minecraft/class_109;method_16559(Lnet/minecraft/class_2176;Lnet/minecraft/class_1354;)Lnet/minecraft/class_1354;
      named method_16559 Lnet/minecraft/block/BedBlock;method_16559(Lnet/minecraft/class_2176;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;
    • method_8651

      public void method_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
      Overrides:
      method_8651 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxy;Laog;Lel;Lblc;Lbji;Late;)V
      intermediary method_8651 Lnet/minecraft/class_197;method_8651(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_226;Lnet/minecraft/class_1071;)V
      named method_8651 Lnet/minecraft/block/Block;method_8651(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
    • method_8659

      public void method_8659(BlockState blockState, World world, BlockPos blockPos, BlockState blockState2, boolean bool)
      Overrides:
      method_8659 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;Lblc;Z)V
      intermediary method_8659 Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Z)V
      named method_8659 Lnet/minecraft/block/Block;method_8659(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
    • onBreakByPlayer

      public void onBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player)
      Runs when the block is broken by a player.
      Overrides:
      onBreakByPlayer in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      player - The player who broke the block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxy;Lel;Lblc;Laog;)V
      intermediary method_8644 Lnet/minecraft/class_197;method_8644(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)V
      named onBreakByPlayer Lnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
    • method_16563

      @Nullable public BlockState method_16563(ItemPlacementContext itemPlacementContext)
      Overrides:
      method_16563 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lark;)Lblc;
      intermediary method_16563 Lnet/minecraft/class_197;method_16563(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2232;
      named method_16563 Lnet/minecraft/block/Block;method_16563(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • method_16568

      public Itemable method_16568(BlockState blockState, World world, BlockPos blockPos, int int2)
      Overrides:
      method_16568 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;I)Laxx;
      intermediary method_16568 Lnet/minecraft/class_197;method_16568(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;I)Lnet/minecraft/class_3597;
      named method_16568 Lnet/minecraft/block/Block;method_16568(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/item/Itemable;
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getOutlineShape in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxk;Lel;)Lcew;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_4100;
      named getOutlineShape Lnet/minecraft/block/Block;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shapes/VoxelShape;
    • method_13704

      @Environment(CLIENT) public boolean method_13704(BlockState state)
      Overrides:
      method_13704 in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lbcs;b(Lblc;)Z
      intermediary method_13704 Lnet/minecraft/class_197;method_13704(Lnet/minecraft/class_2232;)Z
      named method_13704 Lnet/minecraft/block/Block;method_13704(Lnet/minecraft/block/BlockState;)Z
    • method_8629

      @Nullable public static BlockPos method_8629(BlockView blockView, BlockPos blockPos, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcq;a(Laxk;Lel;I)Lel;
      intermediary method_8629 Lnet/minecraft/class_109;method_8629(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;I)Lnet/minecraft/class_2552;
      named method_8629 Lnet/minecraft/block/BedBlock;method_8629(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/util/math/BlockPos;
    • method_16558

      protected static boolean method_16558(BlockView blockView, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcq;a(Laxk;Lel;)Z
      intermediary method_16558 Lnet/minecraft/class_109;method_16558(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Z
      named method_16558 Lnet/minecraft/block/BedBlock;method_16558(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getPistonBehavior

      public PistonBehavior getPistonBehavior(BlockState state)
      Overrides:
      getPistonBehavior in class Block
      Mappings:
      Namespace Name Mixin selector
      official j Lbcs;j(Lblc;)Lbzc;
      intermediary method_11567 Lnet/minecraft/class_197;method_11567(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2768;
      named getPistonBehavior Lnet/minecraft/block/Block;getPistonBehavior(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/piston/PistonBehavior;
    • getRenderLayerType

      public BlockRenderLayer getRenderLayerType()
      Returns the appropriate RenderLayer for a block. Only called on the client.
      Overrides:
      getRenderLayerType in class Block
      Returns:
      The block's RenderLayer
      Mappings:
      Namespace Name Mixin selector
      official c Lbcs;c()Laxl;
      intermediary method_8687 Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
    • getBlockRenderType

      public BlockRenderType getBlockRenderType(BlockState state)
      Overrides:
      getBlockRenderType in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lbcs;c(Lblc;)Lbgy;
      intermediary method_11552 Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;
      named getBlockRenderType Lnet/minecraft/block/Block;getBlockRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
    • method_14307

      public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction)
      Overrides:
      method_14307 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxk;Lblc;Lel;Leq;)Lblb;
      intermediary method_14307 Lnet/minecraft/class_197;method_14307(Lnet/minecraft/class_1158;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_3225;
      named method_14307 Lnet/minecraft/block/Block;method_14307(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/BlockRenderLayer;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lble$a;)V
      intermediary method_16576 Lnet/minecraft/class_197;method_16576(Lnet/minecraft/class_2233$class_3757;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • method_16671

      public BlockEntity method_16671(BlockView blockView)
      Specified by:
      method_16671 in interface BlockEntityProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lben;a(Laxk;)Lbji;
      intermediary method_16671 Lnet/minecraft/class_1451;method_16671(Lnet/minecraft/class_1158;)Lnet/minecraft/class_226;
      named method_16671 Lnet/minecraft/block/BlockEntityProvider;method_16671(Lnet/minecraft/world/BlockView;)Lnet/minecraft/block/entity/BlockEntity;
    • onPlaced

      public void onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
      Runs when the block is placed by an entity
      Overrides:
      onPlaced in class Block
      Parameters:
      world - The world that the block is in
      pos - The block's position
      state - The block's BlockState
      placer - The entity who placed the block
      itemStack - ItemStack instance
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxy;Lel;Lblc;Lafa;Late;)V
      intermediary method_419 Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)V
      named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
    • method_16560

      @Environment(CLIENT) public DyeColor method_16560()
      Mappings:
      Namespace Name Mixin selector
      official d Lbcq;d()Lasc;
      intermediary method_16560 Lnet/minecraft/class_109;method_16560()Lnet/minecraft/class_2674;
      named method_16560 Lnet/minecraft/block/BedBlock;method_16560()Lnet/minecraft/util/DyeColor;
    • getRenderingSeed

      @Environment(CLIENT) public long getRenderingSeed(BlockState state, BlockPos pos)
      Overrides:
      getRenderingSeed in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Lel;)J
      intermediary method_16574 Lnet/minecraft/class_197;method_16574(Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;)J
      named getRenderingSeed Lnet/minecraft/block/Block;getRenderingSeed(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)J
    • canPlaceAtSide

      public boolean canPlaceAtSide(BlockState state, BlockView world, BlockPos pos, BlockPlacementEnvironment blockPlacementEnvironment)
      Overrides:
      canPlaceAtSide in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxk;Lel;Lcbf;)Z
      intermediary method_8663 Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_4064;)Z
      named canPlaceAtSide Lnet/minecraft/block/Block;canPlaceAtSide(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockPlacementEnvironment;)Z