Package net.minecraft.world.level.block
Class 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
- All Implemented Interfaces:
- FeatureElement,- ItemLike,- IForgeBlock
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.BlockBlock.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviourBlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final IntegerPropertyprivate static final intprivate static final intprivate static final intprivate static final intprivate final it.unimi.dsi.fastutil.objects.Object2IntMap<Block>static final BooleanPropertyprivate static final VoxelShapeprivate static final intprivate static final intprivate static final intprivate static final intprivate final it.unimi.dsi.fastutil.objects.Object2IntMap<Block>static final intstatic final BooleanPropertyprivate static final VoxelShapeprivate static final Map<Direction,BooleanProperty> private final Map<BlockState,VoxelShape> static final BooleanPropertyprivate static final VoxelShapestatic final BooleanPropertyprivate static final VoxelShapestatic final BooleanPropertyprivate static final VoxelShapeFields inherited from class net.minecraft.world.level.block.BaseFireBlockAABB_OFFSET, DOWN_AABBFields inherited from class net.minecraft.world.level.block.BlockBLOCK_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_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviourdrops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidprivate static VoxelShapecalculateShape(BlockState p_53491_) protected booleancanBurn(BlockState p_53489_) Deprecated.booleancanCatchFire(BlockGetter world, BlockPos pos, Direction face) Side sensitive version that calls the block function.booleancanSurvive(BlockState p_53454_, LevelReader p_53455_, BlockPos p_53456_) protected voidintgetBurnOdds(BlockState p_221165_) Deprecated.private static intgetFireTickDelay(RandomSource p_221149_) intgetIgniteOdds(BlockState p_221167_) Deprecated.private intgetIgniteOdds(LevelReader p_221157_, BlockPos p_221158_) getShape(BlockState p_53474_, BlockGetter p_53475_, BlockPos p_53476_, CollisionContext p_53477_) getStateForPlacement(BlockPlaceContext p_53427_) protected BlockStategetStateForPlacement(BlockGetter p_53471_, BlockPos p_53472_) private BlockStategetStateWithAge(LevelAccessor p_53438_, BlockPos p_53439_, int p_53440_) protected booleanisNearRain(Level p_53429_, BlockPos p_53430_) private booleanisValidFireLocation(BlockGetter p_53486_, BlockPos p_53487_) voidonPlace(BlockState p_53479_, Level p_53480_, BlockPos p_53481_, BlockState p_53482_, boolean p_53483_) private voidsetFlammable(Block p_53445_, int p_53446_, int p_53447_) voidtick(BlockState p_221160_, ServerLevel p_221161_, BlockPos p_221162_, RandomSource p_221163_) private voidtryCatchFire(Level p_53432_, BlockPos p_53433_, int p_53434_, RandomSource p_53435_, int p_53436_, Direction face) updateShape(BlockState p_53458_, Direction p_53459_, BlockState p_53460_, LevelAccessor p_53461_, BlockPos p_53462_, BlockPos p_53463_) Methods inherited from class net.minecraft.world.level.block.BaseFireBlockanimateTick, canBePlacedAt, entityInside, getState, playerWillDestroy, spawnDestroyParticlesMethods inherited from class net.minecraft.world.level.block.BlockappendHoverText, 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, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviourattack, 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, useShapeForLightOcclusionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockaddLandingEffects, 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
- 
Field Details- 
MAX_AGEpublic static final int MAX_AGE- See Also:
 
- 
AGE
- 
NORTH
- 
EAST
- 
SOUTH
- 
WEST
- 
UP
- 
PROPERTY_BY_DIRECTION
- 
UP_AABB
- 
WEST_AABB
- 
EAST_AABB
- 
NORTH_AABB
- 
SOUTH_AABB
- 
shapesCache
- 
IGNITE_INSTANTprivate static final int IGNITE_INSTANT- See Also:
 
- 
IGNITE_EASYprivate static final int IGNITE_EASY- See Also:
 
- 
IGNITE_MEDIUMprivate static final int IGNITE_MEDIUM- See Also:
 
- 
IGNITE_HARDprivate static final int IGNITE_HARD- See Also:
 
- 
BURN_INSTANTprivate static final int BURN_INSTANT- See Also:
 
- 
BURN_EASYprivate static final int BURN_EASY- See Also:
 
- 
BURN_MEDIUMprivate static final int BURN_MEDIUM- See Also:
 
- 
BURN_HARDprivate static final int BURN_HARD- See Also:
 
- 
igniteOdds
- 
burnOdds
 
- 
- 
Constructor Details- 
FireBlock
 
- 
- 
Method Details- 
calculateShape
- 
updateShapepublic BlockState updateShape(BlockState p_53458_, Direction p_53459_, BlockState p_53460_, LevelAccessor p_53461_, BlockPos p_53462_, BlockPos p_53463_) - Overrides:
- updateShapein class- BlockBehaviour
 
- 
getShapepublic VoxelShape getShape(BlockState p_53474_, BlockGetter p_53475_, BlockPos p_53476_, CollisionContext p_53477_) - Overrides:
- getShapein class- BaseFireBlock
 
- 
getStateForPlacement- Overrides:
- getStateForPlacementin class- BaseFireBlock
 
- 
getStateForPlacement
- 
canSurvive- Overrides:
- canSurvivein class- BlockBehaviour
 
- 
tickpublic void tick(BlockState p_221160_, ServerLevel p_221161_, BlockPos p_221162_, RandomSource p_221163_) - Overrides:
- tickin class- BlockBehaviour
 
- 
isNearRain
- 
getBurnOddsDeprecated.
- 
getIgniteOddsDeprecated.
- 
tryCatchFireprivate void tryCatchFire(Level p_53432_, BlockPos p_53433_, int p_53434_, RandomSource p_53435_, int p_53436_, Direction face) 
- 
getStateWithAge
- 
isValidFireLocation
- 
getIgniteOdds
- 
canBurnDeprecated.- Specified by:
- canBurnin class- BaseFireBlock
 
- 
onPlacepublic void onPlace(BlockState p_53479_, Level p_53480_, BlockPos p_53481_, BlockState p_53482_, boolean p_53483_) - Overrides:
- onPlacein class- BaseFireBlock
 
- 
getFireTickDelay
- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
setFlammable
- 
canCatchFireSide sensitive version that calls the block function.- Parameters:
- world- The current world
- pos- Block position
- face- The side the fire is coming from
- Returns:
- True if the face can catch fire.
 
- 
bootStrappublic static void bootStrap()
 
-