Class BedBlock
- All Implemented Interfaces:
- BlockEntityProvider,- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/BedBlock- intermediary - net/minecraft/class_2244- official - djg
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BedBlock> private final DyeColorprotected static final VoxelShapeprotected static final intprivate static final intprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapestatic final BooleanPropertystatic final EnumProperty<BedPart> protected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeFields inherited from class net.minecraft.block.HorizontalFacingBlockFACINGFields inherited from class net.minecraft.block.Blockfield_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.private voidbounceEntity(Entity entity) protected booleancanPathfindThrough(BlockState state, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, int[][] possibleOffsets, boolean ignoreInvalidPos) findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, float spawnAngle) findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, Direction respawnDirection) private static int[][]getAroundAndOnBedOffsets(Direction bedDirection, Direction respawnDirection) private static int[][]getAroundBedOffsets(Direction bedDirection, Direction respawnDirection) static DoubleBlockProperties.TypegetBedPart(BlockState state) com.mojang.serialization.MapCodec<BedBlock> getCodec()getColor()getDirection(BlockView world, BlockPos pos) private static DirectiongetDirectionTowardsOtherPart(BedPart part, Direction direction) private static int[][]getOnBedOffsets(Direction bedDirection) static Directionprotected VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected longgetRenderingSeed(BlockState state, BlockPos pos) Returns the seed value for rendering.protected BlockStategetStateForNeighborUpdate(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.private static booleanisBedBelow(BlockView world, BlockPos pos) static booleanisBedWorking(World world) Returns whether the world's dimension type allows beds to be respawned at and slept in without exploding.onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.voidonEntityLand(BlockView world, Entity entity) Called after the entity lands on the block.voidonLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.voidonPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.protected ActionResultonUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) private booleanwakeVillager(World world, BlockPos pos) Wakes up a sleeping villager atpos, if any.Methods inherited from class net.minecraft.block.HorizontalFacingBlockmirror, rotateMethods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBroken, onDestroyedByExplosion, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getPickStack, getRaycastShape, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUseWithItem, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvidergetGameEventListener, getTickerMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/BedBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46273- Lnet/minecraft/class_2244;field_46273:Lcom/mojang/serialization/MapCodec;- official - a- Ldjg;a:Lcom/mojang/serialization/MapCodec;
 
- 
PART- Mappings:
- Namespace - Name - Mixin selector - named - PART- Lnet/minecraft/block/BedBlock;PART:Lnet/minecraft/state/property/EnumProperty;- intermediary - field_9967- Lnet/minecraft/class_2244;field_9967:Lnet/minecraft/class_2754;- official - b- Ldjg;b:Ldxv;
 
- 
OCCUPIED- Mappings:
- Namespace - Name - Mixin selector - named - OCCUPIED- Lnet/minecraft/block/BedBlock;OCCUPIED:Lnet/minecraft/state/property/BooleanProperty;- intermediary - field_9968- Lnet/minecraft/class_2244;field_9968:Lnet/minecraft/class_2746;- official - c- Ldjg;c:Ldxp;
 
- 
field_31009protected static final int field_31009- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31009- Lnet/minecraft/block/BedBlock;field_31009:I- intermediary - field_31009- Lnet/minecraft/class_2244;field_31009:I- official - d- Ldjg;d:I
 
- 
TOP_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - TOP_SHAPE- Lnet/minecraft/block/BedBlock;TOP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16788- Lnet/minecraft/class_2244;field_16788:Lnet/minecraft/class_265;- official - e- Ldjg;e:Lfbv;
 
- 
field_31010private static final int field_31010- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31010- Lnet/minecraft/block/BedBlock;field_31010:I- intermediary - field_31010- Lnet/minecraft/class_2244;field_31010:I- official - n- Ldjg;n:I
 
- 
LEG_1_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - LEG_1_SHAPE- Lnet/minecraft/block/BedBlock;LEG_1_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16782- Lnet/minecraft/class_2244;field_16782:Lnet/minecraft/class_265;- official - f- Ldjg;f:Lfbv;
 
- 
LEG_2_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - LEG_2_SHAPE- Lnet/minecraft/block/BedBlock;LEG_2_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16784- Lnet/minecraft/class_2244;field_16784:Lnet/minecraft/class_265;- official - g- Ldjg;g:Lfbv;
 
- 
LEG_3_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - LEG_3_SHAPE- Lnet/minecraft/block/BedBlock;LEG_3_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16786- Lnet/minecraft/class_2244;field_16786:Lnet/minecraft/class_265;- official - h- Ldjg;h:Lfbv;
 
- 
LEG_4_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - LEG_4_SHAPE- Lnet/minecraft/block/BedBlock;LEG_4_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16789- Lnet/minecraft/class_2244;field_16789:Lnet/minecraft/class_265;- official - i- Ldjg;i:Lfbv;
 
- 
NORTH_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - NORTH_SHAPE- Lnet/minecraft/block/BedBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16787- Lnet/minecraft/class_2244;field_16787:Lnet/minecraft/class_265;- official - j- Ldjg;j:Lfbv;
 
- 
SOUTH_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - SOUTH_SHAPE- Lnet/minecraft/block/BedBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16785- Lnet/minecraft/class_2244;field_16785:Lnet/minecraft/class_265;- official - k- Ldjg;k:Lfbv;
 
- 
WEST_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - WEST_SHAPE- Lnet/minecraft/block/BedBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16783- Lnet/minecraft/class_2244;field_16783:Lnet/minecraft/class_265;- official - l- Ldjg;l:Lfbv;
 
- 
EAST_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - EAST_SHAPE- Lnet/minecraft/block/BedBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_16790- Lnet/minecraft/class_2244;field_16790:Lnet/minecraft/class_265;- official - m- Ldjg;m:Lfbv;
 
- 
color- Mappings:
- Namespace - Name - Mixin selector - named - color- Lnet/minecraft/block/BedBlock;color:Lnet/minecraft/util/DyeColor;- intermediary - field_9966- Lnet/minecraft/class_2244;field_9966:Lnet/minecraft/class_1767;- official - o- Ldjg;o:Lcvn;
 
 
- 
- 
Constructor Details- 
BedBlock- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/BedBlock;<init>(Lnet/minecraft/util/DyeColor;Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_2244;<init>(Lnet/minecraft/class_1767;Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldjg;<init>(Lcvn;Ldwx$d;)V
 
 
- 
- 
Method Details- 
getCodec- Specified by:
- getCodecin class- HorizontalFacingBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- official - a- Ldwx;a()Lcom/mojang/serialization/MapCodec;
 
- 
getDirection- Mappings:
- Namespace - Name - Mixin selector - named - getDirection- Lnet/minecraft/block/BedBlock;getDirection(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Direction;- intermediary - method_18476- Lnet/minecraft/class_2244;method_18476(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2350;- official - a- Ldjg;a(Ldfo;Lji;)Ljn;
 
- 
onUseprotected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) - Overrides:
- onUsein class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - onUse- Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;- intermediary - method_55766- Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;- official - a- Ldwx;a(Ldwy;Ldgj;Lji;Lcoy;Lfax;)Lbsl;
 
- 
isBedWorkingReturns whether the world's dimension type allows beds to be respawned at and slept in without exploding.- Returns:
- whether the world's dimension type allows beds to be respawned at and slept in without exploding
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - isBedWorking- Lnet/minecraft/block/BedBlock;isBedWorking(Lnet/minecraft/world/World;)Z- intermediary - method_27352- Lnet/minecraft/class_2244;method_27352(Lnet/minecraft/class_1937;)Z- official - a- Ldjg;a(Ldgj;)Z
 
- 
wakeVillagerWakes up a sleeping villager atpos, if any.- Returns:
- whether a villager was found
- Mappings:
- Namespace - Name - Mixin selector - named - wakeVillager- Lnet/minecraft/block/BedBlock;wakeVillager(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_22357- Lnet/minecraft/class_2244;method_22357(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z- official - a- Ldjg;a(Ldgj;Lji;)Z
 
- 
onLandedUponpublic void onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.Default implementation deals fall damage to the entity. Blocks that increase or reduce fall damage (like HayBlock) should override this.FarmlandBlockoverrides this method to convert the block to dirt.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.- Overrides:
- onLandedUponin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - onLandedUpon- Lnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V- intermediary - method_9554- Lnet/minecraft/class_2248;method_9554(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;F)V- official - a- Ldjn;a(Ldgj;Ldwy;Lji;Lbum;F)V
 
- 
onEntityLandCalled after the entity lands on the block.Default implementation resets the entity's vertical velocity. Blocks that cause entities to jump (such as SlimeBlock) should override this.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.- Overrides:
- onEntityLandin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - onEntityLand- Lnet/minecraft/block/Block;onEntityLand(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)V- intermediary - method_9502- Lnet/minecraft/class_2248;method_9502(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;)V- official - a- Ldjn;a(Ldfo;Lbum;)V
 
- 
bounceEntity- Mappings:
- Namespace - Name - Mixin selector - named - bounceEntity- Lnet/minecraft/block/BedBlock;bounceEntity(Lnet/minecraft/entity/Entity;)V- intermediary - method_21838- Lnet/minecraft/class_2244;method_21838(Lnet/minecraft/class_1297;)V- official - a- Ldjg;a(Lbum;)V
 
- 
getStateForNeighborUpdateprotected BlockState getStateForNeighborUpdate(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.Returning Blocks.AIRbreaks the block. This is useful to implement supporting block requirement for blocks (if used along withAbstractBlock.canPlaceAt(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.util.math.BlockPos)).Side effects like activating a redstone component (but not scheduling a tick) should be performed in AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.world.block.WireOrientation, boolean)instead. If the block supports waterlogging and currently has water, this method should be overridden to tick the fluid at the block's position.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient. This is not called ifBlock.FORCE_STATEflag is set in thesetBlockStatecall.This method can be used for multiple purposes. Here are some examples: - FenceBlockuses it to update the fence's connection when a horizontally neighboring block's state is changed.
- PlantBlockuses it to break the plant if the state change causes it to lose its supporting block.
- DoorBlockuses it to copy the state of the other half of the door.
- SlabBlockuses it to schedule the fluid to tick if waterlogged.
- SoulSandBlockuses it to schedule the water block above to tick so that it becomes a bubble column.
- FallingBlockuses it to schedule the block to tick so that it can fall if needed.
 - Overrides:
- getStateForNeighborUpdatein class- AbstractBlock
- Parameters:
- state- the state of this block
- world- the world
- pos- the position of this block
- direction- the direction from this block to the neighbor
- neighborPos- the position of the neighbor block
- neighborState- the state of the updated neighbor block
- Returns:
- the state of the block after a neighboring block's state change
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getStateForNeighborUpdate- Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/world/tick/ScheduledTickView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/block/BlockState;- intermediary - method_9559- Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_10225;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_5819;)Lnet/minecraft/class_2680;- official - a- Ldwx;a(Ldwy;Ldgm;Ldgy;Lji;Ljn;Lji;Ldwy;Lazh;)Ldwy;
 
- 
getDirectionTowardsOtherPart- Mappings:
- Namespace - Name - Mixin selector - named - getDirectionTowardsOtherPart- Lnet/minecraft/block/BedBlock;getDirectionTowardsOtherPart(Lnet/minecraft/block/enums/BedPart;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;- intermediary - method_9488- Lnet/minecraft/class_2244;method_9488(Lnet/minecraft/class_2742;Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;- official - a- Ldjg;a(Ldxl;Ljn;)Ljn;
 
- 
onBreakCalled when a player breaks a block before the block is removed from the world. Explosions do not trigger this.Default implementation spawns block breaking particles, angers piglins, and emits game events. Tall or wide blocks such as doors or beds should override this to break the other part (along with AbstractBlock.getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.world.tick.ScheduledTickView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.util.math.random.Random).)In most cases, AbstractBlock.onStateReplaced(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean)orAbstractBlock.onStacksDropped(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.item.ItemStack, boolean)should be used instead. Note that they are called when blocks are broken by explosions as well as players breaking them.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.- Overrides:
- onBreakin class- Block
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - onBreak- Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/block/BlockState;- intermediary - method_9576- Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2680;- official - a- Ldjn;a(Ldgj;Lji;Ldwy;Lcoy;)Ldwy;
 
- 
getPlacementState- Overrides:
- getPlacementStatein class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - getPlacementState- Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;- intermediary - method_9605- Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;- official - a- Ldjn;a(Ldah;)Ldwy;
 
- 
getOutlineShapeprotected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
- getOutlineShapein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getOutlineShape- Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_9530- Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;- official - a- Ldwx;a(Ldwy;Ldfo;Lji;Lfbg;)Lfbv;
 
- 
getOppositePartDirection- Mappings:
- Namespace - Name - Mixin selector - named - getOppositePartDirection- Lnet/minecraft/block/BedBlock;getOppositePartDirection(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Direction;- intermediary - method_24163- Lnet/minecraft/class_2244;method_24163(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2350;- official - h- Ldjg;h(Ldwy;)Ljn;
 
- 
getBedPart- Mappings:
- Namespace - Name - Mixin selector - named - getBedPart- Lnet/minecraft/block/BedBlock;getBedPart(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/DoubleBlockProperties$Type;- intermediary - method_24164- Lnet/minecraft/class_2244;method_24164(Lnet/minecraft/class_2680;)Lnet/minecraft/class_4732$class_4733;- official - i- Ldjg;i(Ldwy;)Ldlv$a;
 
- 
isBedBelow- Mappings:
- Namespace - Name - Mixin selector - named - isBedBelow- Lnet/minecraft/block/BedBlock;isBedBelow(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_30839- Lnet/minecraft/class_2244;method_30839(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z- official - b- Ldjg;b(Ldfo;Lji;)Z
 
- 
findWakeUpPositionpublic static Optional<Vec3d> findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, float spawnAngle) - Mappings:
- Namespace - Name - Mixin selector - named - findWakeUpPosition- Lnet/minecraft/block/BedBlock;findWakeUpPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;F)Ljava/util/Optional;- intermediary - method_9484- Lnet/minecraft/class_2244;method_9484(Lnet/minecraft/class_1299;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;F)Ljava/util/Optional;- official - a- Ldjg;a(Lbut;Ldfs;Lji;Ljn;F)Ljava/util/Optional;
 
- 
findWakeUpPositionprivate static Optional<Vec3d> findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, Direction respawnDirection) - Mappings:
- Namespace - Name - Mixin selector - named - findWakeUpPosition- Lnet/minecraft/block/BedBlock;findWakeUpPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;)Ljava/util/Optional;- intermediary - method_30835- Lnet/minecraft/class_2244;method_30835(Lnet/minecraft/class_1299;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;)Ljava/util/Optional;- official - a- Ldjg;a(Lbut;Ldfs;Lji;Ljn;Ljn;)Ljava/util/Optional;
 
- 
findWakeUpPositionprivate static Optional<Vec3d> findWakeUpPosition(EntityType<?> type, CollisionView world, BlockPos pos, int[][] possibleOffsets, boolean ignoreInvalidPos) - Mappings:
- Namespace - Name - Mixin selector - named - findWakeUpPosition- Lnet/minecraft/block/BedBlock;findWakeUpPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;[[IZ)Ljava/util/Optional;- intermediary - method_30836- Lnet/minecraft/class_2244;method_30836(Lnet/minecraft/class_1299;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;[[IZ)Ljava/util/Optional;- official - a- Ldjg;a(Lbut;Ldfs;Lji;[[IZ)Ljava/util/Optional;
 
- 
appendPropertiesAppends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
- appendPropertiesin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - appendProperties- Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V- intermediary - method_9515- Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V- official - a- Ldjn;a(Ldwz$a;)V
 
- 
createBlockEntityReturns a new block entity instance.For example: @Override public BlockEntity createBlockEntity(BlockPos pos, BlockState state) { return new MyBlockEntity(pos, state); }- Specified by:
- createBlockEntityin interface- BlockEntityProvider
- Returns:
- a new block entity instance
- Implementation Note:
- While this is marked as nullable, in practice this should never return
 null.PistonExtensionBlockis the only block in vanilla that returnsnullinside the implementation.
- Mappings:
- Namespace - Name - Mixin selector - named - createBlockEntity- Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;- intermediary - method_10123- Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;- official - a- Ldmg;a(Lji;Ldwy;)Ldua;
 
- 
onPlacedpublic void onPlaced(World world, BlockPos pos, BlockState state, @Nullable @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.Tall or wide blocks (such as doors or beds) should override this to place the other half of the block. Blocks with block entities can use this to copy the data from the item stack, such as the custom name. This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.- Overrides:
- onPlacedin class- Block
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - onPlaced- Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V- intermediary - method_9567- Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V- official - a- Ldjn;a(Ldgj;Lji;Ldwy;Lbvi;Lcwq;)V
 
- 
getColor- Mappings:
- Namespace - Name - Mixin selector - named - getColor- Lnet/minecraft/block/BedBlock;getColor()Lnet/minecraft/util/DyeColor;- intermediary - method_9487- Lnet/minecraft/class_2244;method_9487()Lnet/minecraft/class_1767;- official - b- Ldjg;b()Lcvn;
 
- 
getRenderingSeedReturns the seed value for rendering.This is usually the hash code of pos. Tall or wide blocks (such as doors or beds) should override this to make sure both parts of the block have the same seed.- Overrides:
- getRenderingSeedin class- AbstractBlock
- Returns:
- the seed value for rendering
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getRenderingSeed- Lnet/minecraft/block/AbstractBlock;getRenderingSeed(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)J- intermediary - method_9535- Lnet/minecraft/class_4970;method_9535(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)J- official - a- Ldwx;a(Ldwy;Lji;)J
 
- 
getAroundAndOnBedOffsets- Mappings:
- Namespace - Name - Mixin selector - named - getAroundAndOnBedOffsets- Lnet/minecraft/block/BedBlock;getAroundAndOnBedOffsets(Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;)[[I- intermediary - method_30838- Lnet/minecraft/class_2244;method_30838(Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;)[[I- official - a- Ldjg;a(Ljn;Ljn;)[[I
 
- 
getAroundBedOffsets- Mappings:
- Namespace - Name - Mixin selector - named - getAroundBedOffsets- Lnet/minecraft/block/BedBlock;getAroundBedOffsets(Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;)[[I- intermediary - method_30840- Lnet/minecraft/class_2244;method_30840(Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;)[[I- official - b- Ldjg;b(Ljn;Ljn;)[[I
 
- 
getOnBedOffsets- Mappings:
- Namespace - Name - Mixin selector - named - getOnBedOffsets- Lnet/minecraft/block/BedBlock;getOnBedOffsets(Lnet/minecraft/util/math/Direction;)[[I- intermediary - method_30837- Lnet/minecraft/class_2244;method_30837(Lnet/minecraft/class_2350;)[[I- official - a- Ldjg;a(Ljn;)[[I
 
 
-