net.minecraft.world.level.block

public class BedBlock

extends HorizontalDirectionalBlock implements EntityBlock

All mapped superinterfaces:

ItemLike, EntityBlock

boy
net.minecraft.world.level.block.BedBlock
net.minecraft.class_2244
net.minecraft.block.BedBlock
net.minecraft.block.BedBlock
net.minecraft.server.v1_15_R1.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
w
color
field_9966
color
field_196352_y
color

Constructor summary

ModifierConstructor
public (DyeColor color, Block$Properties settings)

Method summary

Modifier and TypeMethod
public MaterialColor
e(byg arg0, bjd arg1, fk arg2)
getMapColor(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9602(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getMapColor(BlockState arg0, BlockView arg1, BlockPos arg2)
func_180659_g(BlockState arg0, IBlockReader arg1, BlockPos arg2)
public InteractionResult
a(byg arg0, bjt arg1, fk arg2, ayg arg3, ajh arg4, cvd 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)
private boolean
a(bjt arg0, fk arg1)
kickVillagerOutOfBed(Level arg0, BlockPos arg1)
method_22357(class_1937 arg0, class_2338 arg1)
func_226861_a_(World arg0, BlockPos arg1)
public void
a(bjt arg0, fk arg1, akn 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(bjd arg0, akn 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(akn arg0)
bounceUp(Entity arg0)
method_21838(class_1297 arg0)
func_226860_a_(Entity arg0)
public BlockState
a(byg arg0, fp arg1, byg arg2, bju arg3, fk arg4, fk 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, IWorld 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(byv arg0, fp 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(bjt arg0, ayg arg1, fk arg2, byg arg3, bwi arg4, bek arg5)
playerDestroy(Level arg0, Player arg1, BlockPos arg2, BlockState arg3, BlockEntity arg4, ItemStack arg5)
method_9556(class_1937 arg0, class_1657 arg1, class_2338 arg2, class_2680 arg3, class_2586 arg4, class_1799 arg5)
afterBreak(World arg0, PlayerEntity arg1, BlockPos arg2, BlockState arg3, BlockEntity arg4, ItemStack arg5)
func_180657_a(World arg0, PlayerEntity arg1, BlockPos arg2, BlockState arg3, TileEntity arg4, ItemStack arg5)
public void
a(bjt arg0, fk arg1, byg arg2, ayg 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(bcn arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
func_196258_a(BlockItemUseContext arg0)
getPlacedState(BlockActionContext arg0)
public VoxelShape
a(byg arg0, bjd arg1, fk arg2, cvn 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, EntityContext arg3)
func_220053_a(BlockState arg0, IBlockReader arg1, BlockPos arg2, ISelectionContext arg3)
public static Direction
h(byg arg0)
getConnectedDirection(BlockState arg0)
method_24163(class_2680 arg0)
func_226862_h_(BlockState arg0)
public static Optional<Vec3>
a(akr<?> arg0, bjw arg1, fk arg2, int arg3)
findStandUpPosition(EntityType<?> arg0, LevelReader arg1, BlockPos arg2, int arg3)
method_9484(class_1299<?> arg0, class_4538 arg1, class_2338 arg2, int arg3)
findWakeUpPosition(EntityType<?> type, WorldView arg1, BlockPos pos, int index)
func_220172_a(EntityType<?> arg0, IWorldReader arg1, BlockPos arg2, int arg3)
protected static Optional<Vec3>
a(akr<?> arg0, bjw arg1, fk arg2)
getStandingLocationAtOrBelow(EntityType<?> arg0, LevelReader arg1, BlockPos arg2)
method_9486(class_1299<?> arg0, class_4538 arg1, class_2338 arg2)
canWakeUpAt(EntityType<?> type, WorldView arg1, BlockPos pos)
func_220175_a(EntityType<?> arg0, IWorldReader arg1, BlockPos arg2)
public PushReaction
g(byg arg0)
getPistonPushReaction(BlockState arg0)
method_9527(class_2680 arg0)
getPistonBehavior(BlockState arg0)
func_149656_h(BlockState arg0)
getPushReaction(IBlockData arg0)
public RenderShape
c(byg arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState arg0)
func_149645_b(BlockState arg0)
protected void
a(byh$a<bpe, byg> 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(bjd arg0)
newBlockEntity(BlockGetter arg0)
method_10123(class_1922 arg0)
createBlockEntity(BlockView arg0)
func_196283_a_(IBlockReader arg0)
createTile(IBlockAccess arg0)
public void
a(bjt arg0, fk arg1, byg arg2, akw arg3, bek 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(byg arg0, bjd arg1, fk arg2, cqo arg3)
isPathfindable(BlockState arg0, BlockGetter arg1, BlockPos arg2, PathComputationType arg3)
method_9516(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_10 arg3)
canPlaceAtSide(BlockState arg0, BlockView arg1, BlockPos arg2, BlockPlacementEnvironment arg3)
func_196266_a(BlockState arg0, IBlockReader arg1, BlockPos arg2, PathType arg3)
public static Direction
a(bjd arg0, fk 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
i(byg arg0)
getBlockType(BlockState arg0)
method_24164(class_2680 arg0)
func_226863_i_(BlockState arg0)
public DyeColor
c()
getColor()
method_9487()
getColor()
func_196350_d()
public long
a(byg arg0, fk 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)