Package net.minecraft.block
Class BedBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.HorizotalFacingBlock
net.minecraft.block.BedBlock
- All Implemented Interfaces:
BlockEntityProvider,Itemable
- Mappings:
Namespace Name official bcqintermediary net/minecraft/class_109named net/minecraft/block/BedBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.Builder, Block.NeighborGroup, Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnumProperty<class_2176>static final BooleanPropertyprotected static final VoxelShapeprivate final DyeColorFields inherited from class net.minecraft.block.HorizotalFacingBlock
field_18369Fields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockSoundGroup, collidable, hardness, lightLevel, LOGGER, material, materialColor, randomTicks, stateManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) booleancanPlaceAtSide(BlockState state, BlockView world, BlockPos pos, BlockPlacementEnvironment blockPlacementEnvironment) getBlockRenderType(BlockState state) getMaterialColor(BlockState state, BlockView view, BlockPos pos) getOutlineShape(BlockState state, BlockView world, BlockPos pos) getPistonBehavior(BlockState state) private PlayerEntitylonggetRenderingSeed(BlockState state, BlockPos pos) Returns the appropriate RenderLayer for a block.booleanmethod_11562(BlockState state) booleanmethod_13704(BlockState state) method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) protected static booleanmethod_16558(BlockView blockView, BlockPos blockPos) private static Directionmethod_16559(class_2176 class_2176, Direction direction) method_16563(ItemPlacementContext itemPlacementContext) method_16568(BlockState blockState, World world, BlockPos blockPos, int int2) method_16575(BlockState blockState, Direction direction, BlockState blockState2, IWorld iWorld, BlockPos blockPos, BlockPos blockPos2) method_16671(BlockView blockView) booleanmethod_421(BlockState blockState, World world, BlockPos blockPos, PlayerEntity playerEntity, Hand hand, Direction direction, float float2, float float3, float float4) static BlockPosmethod_8629(BlockView blockView, BlockPos blockPos, int int2) voidmethod_8650(BlockView blockView, Entity entity) voidmethod_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack stack) voidmethod_8659(BlockState blockState, World world, BlockPos blockPos, BlockState blockState2, boolean bool) voidonBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player) Runs when the block is broken by a player.voidonLandedUpon(World world, BlockPos pos, Entity entity, float distance) Runs when an entity falls on the block.voidonPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Runs when the block is placed by an entityMethods inherited from class net.minecraft.block.HorizotalFacingBlock
withMirror, withRotationMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, canMobSpawnInside, canReplace, createCuboidShape, createStackFromBlock, dropExperience, getBlastResistance, getBlockFromItem, getCollisionShape, getComparatorOutput, getDefaultState, getFluidState, getHardness, getItem, getLightSubtracted, getLuminance, getMaterial, getOffsetPos, getOffsetType, getRawIdFromState, getRayTraceShape, getSlipperiness, getSoundGroup, getStateByRawId, getStateManager, getTranslationKey, hasBlockEntity, hasCollision, hasRandomTicks, hasStats, isAir, isFaceFullSquare, isFullBoundsCubeForCulling, isShapeFullCube, isTranslucent, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_13315, method_13703, method_14308, method_14309, method_16564, method_16565, method_16566, method_16569, method_16570, method_16572, method_16573, method_16580, method_16582, method_16583, method_16584, method_16585, method_16586, method_16588, method_16592, method_16593, method_16596, method_16599, method_16600, method_397, method_400, method_403, method_410, method_414, method_416, method_420, method_435, method_8640, method_8653, method_8661, method_8664, method_8668, method_8669, method_8674, onBlockBreak, onBreak, onDestroyedByExplosion, onSteppedOn, pushEntitiesUpBeforeBlockChange, rainTick, requiresSilkTouch, setDefaultState, setup, shouldDropItemsOnExplosion, toString
-
Field Details
-
field_17739
- Mappings:
Namespace Name Mixin selector official aLbcq;a:Lbmh;intermediary field_17739Lnet/minecraft/class_109;field_17739:Lnet/minecraft/class_2245;named field_17739Lnet/minecraft/block/BedBlock;field_17739:Lnet/minecraft/state/property/EnumProperty;
-
field_17740
- Mappings:
Namespace Name Mixin selector official bLbcq;b:Lbmb;intermediary field_17740Lnet/minecraft/class_109;field_17740:Lnet/minecraft/class_2243;named field_17740Lnet/minecraft/block/BedBlock;field_17740:Lnet/minecraft/state/property/BooleanProperty;
-
field_17741
- Mappings:
Namespace Name Mixin selector official cLbcq;c:Lcew;intermediary field_17741Lnet/minecraft/class_109;field_17741:Lnet/minecraft/class_4100;named field_17741Lnet/minecraft/block/BedBlock;field_17741:Lnet/minecraft/util/shapes/VoxelShape;
-
field_17742
- Mappings:
Namespace Name Mixin selector official oLbcq;o:Lasc;intermediary field_17742Lnet/minecraft/class_109;field_17742:Lnet/minecraft/class_2674;named field_17742Lnet/minecraft/block/BedBlock;field_17742:Lnet/minecraft/util/DyeColor;
-
-
Constructor Details
-
BedBlock
-
-
Method Details
-
getMaterialColor
- Overrides:
getMaterialColorin classBlock- Mappings:
Namespace Name Mixin selector official cLbcs;c(Lblc;Laxk;Lel;)Lbzb;intermediary method_8680Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_65;named getMaterialColorLnet/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_421in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxy;Lel;Laog;Ladk;Leq;FFF)Zintermediary method_421Lnet/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)Znamed method_421Lnet/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
- Mappings:
Namespace Name Mixin selector official aLbcq;a(Laxy;Lel;)Laog;intermediary method_8631Lnet/minecraft/class_109;method_8631(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_988;named getPlayerLnet/minecraft/block/BedBlock;getPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/player/PlayerEntity;
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
-
onLandedUpon
Runs when an entity falls on the block.- Overrides:
onLandedUponin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionentity- The entity who fell on the blockdistance- The relative height from which the entity fell- Mappings:
Namespace Name Mixin selector official aLbcs;a(Laxy;Lel;Laer;F)Vintermediary method_8647Lnet/minecraft/class_197;method_8647(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;F)Vnamed onLandedUponLnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
-
method_8650
- Overrides:
method_8650in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Laxk;Laer;)Vintermediary method_8650Lnet/minecraft/class_197;method_8650(Lnet/minecraft/class_1158;Lnet/minecraft/class_864;)Vnamed method_8650Lnet/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_16575in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Leq;Lblc;Laxz;Lel;Lel;)Lblc;intermediary method_16575Lnet/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_16575Lnet/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
- Mappings:
Namespace Name Mixin selector official aLbcq;a(Lblz;Leq;)Leq;intermediary method_16559Lnet/minecraft/class_109;method_16559(Lnet/minecraft/class_2176;Lnet/minecraft/class_1354;)Lnet/minecraft/class_1354;named method_16559Lnet/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_8651in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Laxy;Laog;Lel;Lblc;Lbji;Late;)Vintermediary method_8651Lnet/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;)Vnamed method_8651Lnet/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_8659in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxy;Lel;Lblc;Z)Vintermediary method_8659Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Z)Vnamed method_8659Lnet/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
Runs when the block is broken by a player.- Overrides:
onBreakByPlayerin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateplayer- The player who broke the block- Mappings:
Namespace Name Mixin selector official aLbcs;a(Laxy;Lel;Lblc;Laog;)Vintermediary method_8644Lnet/minecraft/class_197;method_8644(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)Vnamed onBreakByPlayerLnet/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
- Overrides:
method_16563in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lark;)Lblc;intermediary method_16563Lnet/minecraft/class_197;method_16563(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2232;named method_16563Lnet/minecraft/block/Block;method_16563(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
method_16568
- Overrides:
method_16568in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxy;Lel;I)Laxx;intermediary method_16568Lnet/minecraft/class_197;method_16568(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;I)Lnet/minecraft/class_3597;named method_16568Lnet/minecraft/block/Block;method_16568(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/item/Itemable;
-
getOutlineShape
- Overrides:
getOutlineShapein classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxk;Lel;)Lcew;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_4100;named getOutlineShapeLnet/minecraft/block/Block;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shapes/VoxelShape;
-
method_13704
- Overrides:
method_13704in classBlock- Mappings:
Namespace Name Mixin selector official bLbcs;b(Lblc;)Zintermediary method_13704Lnet/minecraft/class_197;method_13704(Lnet/minecraft/class_2232;)Znamed method_13704Lnet/minecraft/block/Block;method_13704(Lnet/minecraft/block/BlockState;)Z
-
method_8629
- Mappings:
Namespace Name Mixin selector official aLbcq;a(Laxk;Lel;I)Lel;intermediary method_8629Lnet/minecraft/class_109;method_8629(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;I)Lnet/minecraft/class_2552;named method_8629Lnet/minecraft/block/BedBlock;method_8629(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/util/math/BlockPos;
-
method_16558
- Mappings:
Namespace Name Mixin selector official aLbcq;a(Laxk;Lel;)Zintermediary method_16558Lnet/minecraft/class_109;method_16558(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed method_16558Lnet/minecraft/block/BedBlock;method_16558(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
getPistonBehavior
- Overrides:
getPistonBehaviorin classBlock- Mappings:
Namespace Name Mixin selector official jLbcs;j(Lblc;)Lbzc;intermediary method_11567Lnet/minecraft/class_197;method_11567(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2768;named getPistonBehaviorLnet/minecraft/block/Block;getPistonBehavior(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/piston/PistonBehavior;
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Overrides:
getRenderLayerTypein classBlock- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official cLbcs;c()Laxl;intermediary method_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
-
getBlockRenderType
- Overrides:
getBlockRenderTypein classBlock- Mappings:
Namespace Name Mixin selector official cLbcs;c(Lblc;)Lbgy;intermediary method_11552Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;named getBlockRenderTypeLnet/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_14307in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Laxk;Lblc;Lel;Leq;)Lblb;intermediary method_14307Lnet/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_14307Lnet/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
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lble$a;)Vintermediary method_16576Lnet/minecraft/class_197;method_16576(Lnet/minecraft/class_2233$class_3757;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
method_16671
- Specified by:
method_16671in interfaceBlockEntityProvider- Mappings:
Namespace Name Mixin selector official aLben;a(Laxk;)Lbji;intermediary method_16671Lnet/minecraft/class_1451;method_16671(Lnet/minecraft/class_1158;)Lnet/minecraft/class_226;named method_16671Lnet/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:
onPlacedin classBlock- Parameters:
world- The world that the block is inpos- The block's positionstate- The block's BlockStateplacer- The entity who placed the blockitemStack- ItemStack instance- Mappings:
Namespace Name Mixin selector official aLbcs;a(Laxy;Lel;Lblc;Lafa;Late;)Vintermediary method_419Lnet/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;)Vnamed onPlacedLnet/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
- Mappings:
Namespace Name Mixin selector official dLbcq;d()Lasc;intermediary method_16560Lnet/minecraft/class_109;method_16560()Lnet/minecraft/class_2674;named method_16560Lnet/minecraft/block/BedBlock;method_16560()Lnet/minecraft/util/DyeColor;
-
getRenderingSeed
- Overrides:
getRenderingSeedin classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Lel;)Jintermediary method_16574Lnet/minecraft/class_197;method_16574(Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;)Jnamed getRenderingSeedLnet/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:
canPlaceAtSidein classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxk;Lel;Lcbf;)Zintermediary method_8663Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_4064;)Znamed canPlaceAtSideLnet/minecraft/block/Block;canPlaceAtSide(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockPlacementEnvironment;)Z
-