Package net.minecraft.block
Class FireBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractFireBlock
net.minecraft.block.FireBlock
- All Implemented Interfaces:
ItemConvertible
public class FireBlock extends AbstractFireBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description static IntPropertyAGEprivate Object2IntMap<Block>burnChancesprivate static Map<Direction,BooleanProperty>DIRECTION_PROPERTIESstatic BooleanPropertyEASTprivate static VoxelShapefield_26653private static VoxelShapefield_26654private static VoxelShapefield_26655private static VoxelShapefield_26656private static VoxelShapefield_26657private Map<BlockState,VoxelShape>field_26658static BooleanPropertyNORTHstatic BooleanPropertySOUTHprivate Object2IntMap<Block>spreadChancesstatic BooleanPropertyUPstatic BooleanPropertyWESTFields inherited from class net.minecraft.block.AbstractFireBlock
BASE_SHAPEFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description FireBlock(AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)private booleanareBlocksAroundFlammable(BlockView world, BlockPos pos)booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos)private intgetBurnChance(BlockState state)private intgetBurnChance(WorldView world, BlockPos pos)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)BlockStategetPlacementState(ItemPlacementContext ctx)private intgetSpreadChance(BlockState state)BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)Gets the possibly updated block state of this block when a neighboring block is updated.protected BlockStategetStateForPosition(BlockView world, BlockPos pos)protected booleanisFlammable(BlockState state)protected booleanisRainingAround(World world, BlockPos pos)private BlockStatemethod_24855(WorldAccess worldAccess, BlockPos blockPos, int int2)private static intmethod_26155(Random random)private static VoxelShapemethod_31016(BlockState blockState)voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)static voidregisterDefaultFlammables()private voidregisterFlammableBlock(Block block, int burnChance, int spreadChance)voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)private voidtrySpreadingFire(World world, BlockPos pos, int spreadFactor, Random rand, int currentAge)Methods inherited from class net.minecraft.block.AbstractFireBlock
getState, method_30032, onBreak, onEntityCollision, randomDisplayTickMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
Field Details
-
AGE
-
NORTH
-
EAST
-
SOUTH
-
WEST
-
UP
-
DIRECTION_PROPERTIES
-
field_26653
-
field_26654
-
field_26655
-
field_26656
-
field_26657
-
field_26658
-
burnChances
-
spreadChances
-
-
Constructor Details
-
FireBlock
-
-
Method Details
-
method_31016
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)Gets the possibly updated block state of this block when a neighboring block is updated.- Overrides:
getStateForNeighborUpdatein classAbstractBlock- Parameters:
state- the state of this blockdirection- the direction from this block to the neighborneighborState- the state of the updated neighbor blockworld- the worldpos- the position of this blockneighborPos- the position of the neighbor block- Returns:
- the new state of this block
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractFireBlock
-
getPlacementState
- Overrides:
getPlacementStatein classAbstractFireBlock
-
getStateForPosition
-
canPlaceAt
- Overrides:
canPlaceAtin classAbstractBlock
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock
-
isRainingAround
-
getSpreadChance
-
getBurnChance
-
trySpreadingFire
-
method_24855
-
areBlocksAroundFlammable
-
getBurnChance
-
isFlammable
- Specified by:
isFlammablein classAbstractFireBlock
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)- Overrides:
onBlockAddedin classAbstractFireBlock
-
method_26155
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-
registerFlammableBlock
-
registerDefaultFlammables
public static void registerDefaultFlammables()
-