类 MossyCarpetBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.MossyCarpetBlock
- 所有已实现的接口:
FeatureElement
,BonemealableBlock
,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
从接口继承的嵌套类/接口 net.minecraft.world.level.block.BonemealableBlock
BonemealableBlock.Type
-
字段概要
字段修饰符和类型字段说明private static final float
static final BooleanProperty
static final com.mojang.serialization.MapCodec
<MossyCarpetBlock> private static final VoxelShape
private static final EnumProperty
<WallSide> private static final VoxelShape
private static final VoxelShape
private static final EnumProperty
<WallSide> private static final VoxelShape
private static final VoxelShape
private static final Map
<Direction, EnumProperty<WallSide>> private final Map
<BlockState, VoxelShape> private static final int
private static final EnumProperty
<WallSide> private static final VoxelShape
private static final VoxelShape
private static final EnumProperty
<WallSide> private static final VoxelShape
private static final VoxelShape
从类继承的字段 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 VoxelShape
calculateShape
(BlockState p_363638_) private static boolean
canSupportAtFace
(BlockGetter p_370010_, BlockPos p_362757_, Direction p_361992_) protected boolean
canSurvive
(BlockState p_367593_, LevelReader p_363307_, BlockPos p_365117_) com.mojang.serialization.MapCodec
<MossyCarpetBlock> codec()
protected void
private static BlockState
createTopperWithSideChance
(BlockGetter p_362586_, BlockPos p_370077_, BooleanSupplier p_367276_) protected VoxelShape
getCollisionShape
(BlockState p_362636_, BlockGetter p_367446_, BlockPos p_361178_, CollisionContext p_362275_) protected VoxelShape
getOcclusionShape
(BlockState p_365538_) static EnumProperty
<WallSide> getPropertyForFace
(Direction p_368837_) protected VoxelShape
getShape
(BlockState p_363320_, BlockGetter p_360809_, BlockPos p_366148_, CollisionContext p_364013_) getStateForPlacement
(BlockPlaceContext p_363369_) private static BlockState
getUpdatedState
(BlockState p_368960_, BlockGetter p_360799_, BlockPos p_361234_, boolean p_368579_) private static boolean
hasFaces
(BlockState p_361239_) boolean
isBonemealSuccess
(Level p_362053_, RandomSource p_363617_, BlockPos p_362482_, BlockState p_365063_) boolean
isValidBonemealTarget
(LevelReader p_362652_, BlockPos p_369062_, BlockState p_361167_) protected BlockState
mirror
(BlockState p_368204_, Mirror p_366787_) void
performBonemeal
(ServerLevel p_366160_, RandomSource p_369242_, BlockPos p_362249_, BlockState p_362904_) static void
placeAt
(LevelAccessor p_369832_, BlockPos p_369165_, RandomSource p_364489_, int p_362052_) protected boolean
propagatesSkylightDown
(BlockState p_366765_) protected BlockState
rotate
(BlockState p_363231_, Rotation p_369895_) void
setPlacedBy
(Level p_362741_, BlockPos p_360970_, BlockState p_365361_, LivingEntity p_369935_, ItemStack p_364687_) protected BlockState
updateShape
(BlockState p_367293_, LevelReader p_364514_, ScheduledTickAccess p_366367_, BlockPos p_370081_, Direction p_361388_, BlockPos p_367050_, BlockState p_368028_, RandomSource p_366712_) 从类继承的方法 net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItem
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.block.BonemealableBlock
getParticlePos, getType
从接口继承的方法 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
-
BASE
-
NORTH
-
EAST
-
SOUTH
-
WEST
-
PROPERTY_BY_DIRECTION
-
AABB_OFFSET
private static final float AABB_OFFSET- 另请参阅:
-
DOWN_AABB
-
WEST_AABB
-
EAST_AABB
-
NORTH_AABB
-
SOUTH_AABB
-
SHORT_HEIGHT
private static final int SHORT_HEIGHT- 另请参阅:
-
WEST_SHORT_AABB
-
EAST_SHORT_AABB
-
NORTH_SHORT_AABB
-
SOUTH_SHORT_AABB
-
shapesCache
-
-
构造器详细资料
-
MossyCarpetBlock
-
-
方法详细资料
-
codec
-
getOcclusionShape
- 覆盖:
getOcclusionShape
在类中BlockBehaviour
-
calculateShape
-
getShape
protected VoxelShape getShape(BlockState p_363320_, BlockGetter p_360809_, BlockPos p_366148_, CollisionContext p_364013_) - 覆盖:
getShape
在类中BlockBehaviour
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState p_362636_, BlockGetter p_367446_, BlockPos p_361178_, CollisionContext p_362275_) - 覆盖:
getCollisionShape
在类中BlockBehaviour
-
propagatesSkylightDown
- 覆盖:
propagatesSkylightDown
在类中BlockBehaviour
-
canSurvive
- 覆盖:
canSurvive
在类中BlockBehaviour
-
hasFaces
-
canSupportAtFace
private static boolean canSupportAtFace(BlockGetter p_370010_, BlockPos p_362757_, Direction p_361992_) -
getUpdatedState
private static BlockState getUpdatedState(BlockState p_368960_, BlockGetter p_360799_, BlockPos p_361234_, boolean p_368579_) -
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
placeAt
public static void placeAt(LevelAccessor p_369832_, BlockPos p_369165_, RandomSource p_364489_, int p_362052_) -
setPlacedBy
public void setPlacedBy(Level p_362741_, BlockPos p_360970_, BlockState p_365361_, @Nullable LivingEntity p_369935_, ItemStack p_364687_) - 覆盖:
setPlacedBy
在类中Block
-
createTopperWithSideChance
private static BlockState createTopperWithSideChance(BlockGetter p_362586_, BlockPos p_370077_, BooleanSupplier p_367276_) -
updateShape
protected BlockState updateShape(BlockState p_367293_, LevelReader p_364514_, ScheduledTickAccess p_366367_, BlockPos p_370081_, Direction p_361388_, BlockPos p_367050_, BlockState p_368028_, RandomSource p_366712_) - 覆盖:
updateShape
在类中BlockBehaviour
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
rotate
- 覆盖:
rotate
在类中BlockBehaviour
-
mirror
- 覆盖:
mirror
在类中BlockBehaviour
-
getPropertyForFace
-
isValidBonemealTarget
public boolean isValidBonemealTarget(LevelReader p_362652_, BlockPos p_369062_, BlockState p_361167_) - 指定者:
isValidBonemealTarget
在接口中BonemealableBlock
-
isBonemealSuccess
public boolean isBonemealSuccess(Level p_362053_, RandomSource p_363617_, BlockPos p_362482_, BlockState p_365063_) - 指定者:
isBonemealSuccess
在接口中BonemealableBlock
-
performBonemeal
public void performBonemeal(ServerLevel p_366160_, RandomSource p_369242_, BlockPos p_362249_, BlockState p_362904_) - 指定者:
performBonemeal
在接口中BonemealableBlock
-