Package net.minecraft.world.level.block
Class FireBlock
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Block>
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:
ItemLike
,IForgeBlock
,IForgeRegistryEntry<Block>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKey
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic IntegerProperty
private static int
private static int
private static int
private static int
private it.unimi.dsi.fastutil.objects.Object2IntMap<Block>
static BooleanProperty
private static VoxelShape
private static int
private static int
private static int
private static int
private it.unimi.dsi.fastutil.objects.Object2IntMap<Block>
static int
static BooleanProperty
private static VoxelShape
private static Map<Direction,BooleanProperty>
private Map<BlockState,VoxelShape>
static BooleanProperty
private static VoxelShape
static BooleanProperty
private static VoxelShape
static BooleanProperty
private static VoxelShape
Fields inherited from class net.minecraft.world.level.block.BaseFireBlock
AABB_OFFSET, DOWN_AABB
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, LOGGER, RANDOM, 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, UPDATE_SUPPRESS_LIGHT
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private static VoxelShape
calculateShape(BlockState p_53491_)
protected boolean
canBurn(BlockState p_53489_)
Deprecated.boolean
canCatchFire(BlockGetter world, BlockPos pos, Direction face)
Side sensitive version that calls the block function.boolean
canSurvive(BlockState p_53454_, LevelReader p_53455_, BlockPos p_53456_)
protected void
createBlockStateDefinition(StateDefinition.Builder<Block,BlockState> p_53465_)
int
getBurnOdd(BlockState p_53493_)
Deprecated.private int
getFireOdds(LevelReader p_53442_, BlockPos p_53443_)
private static int
getFireTickDelay(Random p_53469_)
int
getFlameOdds(BlockState p_53495_)
Deprecated.getShape(BlockState p_53474_, BlockGetter p_53475_, BlockPos p_53476_, CollisionContext p_53477_)
getStateForPlacement(BlockPlaceContext p_53427_)
protected BlockState
getStateForPlacement(BlockGetter p_53471_, BlockPos p_53472_)
private BlockState
getStateWithAge(LevelAccessor p_53438_, BlockPos p_53439_, int p_53440_)
protected boolean
isNearRain(Level p_53429_, BlockPos p_53430_)
private boolean
isValidFireLocation(BlockGetter p_53486_, BlockPos p_53487_)
void
onPlace(BlockState p_53479_, Level p_53480_, BlockPos p_53481_, BlockState p_53482_, boolean p_53483_)
private void
setFlammable(Block p_53445_, int p_53446_, int p_53447_)
void
tick(BlockState p_53449_, ServerLevel p_53450_, BlockPos p_53451_, Random p_53452_)
private void
tryCatchFire(Level p_53432_, BlockPos p_53433_, int p_53434_, Random 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.BaseFireBlock
animateTick, canBePlacedAt, entityInside, getState, playerWillDestroy, spawnDestroyParticles
Methods inherited from class net.minecraft.world.level.block.Block
appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getTags, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMaterialColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onProjectileHit, onRemove, randomTick, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getPickBlock, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onNeighborChange, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
-
Field Details
-
MAX_AGE
public static final int MAX_AGE- See Also:
- Constant Field Values
-
AGE
-
NORTH
-
EAST
-
SOUTH
-
WEST
-
UP
-
PROPERTY_BY_DIRECTION
-
UP_AABB
-
WEST_AABB
-
EAST_AABB
-
NORTH_AABB
-
SOUTH_AABB
-
shapesCache
-
FLAME_INSTANT
private static final int FLAME_INSTANT- See Also:
- Constant Field Values
-
FLAME_EASY
private static final int FLAME_EASY- See Also:
- Constant Field Values
-
FLAME_MEDIUM
private static final int FLAME_MEDIUM- See Also:
- Constant Field Values
-
FLAME_HARD
private static final int FLAME_HARD- See Also:
- Constant Field Values
-
BURN_INSTANT
private static final int BURN_INSTANT- See Also:
- Constant Field Values
-
BURN_EASY
private static final int BURN_EASY- See Also:
- Constant Field Values
-
BURN_MEDIUM
private static final int BURN_MEDIUM- See Also:
- Constant Field Values
-
BURN_HARD
private static final int BURN_HARD- See Also:
- Constant Field Values
-
flameOdds
-
burnOdds
-
-
Constructor Details
-
FireBlock
-
-
Method Details
-
calculateShape
-
updateShape
public BlockState updateShape(BlockState p_53458_, Direction p_53459_, BlockState p_53460_, LevelAccessor p_53461_, BlockPos p_53462_, BlockPos p_53463_)- Overrides:
updateShape
in classBlockBehaviour
-
getShape
public VoxelShape getShape(BlockState p_53474_, BlockGetter p_53475_, BlockPos p_53476_, CollisionContext p_53477_)- Overrides:
getShape
in classBaseFireBlock
-
getStateForPlacement
- Overrides:
getStateForPlacement
in classBaseFireBlock
-
getStateForPlacement
-
canSurvive
- Overrides:
canSurvive
in classBlockBehaviour
-
tick
- Overrides:
tick
in classBlockBehaviour
-
isNearRain
-
getBurnOdd
Deprecated. -
getFlameOdds
Deprecated. -
tryCatchFire
-
getStateWithAge
-
isValidFireLocation
-
getFireOdds
-
canBurn
Deprecated.- Specified by:
canBurn
in classBaseFireBlock
-
onPlace
public void onPlace(BlockState p_53479_, Level p_53480_, BlockPos p_53481_, BlockState p_53482_, boolean p_53483_)- Overrides:
onPlace
in classBaseFireBlock
-
getFireTickDelay
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
setFlammable
-
canCatchFire
Side sensitive version that calls the block function.- Parameters:
world
- The current worldpos
- Block positionface
- The side the fire is coming from- Returns:
- True if the face can catch fire.
-
bootStrap
public static void bootStrap()
-