public class FireBlock extends AbstractFireBlock
Block.NeighborGroup
AbstractBlock.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_SHAPE
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Constructor and Description |
---|
FireBlock(AbstractBlock.Settings settings) |
getState, method_30032, onBreak, onEntityCollision, randomDisplayTick
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, toString
calcBlockBreakingDelta, 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, rotate
public 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 AbstractBlock
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape
in class AbstractFireBlock
public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState
in class AbstractFireBlock
protected BlockState getStateForPosition(BlockView world, BlockPos pos)
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt
in class AbstractBlock
public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
scheduledTick
in class AbstractBlock
private 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 AbstractFireBlock
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
onBlockAdded
in class AbstractFireBlock
private static int method_26155(Random random)
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties
in class Block
private void registerFlammableBlock(Block block, int burnChance, int spreadChance)
public static void registerDefaultFlammables()