public class FireBlock extends AbstractFireBlock
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static IntProperty |
AGE |
private it.unimi.dsi.fastutil.objects.Object2IntMap<Block> |
burnChances |
private static Map<Direction,BooleanProperty> |
DIRECTION_PROPERTIES |
static BooleanProperty |
EAST |
private static VoxelShape |
field_26653 |
private static VoxelShape |
field_26654 |
private static VoxelShape |
field_26655 |
private static VoxelShape |
field_26656 |
private static VoxelShape |
field_26657 |
private Map<BlockState,VoxelShape> |
field_26658 |
static BooleanProperty |
NORTH |
static BooleanProperty |
SOUTH |
private it.unimi.dsi.fastutil.objects.Object2IntMap<Block> |
spreadChances |
static BooleanProperty |
UP |
static BooleanProperty |
WEST |
BASE_SHAPELOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Constructor and Description |
|---|
FireBlock(AbstractBlock.Settings settings) |
getState, method_30032, onBreak, onEntityCollision, randomDisplayTickaddStacksForDisplay, 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, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotatepublic static final IntProperty AGE
public static final BooleanProperty NORTH
public static final BooleanProperty EAST
public static final BooleanProperty SOUTH
public static final BooleanProperty WEST
public static final BooleanProperty UP
private static final Map<Direction,BooleanProperty> DIRECTION_PROPERTIES
private static final VoxelShape field_26653
private static final VoxelShape field_26654
private static final VoxelShape field_26655
private static final VoxelShape field_26656
private static final VoxelShape field_26657
private final Map<BlockState,VoxelShape> field_26658
private final it.unimi.dsi.fastutil.objects.Object2IntMap<Block> burnChances
private final it.unimi.dsi.fastutil.objects.Object2IntMap<Block> spreadChances
public FireBlock(AbstractBlock.Settings settings)
private static VoxelShape method_31016(BlockState blockState)
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate in class AbstractBlockpublic VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractFireBlockpublic BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class AbstractFireBlockprotected BlockState getStateForPosition(BlockView world, BlockPos pos)
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class AbstractBlockpublic void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
scheduledTick in class AbstractBlockprivate int getSpreadChance(BlockState state)
private int getBurnChance(BlockState state)
private void trySpreadingFire(World world, BlockPos pos, int spreadFactor, Random rand, int currentAge)
private BlockState method_24855(WorldAccess worldAccess, BlockPos blockPos, int int2)
protected boolean isFlammable(BlockState state)
isFlammable in class AbstractFireBlockpublic void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
onBlockAdded in class AbstractFireBlockprivate static int method_26155(Random random)
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockprivate void registerFlammableBlock(Block block, int burnChance, int spreadChance)
public static void registerDefaultFlammables()