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
- Mappings:
Namespace Name official cadintermediary net/minecraft/class_2358named net/minecraft/block/FireBlock
-
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 VoxelShapeEAST_SHAPEstatic BooleanPropertyNORTHprivate static VoxelShapeNORTH_SHAPEprivate Map<BlockState,VoxelShape>shapesByStatestatic BooleanPropertySOUTHprivate static VoxelShapeSOUTH_SHAPEprivate Object2IntMap<Block>spreadChancesstatic BooleanPropertyUPprivate static VoxelShapeUP_SHAPEstatic BooleanPropertyWESTprivate static VoxelShapeWEST_SHAPEFields 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)private static intgetFireTickDelay(Random random)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)BlockStategetPlacementState(ItemPlacementContext ctx)private static VoxelShapegetShapeForState(BlockState state)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)private BlockStategetStateWithAge(WorldAccess world, BlockPos pos, int age)protected booleanisFlammable(BlockState state)protected booleanisRainingAround(World world, BlockPos pos)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
canPlaceAt, getState, onBreak, onEntityCollision, randomDisplayTick, spawnBreakParticlesMethods 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, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
Field Details
-
AGE
- Mappings:
Namespace Name Mixin selector official bLcad;b:Lcjo;intermediary field_11092Lnet/minecraft/class_2358;field_11092:Lnet/minecraft/class_2758;named AGELnet/minecraft/block/FireBlock;AGE:Lnet/minecraft/state/property/IntProperty;
-
NORTH
- Mappings:
Namespace Name Mixin selector official cLcad;c:Lcjf;intermediary field_11096Lnet/minecraft/class_2358;field_11096:Lnet/minecraft/class_2746;named NORTHLnet/minecraft/block/FireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
-
EAST
- Mappings:
Namespace Name Mixin selector official dLcad;d:Lcjf;intermediary field_11094Lnet/minecraft/class_2358;field_11094:Lnet/minecraft/class_2746;named EASTLnet/minecraft/block/FireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
-
SOUTH
- Mappings:
Namespace Name Mixin selector official eLcad;e:Lcjf;intermediary field_11089Lnet/minecraft/class_2358;field_11089:Lnet/minecraft/class_2746;named SOUTHLnet/minecraft/block/FireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
-
WEST
- Mappings:
Namespace Name Mixin selector official fLcad;f:Lcjf;intermediary field_11088Lnet/minecraft/class_2358;field_11088:Lnet/minecraft/class_2746;named WESTLnet/minecraft/block/FireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
-
UP
- Mappings:
Namespace Name Mixin selector official gLcad;g:Lcjf;intermediary field_11093Lnet/minecraft/class_2358;field_11093:Lnet/minecraft/class_2746;named UPLnet/minecraft/block/FireBlock;UP:Lnet/minecraft/state/property/BooleanProperty;
-
DIRECTION_PROPERTIES
- Mappings:
Namespace Name Mixin selector official hLcad;h:Ljava/util/Map;intermediary field_11090Lnet/minecraft/class_2358;field_11090:Ljava/util/Map;named DIRECTION_PROPERTIESLnet/minecraft/block/FireBlock;DIRECTION_PROPERTIES:Ljava/util/Map;
-
UP_SHAPE
- Mappings:
Namespace Name Mixin selector official iLcad;i:Ldlg;intermediary field_26653Lnet/minecraft/class_2358;field_26653:Lnet/minecraft/class_265;named UP_SHAPELnet/minecraft/block/FireBlock;UP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
WEST_SHAPE
- Mappings:
Namespace Name Mixin selector official jLcad;j:Ldlg;intermediary field_26654Lnet/minecraft/class_2358;field_26654:Lnet/minecraft/class_265;named WEST_SHAPELnet/minecraft/block/FireBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EAST_SHAPE
- Mappings:
Namespace Name Mixin selector official kLcad;k:Ldlg;intermediary field_26655Lnet/minecraft/class_2358;field_26655:Lnet/minecraft/class_265;named EAST_SHAPELnet/minecraft/block/FireBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector official oLcad;o:Ldlg;intermediary field_26656Lnet/minecraft/class_2358;field_26656:Lnet/minecraft/class_265;named NORTH_SHAPELnet/minecraft/block/FireBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector official pLcad;p:Ldlg;intermediary field_26657Lnet/minecraft/class_2358;field_26657:Lnet/minecraft/class_265;named SOUTH_SHAPELnet/minecraft/block/FireBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
shapesByState
- Mappings:
Namespace Name Mixin selector official qLcad;q:Ljava/util/Map;intermediary field_26658Lnet/minecraft/class_2358;field_26658:Ljava/util/Map;named shapesByStateLnet/minecraft/block/FireBlock;shapesByState:Ljava/util/Map;
-
burnChances
- Mappings:
Namespace Name Mixin selector official rLcad;r:Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary field_11095Lnet/minecraft/class_2358;field_11095:Lit/unimi/dsi/fastutil/objects/Object2IntMap;named burnChancesLnet/minecraft/block/FireBlock;burnChances:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
spreadChances
- Mappings:
Namespace Name Mixin selector official sLcad;s:Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary field_11091Lnet/minecraft/class_2358;field_11091:Lit/unimi/dsi/fastutil/objects/Object2IntMap;named spreadChancesLnet/minecraft/block/FireBlock;spreadChances:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
Constructor Details
-
FireBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcin;<init>(Lcin$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getShapeForState
- Mappings:
Namespace Name Mixin selector official hLcad;h(Lcio;)Ldlg;intermediary method_31016Lnet/minecraft/class_2358;method_31016(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;named getShapeForStateLnet/minecraft/block/FireBlock;getShapeForState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
-
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
- Mappings:
Namespace Name Mixin selector official aLcin;a(Lcio;Lgc;Lcio;Lbur;Lfx;Lfx;)Lcio;intermediary method_9559Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getStateForNeighborUpdateLnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractFireBlock- Mappings:
Namespace Name Mixin selector official aLcin;a(Lcio;Lbtu;Lfx;Ldks;)Ldlg;intermediary method_9530Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;named getOutlineShapeLnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
getPlacementState
- Overrides:
getPlacementStatein classAbstractFireBlock- Mappings:
Namespace Name Mixin selector official aLbxp;a(Lbqq;)Lcio;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
getStateForPosition
- Mappings:
Namespace Name Mixin selector official bLcad;b(Lbtu;Lfx;)Lcio;intermediary method_10198Lnet/minecraft/class_2358;method_10198(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getStateForPositionLnet/minecraft/block/FireBlock;getStateForPosition(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
canPlaceAt
- Overrides:
canPlaceAtin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcin;a(Lcio;Lbut;Lfx;)Zintermediary method_9558Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Znamed canPlaceAtLnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official a_Lcin;a_(Lcio;Labf;Lfx;Ljava/util/Random;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
isRainingAround
- Mappings:
Namespace Name Mixin selector official aLcad;a(Lbuq;Lfx;)Zintermediary method_10192Lnet/minecraft/class_2358;method_10192(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Znamed isRainingAroundLnet/minecraft/block/FireBlock;isRainingAround(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
getSpreadChance
- Mappings:
Namespace Name Mixin selector official mLcad;m(Lcio;)Iintermediary method_10190Lnet/minecraft/class_2358;method_10190(Lnet/minecraft/class_2680;)Inamed getSpreadChanceLnet/minecraft/block/FireBlock;getSpreadChance(Lnet/minecraft/block/BlockState;)I
-
getBurnChance
- Mappings:
Namespace Name Mixin selector official nLcad;n(Lcio;)Iintermediary method_10191Lnet/minecraft/class_2358;method_10191(Lnet/minecraft/class_2680;)Inamed getBurnChanceLnet/minecraft/block/FireBlock;getBurnChance(Lnet/minecraft/block/BlockState;)I
-
trySpreadingFire
private void trySpreadingFire(World world, BlockPos pos, int spreadFactor, Random rand, int currentAge)- Mappings:
Namespace Name Mixin selector official aLcad;a(Lbuq;Lfx;ILjava/util/Random;I)Vintermediary method_10196Lnet/minecraft/class_2358;method_10196(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;ILjava/util/Random;I)Vnamed trySpreadingFireLnet/minecraft/block/FireBlock;trySpreadingFire(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ILjava/util/Random;I)V
-
getStateWithAge
- Mappings:
Namespace Name Mixin selector official aLcad;a(Lbur;Lfx;I)Lcio;intermediary method_24855Lnet/minecraft/class_2358;method_24855(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_2680;named getStateWithAgeLnet/minecraft/block/FireBlock;getStateWithAge(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/block/BlockState;
-
areBlocksAroundFlammable
- Mappings:
Namespace Name Mixin selector official dLcad;d(Lbtu;Lfx;)Zintermediary method_10193Lnet/minecraft/class_2358;method_10193(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Znamed areBlocksAroundFlammableLnet/minecraft/block/FireBlock;areBlocksAroundFlammable(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
getBurnChance
- Mappings:
Namespace Name Mixin selector official aLcad;a(Lbut;Lfx;)Iintermediary method_10194Lnet/minecraft/class_2358;method_10194(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Inamed getBurnChanceLnet/minecraft/block/FireBlock;getBurnChance(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)I
-
isFlammable
- Specified by:
isFlammablein classAbstractFireBlock- Mappings:
Namespace Name Mixin selector official fLbxd;f(Lcio;)Zintermediary method_10195Lnet/minecraft/class_4770;method_10195(Lnet/minecraft/class_2680;)Znamed isFlammableLnet/minecraft/block/AbstractFireBlock;isFlammable(Lnet/minecraft/block/BlockState;)Z
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)- Overrides:
onBlockAddedin classAbstractFireBlock- Mappings:
Namespace Name Mixin selector official bLcin;b(Lcio;Lbuq;Lfx;Lcio;Z)Vintermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onBlockAddedLnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
getFireTickDelay
- Mappings:
Namespace Name Mixin selector official aLcad;a(Ljava/util/Random;)Iintermediary method_26155Lnet/minecraft/class_2358;method_26155(Ljava/util/Random;)Inamed getFireTickDelayLnet/minecraft/block/FireBlock;getFireTickDelay(Ljava/util/Random;)I
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLbxp;a(Lcip$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
registerFlammableBlock
- Mappings:
Namespace Name Mixin selector official aLcad;a(Lbxp;II)Vintermediary method_10189Lnet/minecraft/class_2358;method_10189(Lnet/minecraft/class_2248;II)Vnamed registerFlammableBlockLnet/minecraft/block/FireBlock;registerFlammableBlock(Lnet/minecraft/block/Block;II)V
-
registerDefaultFlammables
public static void registerDefaultFlammables()- Mappings:
Namespace Name Mixin selector official cLcad;c()Vintermediary method_10199Lnet/minecraft/class_2358;method_10199()Vnamed registerDefaultFlammablesLnet/minecraft/block/FireBlock;registerDefaultFlammables()V
-