类 BedBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.HorizontalDirectionalBlock
net.minecraft.world.level.block.BedBlock
- 所有已实现的接口:
FeatureElement
,EntityBlock
,ItemLike
,IForgeBlock
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.Block
Block.ShapePairKey
从类继承的嵌套类/接口 net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
字段概要
字段修饰符和类型字段说明protected static final VoxelShape
static final com.mojang.serialization.MapCodec
<BedBlock> private final DyeColor
protected static final VoxelShape
protected static final int
protected static final VoxelShape
protected static final VoxelShape
protected static final VoxelShape
protected static final VoxelShape
private static final int
protected static final VoxelShape
static final BooleanProperty
static final EnumProperty
<BedPart> protected static final VoxelShape
protected static final VoxelShape
从类继承的字段 net.minecraft.world.level.block.HorizontalDirectionalBlock
FACING
从类继承的字段 net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPS
从类继承的字段 net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int[][]
bedAboveStandUpOffsets
(Direction p_49537_) private static int[][]
bedStandUpOffsets
(Direction p_49539_, Direction p_49540_) private static int[][]
bedSurroundStandUpOffsets
(Direction p_49552_, Direction p_49553_) private void
static boolean
canSetSpawn
(Level p_49489_) com.mojang.serialization.MapCodec
<BedBlock> codec()
protected void
void
fallOn
(Level p_152169_, BlockState p_152170_, BlockPos p_152171_, Entity p_152172_, float p_152173_) findBunkBedStandUpPosition
(EntityType<?> p_49464_, CollisionGetter p_49465_, BlockPos p_49466_, Direction p_49467_, Direction p_49468_) findStandUpPosition
(EntityType<?> p_261547_, CollisionGetter p_261946_, BlockPos p_261614_, Direction p_261648_, float p_261680_) findStandUpPositionAtOffset
(EntityType<?> p_49470_, CollisionGetter p_49471_, BlockPos p_49472_, int[][] p_49473_, boolean p_49474_) static Direction
getBedOrientation
(BlockGetter p_49486_, BlockPos p_49487_) getBlockType
(BlockState p_49560_) getColor()
static Direction
getConnectedDirection
(BlockState p_49558_) private static Direction
getNeighbourDirection
(BedPart p_49534_, Direction p_49535_) protected long
getSeed
(BlockState p_49522_, BlockPos p_49523_) protected VoxelShape
getShape
(BlockState p_49547_, BlockGetter p_49548_, BlockPos p_49549_, CollisionContext p_49550_) getStateForPlacement
(BlockPlaceContext p_49479_) private static boolean
isBunkBed
(BlockGetter p_49542_, BlockPos p_49543_) protected boolean
isPathfindable
(BlockState p_49510_, PathComputationType p_49513_) private boolean
kickVillagerOutOfBed
(Level p_49491_, BlockPos p_49492_) newBlockEntity
(BlockPos p_152175_, BlockState p_152176_) playerWillDestroy
(Level p_49505_, BlockPos p_49506_, BlockState p_49507_, Player p_49508_) void
setPlacedBy
(Level p_49499_, BlockPos p_49500_, BlockState p_49501_, LivingEntity p_49502_, ItemStack p_49503_) void
updateEntityMovementAfterFallOn
(BlockGetter p_49483_, Entity p_49484_) protected BlockState
updateShape
(BlockState p_49525_, LevelReader p_367181_, ScheduledTickAccess p_361759_, BlockPos p_49529_, Direction p_49526_, BlockPos p_49530_, BlockState p_49527_, RandomSource p_361707_) protected InteractionResult
useWithoutItem
(BlockState p_49515_, Level p_49516_, BlockPos p_49517_, Player p_49518_, BlockHitResult p_49520_) 从类继承的方法 net.minecraft.world.level.block.HorizontalDirectionalBlock
mirror, rotate
从类继承的方法 net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isRandomlyTicking, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.block.EntityBlock
getListener, getTicker
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
-
字段详细资料
-
CODEC
-
PART
-
OCCUPIED
-
HEIGHT
protected static final int HEIGHT- 另请参阅:
-
BASE
-
LEG_WIDTH
private static final int LEG_WIDTH- 另请参阅:
-
LEG_NORTH_WEST
-
LEG_SOUTH_WEST
-
LEG_NORTH_EAST
-
LEG_SOUTH_EAST
-
NORTH_SHAPE
-
SOUTH_SHAPE
-
WEST_SHAPE
-
EAST_SHAPE
-
color
-
-
构造器详细资料
-
BedBlock
-
-
方法详细资料
-
codec
- 指定者:
codec
在类中HorizontalDirectionalBlock
-
getBedOrientation
-
useWithoutItem
protected InteractionResult useWithoutItem(BlockState p_49515_, Level p_49516_, BlockPos p_49517_, Player p_49518_, BlockHitResult p_49520_) - 覆盖:
useWithoutItem
在类中BlockBehaviour
-
canSetSpawn
-
kickVillagerOutOfBed
-
fallOn
public void fallOn(Level p_152169_, BlockState p_152170_, BlockPos p_152171_, Entity p_152172_, float p_152173_) -
updateEntityMovementAfterFallOn
- 覆盖:
updateEntityMovementAfterFallOn
在类中Block
-
bounceUp
-
updateShape
protected BlockState updateShape(BlockState p_49525_, LevelReader p_367181_, ScheduledTickAccess p_361759_, BlockPos p_49529_, Direction p_49526_, BlockPos p_49530_, BlockState p_49527_, RandomSource p_361707_) - 覆盖:
updateShape
在类中BlockBehaviour
-
getNeighbourDirection
-
playerWillDestroy
public BlockState playerWillDestroy(Level p_49505_, BlockPos p_49506_, BlockState p_49507_, Player p_49508_) - 覆盖:
playerWillDestroy
在类中Block
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
getShape
protected VoxelShape getShape(BlockState p_49547_, BlockGetter p_49548_, BlockPos p_49549_, CollisionContext p_49550_) - 覆盖:
getShape
在类中BlockBehaviour
-
getConnectedDirection
-
getBlockType
-
isBunkBed
-
findStandUpPosition
public static Optional<Vec3> findStandUpPosition(EntityType<?> p_261547_, CollisionGetter p_261946_, BlockPos p_261614_, Direction p_261648_, float p_261680_) -
findBunkBedStandUpPosition
private static Optional<Vec3> findBunkBedStandUpPosition(EntityType<?> p_49464_, CollisionGetter p_49465_, BlockPos p_49466_, Direction p_49467_, Direction p_49468_) -
findStandUpPositionAtOffset
private static Optional<Vec3> findStandUpPositionAtOffset(EntityType<?> p_49470_, CollisionGetter p_49471_, BlockPos p_49472_, int[][] p_49473_, boolean p_49474_) -
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
newBlockEntity
- 指定者:
newBlockEntity
在接口中EntityBlock
-
setPlacedBy
public void setPlacedBy(Level p_49499_, BlockPos p_49500_, BlockState p_49501_, @Nullable LivingEntity p_49502_, ItemStack p_49503_) - 覆盖:
setPlacedBy
在类中Block
-
getColor
-
getSeed
- 覆盖:
getSeed
在类中BlockBehaviour
-
isPathfindable
- 覆盖:
isPathfindable
在类中BlockBehaviour
-
bedStandUpOffsets
-
bedSurroundStandUpOffsets
-
bedAboveStandUpOffsets
-