net.minecraft.world.level.block

public class BedBlock

extends HorizontalDirectionalBlock implements EntityBlock

All mapped superinterfaces:

FeatureElement, ItemLike, EntityBlock

duo
net.minecraft.world.level.block.BedBlock
net.minecraft.class_2244
net.minecraft.block.BedBlock
net.minecraft.src.C_1699_
net.minecraft.world.level.block.BlockBed

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<BedBlock>
a
CODEC
field_46273
CODEC
f_303715_
public static final EnumProperty<BedPart>
b
PART
field_9967
PART
f_49440_
public static final BooleanProperty
c
OCCUPIED
field_9968
OCCUPIED
f_49441_
private static final Map<Direction, VoxelShape>
d
SHAPES
field_55732
SHAPES_BY_DIRECTION
f_382324_
private final DyeColor
e
color
field_9966
color
f_49451_

Constructor summary

ModifierConstructor
public (DyeColor color, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<BedBlock>
a()
codec()
method_53969()
getCodec()
m_304657_()
public static Direction
a(dqu arg0, ja arg1)
getBedOrientation(BlockGetter arg0, BlockPos arg1)
method_18476(class_1922 arg0, class_2338 arg1)
getDirection(BlockView world, BlockPos pos)
m_49485_(C_1559_ p_49486_, C_4675_ p_49487_)
protected InteractionResult
a(ejm arg0, drq arg1, ja arg2, czl arg3, fod 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)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
m_6227_(C_2064_ p_49516_, C_1596_ p_49517_, C_4675_ p_49518_, C_1141_ p_49520_, C_3041_ arg4)
public static boolean
a(drq arg0)
canSetSpawn(Level arg0)
method_27352(class_1937 arg0)
isBedWorking(World world)
m_49488_(C_1596_ p_49489_)
private boolean
a(drq arg0, ja arg1)
kickVillagerOutOfBed(Level arg0, BlockPos arg1)
method_22357(class_1937 arg0, class_2338 arg1)
wakeVillager(World world, BlockPos pos)
m_49490_(C_1596_ p_49492_, C_4675_ arg1)
public void
a(drq arg0, ejm arg1, ja arg2, cdv 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)
onLandedUpon(World arg0, BlockState arg1, BlockPos arg2, Entity arg3, double arg4)
m_142072_(C_1596_ p_152170_, C_2064_ p_152171_, C_4675_ p_152172_, C_507_ p_396743_, double arg4)
public void
a(dqu arg0, cdv arg1)
updateEntityMovementAfterFallOn(BlockGetter arg0, Entity arg1)
method_9502(class_1922 arg0, class_1297 arg1)
onEntityLand(BlockView arg0, Entity arg1)
m_5548_(C_1559_ p_49484_, C_507_ arg1)
private void
a(cdv arg0)
bounceUp(Entity arg0)
method_21838(class_1297 arg0)
bounceEntity(Entity entity)
m_49456_(C_507_ arg0)
protected BlockState
a(ejm arg0, drt arg1, dsf arg2, ja arg3, jg arg4, ja arg5, ejm arg6, bfq 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)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
m_7417_(C_2064_ p_367181_, C_1599_ p_361759_, C_346056_ p_49529_, C_4675_ p_49526_, C_4687_ p_49530_, C_4675_ p_49527_, C_2064_ p_361707_, C_212974_ arg7)
private static Direction
a(ejz arg0, jg arg1)
getNeighbourDirection(BedPart arg0, Direction arg1)
method_9488(class_2742 arg0, class_2350 arg1)
getDirectionTowardsOtherPart(BedPart part, Direction direction)
m_49533_(C_2081_ p_49534_, C_4687_ p_49535_)
public BlockState
a(drq arg0, ja arg1, ejm arg2, czl 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)
m_5707_(C_1596_ p_49506_, C_4675_ p_49507_, C_2064_ p_49508_, C_1141_ arg3)
public BlockState
a(dlk arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
m_5573_(C_1445_ arg0)
protected VoxelShape
a(ejm arg0, dqu arg1, ja arg2, fom 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)
m_5940_(C_2064_ p_49548_, C_1559_ p_49549_, C_4675_ p_49550_, C_3051_ arg3)
public static Direction
h(ejm arg0)
getConnectedDirection(BlockState arg0)
method_24163(class_2680 arg0)
getOppositePartDirection(BlockState state)
m_49557_(C_2064_ p_49558_)
public static DoubleBlockCombiner$BlockType
i(ejm arg0)
getBlockType(BlockState arg0)
method_24164(class_2680 arg0)
getBedPart(BlockState state)
m_49559_(C_2064_ p_49560_)
private static boolean
b(dqu arg0, ja arg1)
isBunkBed(BlockGetter arg0, BlockPos arg1)
method_30839(class_1922 arg0, class_2338 arg1)
isBedBelow(BlockView world, BlockPos pos)
m_49541_(C_1559_ p_49542_, C_4675_ p_49543_)
public static Optional<Vec3>
a(cee<?> arg0, dqy arg1, ja arg2, jg 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)
findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, float spawnAngle)
m_260958_(C_513_<?> p_261547_, C_1569_ p_261946_, C_4675_ p_261614_, C_4687_ p_261648_, float p_261680_)
private static Optional<Vec3>
a(cee<?> arg0, dqy arg1, ja arg2, jg arg3, jg 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)
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(cee<?> arg0, dqy arg1, ja 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)
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_)
protected void
a(ejn$a<duv, ejm> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
public BlockEntity
a(ja arg0, ejm arg1)
newBlockEntity(BlockPos arg0, BlockState arg1)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
m_142194_(C_4675_ p_152176_, C_2064_ arg1)
public void
a(drq arg0, ja arg1, ejm arg2, cew arg3, dhp 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)
m_6402_(C_1596_ p_49500_, C_4675_ p_49501_, C_2064_ p_49502_, C_524_ p_49503_, C_1391_ arg4)
public DyeColor
b()
getColor()
method_9487()
getColor()
m_49554_()
protected long
a(ejm arg0, ja arg1)
getSeed(BlockState arg0, BlockPos arg1)
method_9535(class_2680 arg0, class_2338 arg1)
getRenderingSeed(BlockState arg0, BlockPos arg1)
m_7799_(C_2064_ p_49523_, C_4675_ arg1)
protected boolean
a(ejm arg0, fgp arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
m_7357_(C_2064_ p_49513_, C_2754_ arg1)
private static int[][]
a(jg arg0, jg arg1)
bedStandUpOffsets(Direction arg0, Direction arg1)
method_30838(class_2350 arg0, class_2350 arg1)
getAroundAndOnBedOffsets(Direction bedDirection, Direction respawnDirection)
m_49538_(C_4687_ p_49539_, C_4687_ p_49540_)
private static int[][]
b(jg arg0, jg arg1)
bedSurroundStandUpOffsets(Direction arg0, Direction arg1)
method_30840(class_2350 arg0, class_2350 arg1)
getAroundBedOffsets(Direction bedDirection, Direction respawnDirection)
m_49551_(C_4687_ p_49552_, C_4687_ p_49553_)
private static int[][]
a(jg arg0)
bedAboveStandUpOffsets(Direction arg0)
method_30837(class_2350 arg0)
getOnBedOffsets(Direction bedDirection)
m_49536_(C_4687_ p_49537_)