net.minecraft.world.level.block

public class BedBlock

extends HorizontalDirectionalBlock implements EntityBlock

All mapped superinterfaces:

ItemLike, EntityBlock

ccr
net.minecraft.world.level.block.BedBlock
net.minecraft.class_2244
net.minecraft.unmapped.C_nvwxmqty
net.minecraft.block.BedBlock
net.minecraft.src.C_1699_
net.minecraft.world.level.block.BlockBed

Field summary

Modifier and TypeField
public static final EnumProperty<BedPart>
a
PART
field_9967
f_lyqemyor
PART
f_49440_
public static final BooleanProperty
b
OCCUPIED
field_9968
f_hzcaewbv
OCCUPIED
f_49441_
protected static final int
c
HEIGHT
field_31009
f_gljxzzaq
field_31009
f_152166_
protected static final VoxelShape
d
BASE
field_16788
f_ygoirroy
TOP_SHAPE
f_49442_
private static final int
m
LEG_WIDTH
field_31010
f_unvzvgew
field_31010
f_152167_
protected static final VoxelShape
e
LEG_NORTH_WEST
field_16782
f_kemnvrid
LEG_1_SHAPE
f_49443_
protected static final VoxelShape
f
LEG_SOUTH_WEST
field_16784
f_xnuxyrmb
LEG_2_SHAPE
f_49444_
protected static final VoxelShape
g
LEG_NORTH_EAST
field_16786
f_otugqpil
LEG_3_SHAPE
f_49445_
protected static final VoxelShape
h
LEG_SOUTH_EAST
field_16789
f_xzmmadmy
LEG_4_SHAPE
f_49446_
protected static final VoxelShape
i
NORTH_SHAPE
field_16787
f_djvzqbzm
NORTH_SHAPE
f_49447_
protected static final VoxelShape
j
SOUTH_SHAPE
field_16785
f_vcdtjwcq
SOUTH_SHAPE
f_49448_
protected static final VoxelShape
k
WEST_SHAPE
field_16783
f_ksjhatky
WEST_SHAPE
f_49449_
protected static final VoxelShape
l
EAST_SHAPE
field_16790
f_ffaooxkb
EAST_SHAPE
f_49450_
private final DyeColor
n
color
field_9966
f_nuuzuyzv
color
f_49451_

Constructor summary

ModifierConstructor
public (DyeColor color, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public static Direction
a(bzj arg0, gh arg1)
getBedOrientation(BlockGetter arg0, BlockPos arg1)
method_18476(class_1922 arg0, class_2338 arg1)
m_ehipyrlh(C_peaveboq arg0, C_hynzadkk arg1)
getDirection(BlockView world, BlockPos pos)
m_49485_(C_1559_ p_49486_, C_4675_ p_49487_)
public InteractionResult
a(coc arg0, cad arg1, gh arg2, bnr arg3, avp arg4, doi 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)
m_rocdemyx(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_jzrpycqo arg3, C_laxmzoqs arg4, C_jdakttms arg5)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, Hand arg4, BlockHitResult arg5)
m_6227_(C_2064_ p_49516_, C_1596_ p_49517_, C_4675_ p_49518_, C_1141_ p_49519_, C_470_ p_49520_, C_3041_ arg5)
public static boolean
a(cad arg0)
canSetSpawn(Level arg0)
method_27352(class_1937 arg0)
m_ftrfdpnc(C_cdctfzbn arg0)
isBedWorking(World world)
m_49488_(C_1596_ p_49489_)
private boolean
a(cad arg0, gh arg1)
kickVillagerOutOfBed(Level arg0, BlockPos arg1)
method_22357(class_1937 arg0, class_2338 arg1)
m_bfzrepqn(C_cdctfzbn arg0, C_hynzadkk arg1)
wakeVillager(World world, BlockPos pos)
m_49490_(C_1596_ p_49492_, C_4675_ arg1)
public void
a(cad arg0, coc arg1, gh arg2, awt arg3, float arg4)
fallOn(Level arg0, BlockState arg1, BlockPos arg2, Entity arg3, float arg4)
method_9554(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1297 arg3, float arg4)
m_jweqgtyb(C_cdctfzbn arg0, C_txtbiemp arg1, C_hynzadkk arg2, C_astfners arg3, float arg4)
onLandedUpon(World arg0, BlockState arg1, BlockPos arg2, Entity arg3, float arg4)
m_142072_(C_1596_ p_152170_, C_2064_ p_152171_, C_4675_ p_152172_, C_507_ p_152173_, float arg4)
public void
a(bzj arg0, awt arg1)
updateEntityAfterFallOn(BlockGetter arg0, Entity arg1)
method_9502(class_1922 arg0, class_1297 arg1)
m_zfqxklim(C_peaveboq arg0, C_astfners arg1)
onEntityLand(BlockView arg0, Entity arg1)
m_5548_(C_1559_ p_49484_, C_507_ arg1)
private void
a(awt arg0)
bounceUp(Entity arg0)
method_21838(class_1297 arg0)
m_gajdgurg(C_astfners arg0)
bounceEntity(Entity entity)
m_49456_(C_507_ arg0)
public BlockState
a(coc arg0, gm arg1, coc arg2, cae arg3, gh arg4, gh 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)
m_yvunqpeq(C_txtbiemp arg0, C_xpuuihxf arg1, C_txtbiemp arg2, C_vdvbsyle arg3, C_hynzadkk arg4, C_hynzadkk arg5)
getStateForNeighborUpdate(BlockState arg0, Direction arg1, BlockState arg2, WorldAccess arg3, BlockPos arg4, BlockPos arg5)
m_7417_(C_2064_ p_49526_, C_4687_ p_49527_, C_2064_ p_49528_, C_1598_ p_49529_, C_4675_ p_49530_, C_4675_ arg5)
private static Direction
a(cor arg0, gm arg1)
getNeighbourDirection(BedPart arg0, Direction arg1)
method_9488(class_2742 arg0, class_2350 arg1)
m_oowgyroh(C_zjsjkezw arg0, C_xpuuihxf arg1)
getDirectionTowardsOtherPart(BedPart part, Direction direction)
m_49533_(C_2081_ p_49534_, C_4687_ p_49535_)
public void
a(cad arg0, gh arg1, coc arg2, bnr arg3)
playerWillDestroy(Level arg0, BlockPos arg1, BlockState arg2, Player arg3)
method_9576(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
m_tjijvtpb(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_jzrpycqo arg3)
onBreak(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
m_5707_(C_1596_ p_49506_, C_4675_ p_49507_, C_2064_ p_49508_, C_1141_ arg3)
public BlockState
a(bwe arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
m_iwedynhy(C_aiootljq arg0)
getPlacementState(ItemPlacementContext arg0)
m_5573_(C_1445_ arg0)
public VoxelShape
a(coc arg0, bzj arg1, gh arg2, dor arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
m_fqngyjtr(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_pbfjvesm arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
m_5940_(C_2064_ p_49548_, C_1559_ p_49549_, C_4675_ p_49550_, C_3051_ arg3)
public static Direction
g(coc arg0)
getConnectedDirection(BlockState arg0)
method_24163(class_2680 arg0)
m_dlnqtvrq(C_txtbiemp arg0)
getOppositePartDirection(BlockState state)
m_49557_(C_2064_ p_49558_)
public static DoubleBlockCombiner$BlockType
h(coc arg0)
getBlockType(BlockState arg0)
method_24164(class_2680 arg0)
m_fonlhzya(C_txtbiemp arg0)
getBedPart(BlockState state)
m_49559_(C_2064_ p_49560_)
private static boolean
b(bzj arg0, gh arg1)
isBunkBed(BlockGetter arg0, BlockPos arg1)
method_30839(class_1922 arg0, class_2338 arg1)
m_uuocayls(C_peaveboq arg0, C_hynzadkk arg1)
isBedBelow(BlockView world, BlockPos pos)
m_49541_(C_1559_ p_49542_, C_4675_ p_49543_)
public static Optional<Vec3>
a(awx<?> arg0, bzn arg1, gh 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)
m_ycicexvn(C_ogavsvbr<?> arg0, C_vxzrjtdu arg1, C_hynzadkk arg2, float arg3)
findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, float spawnAngle)
m_49458_(C_513_<?> p_49459_, C_1569_ p_49460_, C_4675_ p_49461_, float p_49462_)
private static Optional<Vec3>
a(awx<?> arg0, bzn arg1, gh arg2, gm arg3, gm 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)
m_rclmqwrd(C_ogavsvbr<?> arg0, C_vxzrjtdu arg1, C_hynzadkk arg2, C_xpuuihxf arg3, C_xpuuihxf arg4)
findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, Direction respawnDirection)
m_49463_(C_513_<?> p_49464_, C_1569_ p_49465_, C_4675_ p_49466_, C_4687_ p_49467_, C_4687_ p_49468_)
private static Optional<Vec3>
a(awx<?> arg0, bzn arg1, gh 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)
m_xmwpwuqn(C_ogavsvbr<?> arg0, C_vxzrjtdu arg1, C_hynzadkk arg2, int[][] arg3, boolean arg4)
findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, int[][] possibleOffsets, boolean ignoreInvalidPos)
m_49469_(C_513_<?> p_49470_, C_1569_ p_49471_, C_4675_ p_49472_, int[][] p_49473_, boolean p_49474_)
public PushReaction
d(coc arg0)
getPistonPushReaction(BlockState arg0)
method_9527(class_2680 arg0)
m_svmpqhks(C_txtbiemp arg0)
getPistonBehavior(BlockState arg0)
m_5537_(C_2064_ arg0)
public RenderShape
b_(coc arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
m_mjglzdvu(C_txtbiemp arg0)
getRenderType(BlockState arg0)
m_7514_(C_2064_ arg0)
protected void
a(cod$a<ccy, coc> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
m_yujtcnah(C_ezfeikaq$C_mfnsmxhw<C_mmxmpdoq, C_txtbiemp> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
public BlockEntity
a(gh arg0, coc arg1)
newBlockEntity(BlockPos arg0, BlockState arg1)
method_10123(class_2338 arg0, class_2680 arg1)
m_zupvpdxk(C_hynzadkk arg0, C_txtbiemp arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
m_142194_(C_4675_ p_152176_, C_2064_ arg1)
public void
a(cad arg0, gh arg1, coc arg2, axh arg3, bue 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)
m_fuvqealb(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_usxaxydn arg3, C_sddaxwyk arg4)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
m_6402_(C_1596_ p_49500_, C_4675_ p_49501_, C_2064_ p_49502_, C_524_ p_49503_, C_1391_ arg4)
public DyeColor
c()
getColor()
method_9487()
m_hvgdojqb()
getColor()
m_49554_()
public long
a(coc arg0, gh arg1)
getSeed(BlockState arg0, BlockPos arg1)
method_9535(class_2680 arg0, class_2338 arg1)
m_nlgzchux(C_txtbiemp arg0, C_hynzadkk arg1)
getRenderingSeed(BlockState arg0, BlockPos arg1)
m_7799_(C_2064_ p_49523_, C_4675_ arg1)
public boolean
a(coc arg0, bzj arg1, gh arg2, dim arg3)
isPathfindable(BlockState arg0, BlockGetter arg1, BlockPos arg2, PathComputationType arg3)
method_9516(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_10 arg3)
m_rwctfady(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_kjwlgpfr arg3)
canPathfindThrough(BlockState arg0, BlockView arg1, BlockPos arg2, NavigationType arg3)
m_7357_(C_2064_ p_49511_, C_1559_ p_49512_, C_4675_ p_49513_, C_2754_ arg3)
private static int[][]
a(gm arg0, gm arg1)
bedStandUpOffsets(Direction arg0, Direction arg1)
method_30838(class_2350 arg0, class_2350 arg1)
m_dlthhhxv(C_xpuuihxf arg0, C_xpuuihxf arg1)
getAroundAndOnBedOffets(Direction bedDirection, Direction respawnDirection)
m_49538_(C_4687_ p_49539_, C_4687_ p_49540_)
private static int[][]
b(gm arg0, gm arg1)
bedSurroundStandUpOffsets(Direction arg0, Direction arg1)
method_30840(class_2350 arg0, class_2350 arg1)
m_hkrnhjla(C_xpuuihxf arg0, C_xpuuihxf arg1)
getAroundBedOffsets(Direction bedDirection, Direction respawnDirection)
m_49551_(C_4687_ p_49552_, C_4687_ p_49553_)
private static int[][]
a(gm arg0)
bedAboveStandUpOffsets(Direction arg0)
method_30837(class_2350 arg0)
m_hnsbtrig(C_xpuuihxf arg0)
getOnBedOffsets(Direction bedDirection)
m_49536_(C_4687_ p_49537_)