类 WallBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.WallBlock
- 所有已实现的接口:
FeatureElement
,BucketPickup
,LiquidBlockContainer
,SimpleWaterloggedBlock
,ItemLike
,IForgeBlock
,IForgeBucketPickup
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.Block
Block.BlockStatePairKey
从类继承的嵌套类/接口 net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
字段概要
字段修饰符和类型字段说明private final Map<BlockState,
VoxelShape> private static final VoxelShape
static final EnumProperty<WallSide>
private static final VoxelShape
static final EnumProperty<WallSide>
private static final int
private static final VoxelShape
private static final int
private final Map<BlockState,
VoxelShape> private static final VoxelShape
static final EnumProperty<WallSide>
static final BooleanProperty
private static final int
private static final int
private static final int
private static final int
static final BooleanProperty
private static final VoxelShape
static final EnumProperty<WallSide>
从类继承的字段 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_SUPPRESS_DROPS
从类继承的字段 net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static VoxelShape
applyWallShape
(VoxelShape pBaseShape, WallSide pHeight, VoxelShape pLowShape, VoxelShape pTallShape) private boolean
connectsTo
(BlockState pState, boolean pSideSolid, Direction pDirection) protected void
getCollisionShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) getFluidState
(BlockState pState) getShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) getStateForPlacement
(BlockPlaceContext pContext) private static boolean
isConnected
(BlockState pState, Property<WallSide> pHeightProperty) private static boolean
isCovered
(VoxelShape pFirstShape, VoxelShape pSecondShape) boolean
isPathfindable
(BlockState pState, BlockGetter pLevel, BlockPos pPos, PathComputationType pType) private Map<BlockState,
VoxelShape> makeShapes
(float pWidth, float pDepth, float pWallPostHeight, float pWallMinY, float pWallLowHeight, float pWallTallHeight) private WallSide
makeWallState
(boolean pAllowConnection, VoxelShape pShape, VoxelShape pNeighbourShape) mirror
(BlockState pState, Mirror pMirror) boolean
propagatesSkylightDown
(BlockState pState, BlockGetter pReader, BlockPos pPos) rotate
(BlockState pState, Rotation pRotation) private boolean
shouldRaisePost
(BlockState pState, BlockState pNeighbour, VoxelShape pShape) private BlockState
sideUpdate
(LevelReader pLevel, BlockPos pFirstPos, BlockState pFirstState, BlockPos pSecondPos, BlockState pSecondState, Direction pDir) private BlockState
topUpdate
(LevelReader pLevel, BlockState pState, BlockPos pPos, BlockState pSecondState) updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) private BlockState
updateShape
(LevelReader pLevel, BlockState pState, BlockPos pPos, BlockState pNeighbour, boolean pNorthConnection, boolean pEastConnection, boolean pSouthConnection, boolean pWestConnection) private BlockState
updateSides
(BlockState pState, boolean pNorthConnection, boolean pEastConnection, boolean pSouthConnection, boolean pWestConnection, VoxelShape pWallShape) 从类继承的方法 net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 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, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, 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
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBucketPickup
getPickupSound
从接口继承的方法 net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
字段详细资料
-
UP
-
EAST_WALL
-
NORTH_WALL
-
SOUTH_WALL
-
WEST_WALL
-
WATERLOGGED
-
shapeByIndex
-
collisionShapeByIndex
-
WALL_WIDTH
private static final int WALL_WIDTH- 另请参阅:
-
WALL_HEIGHT
private static final int WALL_HEIGHT- 另请参阅:
-
POST_WIDTH
private static final int POST_WIDTH- 另请参阅:
-
POST_COVER_WIDTH
private static final int POST_COVER_WIDTH- 另请参阅:
-
WALL_COVER_START
private static final int WALL_COVER_START- 另请参阅:
-
WALL_COVER_END
private static final int WALL_COVER_END- 另请参阅:
-
POST_TEST
-
NORTH_TEST
-
SOUTH_TEST
-
WEST_TEST
-
EAST_TEST
-
-
构造器详细资料
-
WallBlock
-
-
方法详细资料
-
applyWallShape
private static VoxelShape applyWallShape(VoxelShape pBaseShape, WallSide pHeight, VoxelShape pLowShape, VoxelShape pTallShape) -
makeShapes
private Map<BlockState,VoxelShape> makeShapes(float pWidth, float pDepth, float pWallPostHeight, float pWallMinY, float pWallLowHeight, float pWallTallHeight) -
getShape
public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) - 覆盖:
getShape
在类中BlockBehaviour
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) - 覆盖:
getCollisionShape
在类中BlockBehaviour
-
isPathfindable
public boolean isPathfindable(BlockState pState, BlockGetter pLevel, BlockPos pPos, PathComputationType pType) - 覆盖:
isPathfindable
在类中BlockBehaviour
-
connectsTo
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
updateShape
public BlockState updateShape(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) - 覆盖:
updateShape
在类中BlockBehaviour
-
isConnected
-
isCovered
-
topUpdate
private BlockState topUpdate(LevelReader pLevel, BlockState pState, BlockPos pPos, BlockState pSecondState) -
sideUpdate
private BlockState sideUpdate(LevelReader pLevel, BlockPos pFirstPos, BlockState pFirstState, BlockPos pSecondPos, BlockState pSecondState, Direction pDir) -
updateShape
private BlockState updateShape(LevelReader pLevel, BlockState pState, BlockPos pPos, BlockState pNeighbour, boolean pNorthConnection, boolean pEastConnection, boolean pSouthConnection, boolean pWestConnection) -
shouldRaisePost
-
updateSides
private BlockState updateSides(BlockState pState, boolean pNorthConnection, boolean pEastConnection, boolean pSouthConnection, boolean pWestConnection, VoxelShape pWallShape) -
makeWallState
private WallSide makeWallState(boolean pAllowConnection, VoxelShape pShape, VoxelShape pNeighbourShape) -
getFluidState
- 覆盖:
getFluidState
在类中BlockBehaviour
-
propagatesSkylightDown
- 覆盖:
propagatesSkylightDown
在类中Block
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
rotate
- 覆盖:
rotate
在类中BlockBehaviour
-
mirror
- 覆盖:
mirror
在类中BlockBehaviour
-