类 FireBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseFireBlock
net.minecraft.world.level.block.FireBlock
- 所有已实现的接口:
FeatureElement
,ItemLike
,IForgeBlock
-
嵌套类概要
从类继承的嵌套类/接口 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
-
字段概要
字段修饰符和类型字段说明static final IntegerProperty
private static final int
private static final int
private static final int
private static final int
private final it.unimi.dsi.fastutil.objects.Object2IntMap<Block>
static final BooleanProperty
private static final VoxelShape
private static final int
private static final int
private static final int
private static final int
private final it.unimi.dsi.fastutil.objects.Object2IntMap<Block>
static final int
static final BooleanProperty
private static final VoxelShape
private static final Map<Direction,
BooleanProperty> private final Map<BlockState,
VoxelShape> static final BooleanProperty
private static final VoxelShape
static final BooleanProperty
private static final VoxelShape
static final BooleanProperty
private static final VoxelShape
从类继承的字段 net.minecraft.world.level.block.BaseFireBlock
AABB_OFFSET, DOWN_AABB
从类继承的字段 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
private static VoxelShape
calculateShape
(BlockState p_53491_) protected boolean
canBurn
(BlockState pState) 已过时。boolean
canCatchFire
(BlockGetter world, BlockPos pos, Direction face) Side sensitive version that calls the block function.boolean
canSurvive
(BlockState pState, LevelReader pLevel, BlockPos pPos) protected void
int
getBurnOdds
(BlockState pState) 已过时。private static int
getFireTickDelay
(RandomSource pRandom) int
getIgniteOdds
(BlockState pState) 已过时。private int
getIgniteOdds
(LevelReader pLevel, BlockPos pPos) getShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) getStateForPlacement
(BlockPlaceContext pContext) protected BlockState
getStateForPlacement
(BlockGetter pLevel, BlockPos pPos) private BlockState
getStateWithAge
(LevelAccessor pLevel, BlockPos pPos, int pAge) protected boolean
isNearRain
(Level pLevel, BlockPos pPos) private boolean
isValidFireLocation
(BlockGetter pLevel, BlockPos pPos) void
onPlace
(BlockState pState, Level pLevel, BlockPos pPos, BlockState pOldState, boolean pIsMoving) private void
setFlammable
(Block pBlock, int pEncouragement, int pFlammability) void
tick
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) private void
tryCatchFire
(Level p_53432_, BlockPos p_53433_, int p_53434_, RandomSource p_53435_, int p_53436_, Direction face) updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) 从类继承的方法 net.minecraft.world.level.block.BaseFireBlock
animateTick, canBePlacedAt, entityInside, getState, playerWillDestroy, spawnDestroyParticles
从类继承的方法 net.minecraft.world.level.block.Block
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, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onProjectileHit, onRemove, randomTick, requiredFeatures, rotate, skipRendering, spawnAfterBreak, 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
-
字段详细资料
-
MAX_AGE
public static final int MAX_AGE- 另请参阅:
-
AGE
-
NORTH
-
EAST
-
SOUTH
-
WEST
-
UP
-
PROPERTY_BY_DIRECTION
-
UP_AABB
-
WEST_AABB
-
EAST_AABB
-
NORTH_AABB
-
SOUTH_AABB
-
shapesCache
-
IGNITE_INSTANT
private static final int IGNITE_INSTANT- 另请参阅:
-
IGNITE_EASY
private static final int IGNITE_EASY- 另请参阅:
-
IGNITE_MEDIUM
private static final int IGNITE_MEDIUM- 另请参阅:
-
IGNITE_HARD
private static final int IGNITE_HARD- 另请参阅:
-
BURN_INSTANT
private static final int BURN_INSTANT- 另请参阅:
-
BURN_EASY
private static final int BURN_EASY- 另请参阅:
-
BURN_MEDIUM
private static final int BURN_MEDIUM- 另请参阅:
-
BURN_HARD
private static final int BURN_HARD- 另请参阅:
-
igniteOdds
-
burnOdds
-
-
构造器详细资料
-
FireBlock
-
-
方法详细资料
-
calculateShape
-
updateShape
public BlockState updateShape(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) - 覆盖:
updateShape
在类中BlockBehaviour
-
getShape
public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) - 覆盖:
getShape
在类中BaseFireBlock
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中BaseFireBlock
-
getStateForPlacement
-
canSurvive
- 覆盖:
canSurvive
在类中BlockBehaviour
-
tick
- 覆盖:
tick
在类中BlockBehaviour
-
isNearRain
-
getBurnOdds
已过时。 -
getIgniteOdds
已过时。 -
tryCatchFire
private void tryCatchFire(Level p_53432_, BlockPos p_53433_, int p_53434_, RandomSource p_53435_, int p_53436_, Direction face) -
getStateWithAge
-
isValidFireLocation
-
getIgniteOdds
-
canBurn
已过时。- 指定者:
canBurn
在类中BaseFireBlock
-
onPlace
public void onPlace(BlockState pState, Level pLevel, BlockPos pPos, BlockState pOldState, boolean pIsMoving) - 覆盖:
onPlace
在类中BaseFireBlock
-
getFireTickDelay
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
setFlammable
-
canCatchFire
Side sensitive version that calls the block function.- 参数:
world
- The current worldpos
- Block positionface
- The side the fire is coming from- 返回:
- True if the face can catch fire.
-
bootStrap
public static void bootStrap()
-