Package net.minecraft.block
Class FireBlock
- All Implemented Interfaces:
IItemProvider
,IForgeBlock
,IForgeRegistryEntry<Block>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.RenderSideCacheKey
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IntegerProperty
private final it.unimi.dsi.fastutil.objects.Object2IntMap<Block>
static final BooleanProperty
private static final VoxelShape
private final it.unimi.dsi.fastutil.objects.Object2IntMap<Block>
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
Fields inherited from class net.minecraft.block.AbstractFireBlock
DOWN_AABB
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Fields inherited from class net.minecraft.block.AbstractBlock
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_242673_0_) protected boolean
canBurn
(BlockState p_196446_1_) Deprecated.boolean
canCatchFire
(IBlockReader world, BlockPos pos, Direction face) Side sensitive version that calls the block function.boolean
canSurvive
(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_) protected void
createBlockStateDefinition
(StateContainer.Builder<Block, BlockState> p_206840_1_) int
getBurnOdd
(BlockState p_220274_1_) Deprecated.private int
getFireOdds
(IWorldReader p_176538_1_, BlockPos p_176538_2_) private static int
getFireTickDelay
(Random p_235495_0_) int
getFlameOdds
(BlockState p_220275_1_) Deprecated.getShape
(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) getStateForPlacement
(BlockItemUseContext p_196258_1_) protected BlockState
getStateForPlacement
(IBlockReader p_196448_1_, BlockPos p_196448_2_) private BlockState
getStateWithAge
(IWorld p_235494_1_, BlockPos p_235494_2_, int p_235494_3_) protected boolean
isNearRain
(World p_176537_1_, BlockPos p_176537_2_) private boolean
isValidFireLocation
(IBlockReader p_196447_1_, BlockPos p_196447_2_) void
onPlace
(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_) private void
setFlammable
(Block p_180686_1_, int p_180686_2_, int p_180686_3_) void
tick
(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) private void
tryCatchFire
(World p_176536_1_, BlockPos p_176536_2_, int p_176536_3_, Random p_176536_4_, int p_176536_5_, Direction face) updateShape
(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_) Methods inherited from class net.minecraft.block.AbstractFireBlock
animateTick, canBePlacedAt, entityInside, getState, playerWillDestroy
Methods inherited from class net.minecraft.block.Block
appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
Methods inherited from class net.minecraft.block.AbstractBlock
attack, canBeReplaced, canBeReplaced, defaultMaterialColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, 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
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
-
Field Details
-
AGE
-
NORTH
-
EAST
-
SOUTH
-
WEST
-
UP
-
PROPERTY_BY_DIRECTION
-
UP_AABB
-
WEST_AABB
-
EAST_AABB
-
NORTH_AABB
-
SOUTH_AABB
-
shapesCache
-
flameOdds
-
burnOdds
-
-
Constructor Details
-
FireBlock
-
-
Method Details
-
calculateShape
-
updateShape
public BlockState updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_) - Overrides:
updateShape
in classAbstractBlock
-
getShape
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) - Overrides:
getShape
in classAbstractFireBlock
-
getStateForPlacement
- Overrides:
getStateForPlacement
in classAbstractFireBlock
-
getStateForPlacement
-
canSurvive
- Overrides:
canSurvive
in classAbstractBlock
-
tick
public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) - Overrides:
tick
in classAbstractBlock
-
isNearRain
-
getBurnOdd
Deprecated. -
getFlameOdds
Deprecated. -
tryCatchFire
-
getStateWithAge
-
isValidFireLocation
-
getFireOdds
-
canBurn
Deprecated.- Specified by:
canBurn
in classAbstractFireBlock
-
onPlace
public void onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_) - Overrides:
onPlace
in classAbstractFireBlock
-
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()
-