net.minecraft.world.level.block

public class BedBlock

extends HorizontalDirectionalBlock implements EntityBlock

All mapped superinterfaces:

FeatureElement, ItemLike, EntityBlock

dly
net.minecraft.world.level.block.BedBlock
net.minecraft.class_2244
net.minecraft.unmapped.C_nvwxmqty
net.minecraft.block.BedBlock
net.minecraft.block.BedBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<BedBlock>
a
CODEC
field_46273
f_jbvzrfac
CODEC
CODEC
public static final EnumProperty<BedPart>
b
PART
field_9967
f_lyqemyor
PART
PART
public static final BooleanProperty
c
OCCUPIED
field_9968
f_hzcaewbv
OCCUPIED
OCCUPIED
private static final Map<Direction, VoxelShape>
d
SHAPES
field_55732
f_yxionxhw
SHAPES_BY_DIRECTION
private final DyeColor
f
color
field_9966
f_nuuzuyzv
color
color

Constructor summary

ModifierConstructor
public (DyeColor color, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<BedBlock>
a()
codec()
method_53969()
m_wrnxumjr()
getCodec()
getCodec()
public static Direction
a(dig arg0, iu 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)
getDirection(BlockView world, BlockPos pos)
protected InteractionResult
a(eah arg0, dja arg1, iu arg2, crc arg3, fem arg4)
useWithoutItem(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, BlockHitResult arg4)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
m_pguoxmgn(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_jzrpycqo arg3, C_jdakttms arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
public static boolean
a(dja arg0)
canSetSpawn(Level arg0)
method_27352(class_1937 arg0)
m_ftrfdpnc(C_cdctfzbn arg0)
isBedWorking(World world)
isBedWorking(World world)
private boolean
a(dja arg0, iu 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)
wakeVillager(World world, BlockPos pos)
public void
a(dja arg0, eah arg1, iu arg2, bwf arg3, double arg4)
fallOn(Level arg0, BlockState arg1, BlockPos arg2, Entity arg3, double arg4)
method_9554(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1297 arg3, double arg4)
m_jweqgtyb(C_cdctfzbn arg0, C_txtbiemp arg1, C_hynzadkk arg2, C_astfners arg3, double arg4)
onLandedUpon(World arg0, BlockState arg1, BlockPos arg2, Entity arg3, double arg4)
onLandedUpon(World arg0, BlockState arg1, BlockPos arg2, Entity arg3, double arg4)
public void
a(dig arg0, bwf arg1)
updateEntityMovementAfterFallOn(BlockGetter arg0, Entity arg1)
method_9502(class_1922 arg0, class_1297 arg1)
m_oscwylqf(C_peaveboq arg0, C_astfners arg1)
onEntityLand(BlockView arg0, Entity arg1)
updateEntityVelocityAfterFall(BlockView arg0, Entity arg1)
private void
a(bwf arg0)
bounceUp(Entity arg0)
method_21838(class_1297 arg0)
m_gajdgurg(C_astfners arg0)
bounceEntity(Entity entity)
bounceEntity(Entity entity)
protected BlockState
a(eah arg0, djd arg1, djp arg2, iu arg3, ja arg4, iu arg5, eah arg6, azv arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
m_yvunqpeq(C_txtbiemp arg0, C_eemzphbi arg1, C_adoatlrf arg2, C_hynzadkk arg3, C_xpuuihxf arg4, C_hynzadkk arg5, C_txtbiemp arg6, C_rlomrsco arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, TickSchedulerAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomGenerator arg7)
private static Direction
a(eau arg0, ja 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)
getDirectionTowardsOtherPart(BedPart part, Direction direction)
public BlockState
a(dja arg0, iu arg1, eah arg2, crc 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)
onBreak(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
public BlockState
a(dcw arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
m_iwedynhy(C_aiootljq arg0)
getPlacementState(ItemPlacementContext arg0)
getPlacementState(ItemPlacementContext arg0)
protected VoxelShape
a(eah arg0, dig arg1, iu arg2, fev 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)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
public static Direction
h(eah arg0)
getConnectedDirection(BlockState arg0)
method_24163(class_2680 arg0)
m_dlnqtvrq(C_txtbiemp arg0)
getOppositePartDirection(BlockState state)
getOppositePartDirection(BlockState state)
public static DoubleBlockCombiner$BlockType
i(eah arg0)
getBlockType(BlockState arg0)
method_24164(class_2680 arg0)
m_fonlhzya(C_txtbiemp arg0)
getBedPart(BlockState state)
getBedPart(BlockState state)
private static boolean
b(dig arg0, iu 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)
isBedBelow(BlockView world, BlockPos pos)
public static Optional<Vec3>
a(bwo<?> arg0, dik arg1, iu arg2, ja arg3, float arg4)
findStandUpPosition(EntityType<?> arg0, CollisionGetter arg1, BlockPos arg2, Direction arg3, float arg4)
method_9484(class_1299<?> arg0, class_1941 arg1, class_2338 arg2, class_2350 arg3, float arg4)
m_ycicexvn(C_ogavsvbr<?> arg0, C_vxzrjtdu arg1, C_hynzadkk arg2, C_xpuuihxf arg3, float arg4)
findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, float spawnAngle)
findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction direction, float spawnAngle)
private static Optional<Vec3>
a(bwo<?> arg0, dik arg1, iu arg2, ja arg3, ja 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)
findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, Direction respawnDirection)
private static Optional<Vec3>
a(bwo<?> arg0, dik arg1, iu 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)
findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, int[][] possibleOffsets, boolean ignoreInvalidPos)
protected void
a(eai$a<dmf, eah> 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)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
public BlockEntity
a(iu arg0, eah 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)
createBlockEntity(BlockPos arg0, BlockState arg1)
public void
a(dja arg0, iu arg1, eah arg2, bxe arg3, czd 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)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
public DyeColor
b()
getColor()
method_9487()
m_hvgdojqb()
getColor()
getColor()
protected long
a(eah arg0, iu 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)
getRenderingSeed(BlockState arg0, BlockPos arg1)
protected boolean
a(eah arg0, exd arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
m_rwctfady(C_txtbiemp arg0, C_kjwlgpfr arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
private static int[][]
a(ja arg0, ja arg1)
bedStandUpOffsets(Direction arg0, Direction arg1)
method_30838(class_2350 arg0, class_2350 arg1)
m_dlthhhxv(C_xpuuihxf arg0, C_xpuuihxf arg1)
getAroundAndOnBedOffsets(Direction bedDirection, Direction respawnDirection)
getAroundAndOnBedOffsets(Direction bedDirection, Direction respawnDirection)
private static int[][]
b(ja arg0, ja 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)
getAroundBedOffsets(Direction bedDirection, Direction respawnDirection)
private static int[][]
a(ja arg0)
bedAboveStandUpOffsets(Direction arg0)
method_30837(class_2350 arg0)
m_hnsbtrig(C_xpuuihxf arg0)
getOnBedOffsets(Direction bedDirection)
getOnBedOffsets(Direction bedDirection)