net.minecraft.block

public class FireBlock

extends AbstractFireBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.FireBlock
net.minecraft.world.level.block.FireBlock
net.minecraft.class_2358
net.minecraft.block.FireBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<FireBlock>
CODEC
CODEC
field_46352
CODEC
public static final int
MAX_AGE
MAX_AGE
field_31093
field_31093
public static final IntProperty
AGE
AGE
field_11092
AGE
public static final BooleanProperty
NORTH
NORTH
field_11096
NORTH
public static final BooleanProperty
EAST
EAST
field_11094
EAST
public static final BooleanProperty
SOUTH
SOUTH
field_11089
SOUTH
public static final BooleanProperty
WEST
WEST
field_11088
WEST
public static final BooleanProperty
UP
UP
field_11093
UP
public static final Map<Direction, BooleanProperty>
PROPERTY_BY_DIRECTION
PROPERTY_BY_DIRECTION
field_11090
DIRECTION_PROPERTIES
private final Function<BlockState, VoxelShape>
shapes
shapes
field_55760
shapeFunction
private static final int
IGNITE_INSTANT
IGNITE_INSTANT
field_31085
field_31085
private static final int
IGNITE_EASY
IGNITE_EASY
field_31086
field_31086
private static final int
IGNITE_MEDIUM
IGNITE_MEDIUM
field_31087
field_31087
private static final int
IGNITE_HARD
IGNITE_HARD
field_31088
field_31088
private static final int
BURN_INSTANT
BURN_INSTANT
field_31089
field_31089
private static final int
BURN_EASY
BURN_EASY
field_31090
field_31090
private static final int
BURN_MEDIUM
BURN_MEDIUM
field_31091
field_31091
private static final int
BURN_HARD
BURN_HARD
field_31092
field_31092
private final it.unimi.dsi.fastutil.objects.Object2IntMap<Block>
igniteOdds
igniteOdds
field_11095
burnChances
private final it.unimi.dsi.fastutil.objects.Object2IntMap<Block>
burnOdds
burnOdds
field_11091
spreadChances

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<FireBlock>
codec()
codec()
method_53969()
getCodec()
private Function<BlockState, VoxelShape>
makeShapes()
makeShapes()
method_66432()
createShapeFunction()
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected BlockState
getStateForPlacement(BlockGetter level, BlockPos pos)
getStateForPlacement(BlockGetter level, BlockPos pos)
method_10198(class_1922 arg0, class_2338 arg1)
getStateForPosition(BlockView world, BlockPos pos)
protected boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
canSurvive(BlockState state, LevelReader level, BlockPos pos)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected boolean
isNearRain(Level level, BlockPos testPos)
isNearRain(Level level, BlockPos testPos)
method_10192(class_1937 arg0, class_2338 arg1)
isRainingAround(World world, BlockPos pos)
private int
getBurnOdds(BlockState state)
getBurnOdds(BlockState state)
method_10190(class_2680 arg0)
getSpreadChance(BlockState state)
private int
getIgniteOdds(BlockState state)
getIgniteOdds(BlockState state)
method_10191(class_2680 arg0)
getBurnChance(BlockState state)
private void
checkBurnOut(Level level, BlockPos pos, int chance, RandomSource random, int age)
checkBurnOut(Level level, BlockPos pos, int chance, RandomSource random, int age)
method_10196(class_1937 arg0, class_2338 arg1, int arg2, class_5819 arg3, int arg4)
trySpreadingFire(World world, BlockPos pos, int spreadFactor, Random random, int currentAge)
private BlockState
getStateWithAge(LevelReader level, BlockPos pos, int age)
getStateWithAge(LevelReader level, BlockPos pos, int age)
method_24855(class_4538 arg0, class_2338 arg1, int arg2)
getStateWithAge(WorldView world, BlockPos pos, int age)
private boolean
isValidFireLocation(BlockGetter level, BlockPos pos)
isValidFireLocation(BlockGetter level, BlockPos pos)
method_10193(class_1922 arg0, class_2338 arg1)
areBlocksAroundFlammable(BlockView world, BlockPos pos)
private int
getIgniteOdds(LevelReader level, BlockPos pos)
getIgniteOdds(LevelReader level, BlockPos pos)
method_10194(class_4538 arg0, class_2338 arg1)
getBurnChance(WorldView world, BlockPos pos)
protected boolean
canBurn(BlockState state)
canBurn(BlockState state)
method_10195(class_2680 arg0)
isFlammable(BlockState arg0)
protected void
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
private static int
getFireTickDelay(RandomSource random)
getFireTickDelay(RandomSource random)
method_26155(class_5819 arg0)
getFireTickDelay(Random random)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
private void
setFlammable(Block block, int igniteOdds, int burnOdds)
setFlammable(Block block, int igniteOdds, int burnOdds)
method_10189(class_2248 arg0, int arg1, int arg2)
registerFlammableBlock(Block block, int burnChance, int spreadChance)
public static void
bootStrap()
bootStrap()
method_10199()
registerDefaultFlammables()