net.minecraft.world.level.block

public class BedBlock

extends HorizontalDirectionalBlock implements EntityBlock

All mapped superinterfaces:

ItemLike, EntityBlock

bug
net.minecraft.world.level.block.BedBlock
net.minecraft.class_2244
net.minecraft.block.BedBlock
net.minecraft.block.BedBlock
net.minecraft.server.v1_16_R2.BlockBed

Field summary

Modifier and TypeField
public static final EnumProperty<BedPart>
a
PART
field_9967
PART
field_176472_a
PART
public static final BooleanProperty
b
OCCUPIED
field_9968
OCCUPIED
field_176471_b
OCCUPIED
protected static final VoxelShape
c
BASE
field_16788
TOP_SHAPE
field_220176_c
protected static final VoxelShape
d
LEG_NORTH_WEST
field_16782
LEG_1_SHAPE
field_220177_d
protected static final VoxelShape
e
LEG_SOUTH_WEST
field_16784
LEG_2_SHAPE
field_220178_e
protected static final VoxelShape
f
LEG_NORTH_EAST
field_16786
LEG_3_SHAPE
field_220179_f
protected static final VoxelShape
g
LEG_SOUTH_EAST
field_16789
LEG_4_SHAPE
field_220180_g
protected static final VoxelShape
h
NORTH_SHAPE
field_16787
NORTH_SHAPE
field_220181_h
protected static final VoxelShape
i
SOUTH_SHAPE
field_16785
SOUTH_SHAPE
field_220182_i
protected static final VoxelShape
j
WEST_SHAPE
field_16783
WEST_SHAPE
field_220183_j
protected static final VoxelShape
k
EAST_SHAPE
field_16790
EAST_SHAPE
field_220184_k
private final DyeColor
o
color
field_9966
color
field_196352_y
color

Constructor summary

ModifierConstructor
public (DyeColor color, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public InteractionResult
a(cee arg0, bru arg1, fx arg2, bft arg3, aoq arg4, dcg arg5)
use(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, InteractionHand arg4, BlockHitResult arg5)
method_9534(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_1268 arg4, class_3965 arg5)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, Hand arg4, BlockHitResult arg5)
func_225533_a_(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, Hand arg4, BlockRayTraceResult arg5)
interact(IBlockData arg0, World arg1, BlockPosition arg2, EntityHuman arg3, EnumHand arg4, MovingObjectPositionBlock arg5)
public static boolean
a(bru arg0)
canSetSpawn(Level arg0)
method_27352(class_1937 arg0)
isOverworld(World world)
func_235330_a_(World arg0)
private boolean
a(bru arg0, fx arg1)
kickVillagerOutOfBed(Level arg0, BlockPos arg1)
method_22357(class_1937 arg0, class_2338 arg1)
isFree(World world, BlockPos pos)
func_226861_a_(World arg0, BlockPos arg1)
public void
a(bru arg0, fx arg1, apx arg2, float arg3)
fallOn(Level arg0, BlockPos arg1, Entity arg2, float arg3)
method_9554(class_1937 arg0, class_2338 arg1, class_1297 arg2, float arg3)
onLandedUpon(World arg0, BlockPos arg1, Entity arg2, float arg3)
func_180658_a(World arg0, BlockPos arg1, Entity arg2, float arg3)
fallOn(World arg0, BlockPosition arg1, Entity arg2, float arg3)
public void
a(bqz arg0, apx arg1)
updateEntityAfterFallOn(BlockGetter arg0, Entity arg1)
method_9502(class_1922 arg0, class_1297 arg1)
onEntityLand(BlockView arg0, Entity arg1)
func_176216_a(IBlockReader arg0, Entity arg1)
private void
a(apx arg0)
bounceUp(Entity arg0)
method_21838(class_1297 arg0)
bounceEntity(Entity entity)
func_226860_a_(Entity arg0)
public BlockState
a(cee arg0, gc arg1, cee arg2, brv arg3, fx arg4, fx arg5)
updateShape(BlockState arg0, Direction arg1, BlockState arg2, LevelAccessor arg3, BlockPos arg4, BlockPos arg5)
method_9559(class_2680 arg0, class_2350 arg1, class_2680 arg2, class_1936 arg3, class_2338 arg4, class_2338 arg5)
getStateForNeighborUpdate(BlockState arg0, Direction arg1, BlockState arg2, WorldAccess arg3, BlockPos arg4, BlockPos arg5)
func_196271_a(BlockState arg0, Direction arg1, BlockState arg2, IWorld arg3, BlockPos arg4, BlockPos arg5)
updateState(IBlockData arg0, EnumDirection arg1, IBlockData arg2, GeneratorAccess arg3, BlockPosition arg4, BlockPosition arg5)
private static Direction
a(ces arg0, gc arg1)
getNeighbourDirection(BedPart arg0, Direction arg1)
method_9488(class_2742 arg0, class_2350 arg1)
getDirectionTowardsOtherPart(BedPart part, Direction direction)
func_208070_a(BedPart arg0, Direction arg1)
public void
a(bru arg0, fx arg1, cee arg2, bft arg3)
playerWillDestroy(Level arg0, BlockPos arg1, BlockState arg2, Player arg3)
method_9576(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
onBreak(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
func_176208_a(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
public BlockState
a(bnv arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
func_196258_a(BlockItemUseContext arg0)
getPlacedState(BlockActionContext arg0)
public VoxelShape
b(cee arg0, bqz arg1, fx arg2, dcp arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
func_220053_a(BlockState arg0, IBlockReader arg1, BlockPos arg2, ISelectionContext arg3)
public static Direction
g(cee arg0)
getConnectedDirection(BlockState arg0)
method_24163(class_2680 arg0)
getOppositePartDirection(BlockState state)
func_226862_h_(BlockState arg0)
private static boolean
b(bqz arg0, fx arg1)
isBunkBed(BlockGetter arg0, BlockPos arg1)
method_30839(class_1922 arg0, class_2338 arg1)
method_30839(BlockView arg0, BlockPos arg1)
func_242657_b(IBlockReader arg0, BlockPos arg1)
public static Optional<Vec3>
a(aqb<?> arg0, brd arg1, fx arg2, float arg3)
findStandUpPosition(EntityType<?> arg0, CollisionGetter arg1, BlockPos arg2, float arg3)
method_9484(class_1299<?> arg0, class_1941 arg1, class_2338 arg2, float arg3)
findWakeUpPosition(EntityType<?> type, CollisionView arg1, BlockPos pos, float arg3)
func_242652_a(EntityType<?> arg0, ICollisionReader arg1, BlockPos arg2, float arg3)
private static Optional<Vec3>
a(aqb<?> arg0, brd arg1, fx arg2, gc arg3, gc arg4)
findBunkBedStandUpPosition(EntityType<?> arg0, CollisionGetter arg1, BlockPos arg2, Direction arg3, Direction arg4)
method_30835(class_1299<?> arg0, class_1941 arg1, class_2338 arg2, class_2350 arg3, class_2350 arg4)
method_30835(EntityType<?> arg0, CollisionView arg1, BlockPos arg2, Direction arg3, Direction arg4)
func_242653_a(EntityType<?> arg0, ICollisionReader arg1, BlockPos arg2, Direction arg3, Direction arg4)
private static Optional<Vec3>
a(aqb<?> arg0, brd arg1, fx arg2, int[][] arg3, boolean arg4)
findStandUpPositionAtOffset(EntityType<?> arg0, CollisionGetter arg1, BlockPos arg2, int[][] arg3, boolean arg4)
method_30836(class_1299<?> arg0, class_1941 arg1, class_2338 arg2, int[][] arg3, boolean arg4)
method_30836(EntityType<?> arg0, CollisionView arg1, BlockPos arg2, int[][] arg3, boolean arg4)
func_242654_a(EntityType<?> arg0, ICollisionReader arg1, BlockPos arg2, int[][] arg3, boolean arg4)
public PushReaction
f(cee arg0)
getPistonPushReaction(BlockState arg0)
method_9527(class_2680 arg0)
getPistonBehavior(BlockState arg0)
func_149656_h(BlockState arg0)
getPushReaction(IBlockData arg0)
public RenderShape
b(cee arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState arg0)
func_149645_b(BlockState arg0)
protected void
a(cef$a<bul, cee> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
func_206840_a(StateContainer$Builder<Block, BlockState> arg0)
public BlockEntity
a(bqz arg0)
newBlockEntity(BlockGetter arg0)
method_10123(class_1922 arg0)
createBlockEntity(BlockView arg0)
func_196283_a_(IBlockReader arg0)
createTile(IBlockAccess arg0)
public void
a(bru arg0, fx arg1, cee arg2, aqj arg3, bly arg4)
setPlacedBy(Level arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
method_9567(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1309 arg3, class_1799 arg4)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
func_180633_a(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
postPlace(World arg0, BlockPosition arg1, IBlockData arg2, EntityLiving arg3, ItemStack arg4)
public boolean
a(cee arg0, bqz arg1, fx arg2, cxb arg3)
isPathfindable(BlockState arg0, BlockGetter arg1, BlockPos arg2, PathComputationType arg3)
method_9516(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_10 arg3)
canPathfindThrough(BlockState arg0, BlockView arg1, BlockPos arg2, NavigationType arg3)
func_196266_a(BlockState arg0, IBlockReader arg1, BlockPos arg2, PathType arg3)
private static int[][]
a(gc arg0, gc arg1)
bedStandUpOffsets(Direction arg0, Direction arg1)
method_30838(class_2350 arg0, class_2350 arg1)
method_30838(Direction arg0, Direction arg1)
func_242656_a(Direction arg0, Direction arg1)
private static int[][]
b(gc arg0, gc arg1)
bedSurroundStandUpOffsets(Direction arg0, Direction arg1)
method_30840(class_2350 arg0, class_2350 arg1)
method_30840(Direction arg0, Direction arg1)
func_242658_b(Direction arg0, Direction arg1)
private static int[][]
a(gc arg0)
bedAboveStandUpOffsets(Direction arg0)
method_30837(class_2350 arg0)
method_30837(Direction arg0)
func_242655_a(Direction arg0)
public static Direction
a(bqz arg0, fx arg1)
getBedOrientation(BlockGetter arg0, BlockPos arg1)
method_18476(class_1922 arg0, class_2338 arg1)
getDirection(BlockView world, BlockPos pos)
func_220174_a(IBlockReader arg0, BlockPos arg1)
public static DoubleBlockCombiner$BlockType
h(cee arg0)
getBlockType(BlockState arg0)
method_24164(class_2680 arg0)
getBedPart(BlockState state)
func_226863_i_(BlockState arg0)
public DyeColor
c()
getColor()
method_9487()
getColor()
func_196350_d()
public long
a(cee arg0, fx arg1)
getSeed(BlockState arg0, BlockPos arg1)
method_9535(class_2680 arg0, class_2338 arg1)
getRenderingSeed(BlockState arg0, BlockPos arg1)
func_209900_a(BlockState arg0, BlockPos arg1)