Class FireBlock
- All Implemented Interfaces:
ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/FireBlockintermediary net/minecraft/class_2358official diy
-
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.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntPropertyprivate final Object2IntMap<Block> static final com.mojang.serialization.MapCodec<FireBlock> private static final Map<Direction, BooleanProperty> static final BooleanPropertyprivate static final VoxelShapeprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intstatic final intstatic final BooleanPropertyprivate static final VoxelShapeprivate final Map<BlockState, VoxelShape> static final BooleanPropertyprivate static final VoxelShapeprivate final Object2IntMap<Block> static final BooleanPropertyprivate static final VoxelShapestatic final BooleanPropertyprivate static final VoxelShapeFields inherited from class net.minecraft.block.AbstractFireBlock
BASE_SHAPE, BASE_SOUND_VOLUMEFields inherited from class net.minecraft.block.Block
field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.private booleanareBlocksAroundFlammable(BlockView world, BlockPos pos) protected booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos.private intgetBurnChance(BlockState state) private intgetBurnChance(WorldView world, BlockPos pos) com.mojang.serialization.MapCodec<FireBlock> getCodec()private static intgetFireTickDelay(Random random) protected VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private static VoxelShapegetShapeForState(BlockState state) private intgetSpreadChance(BlockState state) protected BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockStategetStateForPosition(BlockView world, BlockPos pos) private BlockStategetStateWithAge(WorldAccess world, BlockPos pos, int age) protected booleanisFlammable(BlockState state) protected booleanisRainingAround(World world, BlockPos pos) protected voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.static voidvoidregisterFlammableBlock(Block block, int burnChance, int spreadChance) protected voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.private voidtrySpreadingFire(World world, BlockPos pos, int spreadFactor, Random random, int currentAge) Methods inherited from class net.minecraft.block.AbstractFireBlock
canPlaceAt, getState, onBreak, onEntityCollision, randomDisplayTick, spawnBreakParticlesMethods inherited from class net.minecraft.block.Block
afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, 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, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockBreakStart, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, rotateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/FireBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46352Lnet/minecraft/class_2358;field_46352:Lcom/mojang/serialization/MapCodec;official cLdiy;c:Lcom/mojang/serialization/MapCodec;
-
field_31093
public static final int field_31093- See Also:
- Mappings:
Namespace Name Mixin selector named field_31093Lnet/minecraft/block/FireBlock;field_31093:Iintermediary field_31093Lnet/minecraft/class_2358;field_31093:Iofficial dLdiy;d:I
-
AGE
- Mappings:
Namespace Name Mixin selector named AGELnet/minecraft/block/FireBlock;AGE:Lnet/minecraft/state/property/IntProperty;intermediary field_11092Lnet/minecraft/class_2358;field_11092:Lnet/minecraft/class_2758;official eLdiy;e:Lduc;
-
NORTH
- Mappings:
Namespace Name Mixin selector named NORTHLnet/minecraft/block/FireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;intermediary field_11096Lnet/minecraft/class_2358;field_11096:Lnet/minecraft/class_2746;official fLdiy;f:Ldtt;
-
EAST
- Mappings:
Namespace Name Mixin selector named EASTLnet/minecraft/block/FireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;intermediary field_11094Lnet/minecraft/class_2358;field_11094:Lnet/minecraft/class_2746;official gLdiy;g:Ldtt;
-
SOUTH
- Mappings:
Namespace Name Mixin selector named SOUTHLnet/minecraft/block/FireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;intermediary field_11089Lnet/minecraft/class_2358;field_11089:Lnet/minecraft/class_2746;official hLdiy;h:Ldtt;
-
WEST
- Mappings:
Namespace Name Mixin selector named WESTLnet/minecraft/block/FireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;intermediary field_11088Lnet/minecraft/class_2358;field_11088:Lnet/minecraft/class_2746;official iLdiy;i:Ldtt;
-
UP
- Mappings:
Namespace Name Mixin selector named UPLnet/minecraft/block/FireBlock;UP:Lnet/minecraft/state/property/BooleanProperty;intermediary field_11093Lnet/minecraft/class_2358;field_11093:Lnet/minecraft/class_2746;official jLdiy;j:Ldtt;
-
DIRECTION_PROPERTIES
- Mappings:
Namespace Name Mixin selector named DIRECTION_PROPERTIESLnet/minecraft/block/FireBlock;DIRECTION_PROPERTIES:Ljava/util/Map;intermediary field_11090Lnet/minecraft/class_2358;field_11090:Ljava/util/Map;official kLdiy;k:Ljava/util/Map;
-
UP_SHAPE
- Mappings:
Namespace Name Mixin selector named UP_SHAPELnet/minecraft/block/FireBlock;UP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_26653Lnet/minecraft/class_2358;field_26653:Lnet/minecraft/class_265;official lLdiy;l:Lexv;
-
WEST_SHAPE
- Mappings:
Namespace Name Mixin selector named WEST_SHAPELnet/minecraft/block/FireBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_26654Lnet/minecraft/class_2358;field_26654:Lnet/minecraft/class_265;official mLdiy;m:Lexv;
-
EAST_SHAPE
- Mappings:
Namespace Name Mixin selector named EAST_SHAPELnet/minecraft/block/FireBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_26655Lnet/minecraft/class_2358;field_26655:Lnet/minecraft/class_265;official nLdiy;n:Lexv;
-
NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector named NORTH_SHAPELnet/minecraft/block/FireBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_26656Lnet/minecraft/class_2358;field_26656:Lnet/minecraft/class_265;official oLdiy;o:Lexv;
-
SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector named SOUTH_SHAPELnet/minecraft/block/FireBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_26657Lnet/minecraft/class_2358;field_26657:Lnet/minecraft/class_265;official FLdiy;F:Lexv;
-
field_31085
private static final int field_31085- See Also:
- Mappings:
Namespace Name Mixin selector named field_31085Lnet/minecraft/block/FireBlock;field_31085:Iintermediary field_31085Lnet/minecraft/class_2358;field_31085:Iofficial HLdiy;H:I
-
field_31086
private static final int field_31086- See Also:
- Mappings:
Namespace Name Mixin selector named field_31086Lnet/minecraft/block/FireBlock;field_31086:Iintermediary field_31086Lnet/minecraft/class_2358;field_31086:Iofficial ILdiy;I:I
-
field_31087
private static final int field_31087- See Also:
- Mappings:
Namespace Name Mixin selector named field_31087Lnet/minecraft/block/FireBlock;field_31087:Iintermediary field_31087Lnet/minecraft/class_2358;field_31087:Iofficial JLdiy;J:I
-
field_31088
private static final int field_31088- See Also:
- Mappings:
Namespace Name Mixin selector named field_31088Lnet/minecraft/block/FireBlock;field_31088:Iintermediary field_31088Lnet/minecraft/class_2358;field_31088:Iofficial KLdiy;K:I
-
field_31089
private static final int field_31089- See Also:
- Mappings:
Namespace Name Mixin selector named field_31089Lnet/minecraft/block/FireBlock;field_31089:Iintermediary field_31089Lnet/minecraft/class_2358;field_31089:Iofficial LLdiy;L:I
-
field_31090
private static final int field_31090- See Also:
- Mappings:
Namespace Name Mixin selector named field_31090Lnet/minecraft/block/FireBlock;field_31090:Iintermediary field_31090Lnet/minecraft/class_2358;field_31090:Iofficial MLdiy;M:I
-
field_31091
private static final int field_31091- See Also:
- Mappings:
Namespace Name Mixin selector named field_31091Lnet/minecraft/block/FireBlock;field_31091:Iintermediary field_31091Lnet/minecraft/class_2358;field_31091:Iofficial NLdiy;N:I
-
field_31092
private static final int field_31092- See Also:
- Mappings:
Namespace Name Mixin selector named field_31092Lnet/minecraft/block/FireBlock;field_31092:Iintermediary field_31092Lnet/minecraft/class_2358;field_31092:Iofficial OLdiy;O:I
-
shapesByState
- Mappings:
Namespace Name Mixin selector named shapesByStateLnet/minecraft/block/FireBlock;shapesByState:Ljava/util/Map;intermediary field_26658Lnet/minecraft/class_2358;field_26658:Ljava/util/Map;official GLdiy;G:Ljava/util/Map;
-
burnChances
- Mappings:
Namespace Name Mixin selector named burnChancesLnet/minecraft/block/FireBlock;burnChances:Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary field_11095Lnet/minecraft/class_2358;field_11095:Lit/unimi/dsi/fastutil/objects/Object2IntMap;official PLdiy;P:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
spreadChances
- Mappings:
Namespace Name Mixin selector named spreadChancesLnet/minecraft/block/FireBlock;spreadChances:Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary field_11091Lnet/minecraft/class_2358;field_11091:Lit/unimi/dsi/fastutil/objects/Object2IntMap;official QLdiy;Q:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
Constructor Details
-
FireBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldtb;<init>(Ldtb$d;)V
-
-
Method Details
-
getCodec
- Specified by:
getCodecin classAbstractFireBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLdtb;a()Lcom/mojang/serialization/MapCodec;
-
getShapeForState
- Mappings:
Namespace Name Mixin selector named getShapeForStateLnet/minecraft/block/FireBlock;getShapeForState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_31016Lnet/minecraft/class_2358;method_31016(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;official mLdiy;m(Ldtc;)Lexv;
-
getStateForNeighborUpdate
protected BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.Returning
Blocks.AIRbreaks the block. This is useful to implement supporting block requirement for blocks (if used along withcanPlaceAt(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.util.math.BlockPos)).Side effects like activating a redstone component (but not scheduling a tick) should be performed in
AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean)instead. If the block supports waterlogging and currently has water, this method should be overridden to tick the fluid at the block's position.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
World.isClient. This is not called ifBlock.FORCE_STATEflag is set in thesetBlockStatecall.This method can be used for multiple purposes. Here are some examples:
FenceBlockuses it to update the fence's connection when a horizontally neighboring block's state is changed.PlantBlockuses it to break the plant if the state change causes it to lose its supporting block.DoorBlockuses it to copy the state of the other half of the door.SlabBlockuses it to schedule the fluid to tick if waterlogged.SoulSandBlockuses it to schedule the water block above to tick so that it becomes a bubble column.FallingBlockuses it to schedule the block to tick so that it can fall if needed.
- 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 state of the block after a neighboring block's state change
- See Also:
- Mappings:
Namespace Name Mixin selector 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;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;official aLdtb;a(Ldtc;Lji;Ldtc;Ldcx;Ljd;Ljd;)Ldtc;
-
getOutlineShape
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractFireBlock- See Also:
- Mappings:
Namespace Name Mixin selector 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;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;official aLdtb;a(Ldtc;Ldcc;Ljd;Lexh;)Lexv;
-
getPlacementState
- Overrides:
getPlacementStatein classAbstractFireBlock- Mappings:
Namespace Name Mixin selector named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;official aLdfy;a(Lcyd;)Ldtc;
-
getStateForPosition
- Mappings:
Namespace Name Mixin selector named getStateForPositionLnet/minecraft/block/FireBlock;getStateForPosition(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_10198Lnet/minecraft/class_2358;method_10198(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official bLdiy;b(Ldcc;Ljd;)Ldtc;
-
canPlaceAt
Returns whether the block can be placed atpos.Blocks with supporting block requirements should override this method. Note that this should also be checked manually during
getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos)in order to break the block that lost its supporting block.This is only checked during the use of block items or by endermen, falling blocks, etc that can place blocks. This does not affect block state changes performed through
World.setBlockState(BlockPos, BlockState)call.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
World.isClient.- Overrides:
canPlaceAtin classAbstractBlock- Returns:
- whether the block can be placed at
pos - See Also:
- Mappings:
Namespace Name Mixin selector named canPlaceAtLnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_9558Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Zofficial aLdtb;a(Ldtc;Ldcz;Ljd;)Z
-
scheduledTick
Called server-side when a block receives a scheduled tick. This can be used like a timer. Scheduled ticks are added usingWorldAccess.scheduleBlockTick(BlockPos, Block, int).Scheduled ticks are often used inside
getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos).Here are some examples:
SugarCaneBlockchecks the placement requirement.DispenserBlockdispenses its content.CommandBlockexecutes its command.FrogspawnBlockspawns a tadpole.SoulSandBlockupdates a bubble column.FallingBlocktries to fall.
- Overrides:
scheduledTickin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial aLdtb;a(Ldtc;Laqu;Ljd;Layw;)V
-
isRainingAround
- Mappings:
Namespace Name Mixin selector named isRainingAroundLnet/minecraft/block/FireBlock;isRainingAround(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_10192Lnet/minecraft/class_2358;method_10192(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Zofficial aLdiy;a(Ldcw;Ljd;)Z
-
getSpreadChance
- Mappings:
Namespace Name Mixin selector named getSpreadChanceLnet/minecraft/block/FireBlock;getSpreadChance(Lnet/minecraft/block/BlockState;)Iintermediary method_10190Lnet/minecraft/class_2358;method_10190(Lnet/minecraft/class_2680;)Iofficial nLdiy;n(Ldtc;)I
-
getBurnChance
- Mappings:
Namespace Name Mixin selector named getBurnChanceLnet/minecraft/block/FireBlock;getBurnChance(Lnet/minecraft/block/BlockState;)Iintermediary method_10191Lnet/minecraft/class_2358;method_10191(Lnet/minecraft/class_2680;)Iofficial oLdiy;o(Ldtc;)I
-
trySpreadingFire
private void trySpreadingFire(World world, BlockPos pos, int spreadFactor, Random random, int currentAge) - Mappings:
Namespace Name Mixin selector named trySpreadingFireLnet/minecraft/block/FireBlock;trySpreadingFire(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/util/math/random/Random;I)Vintermediary method_10196Lnet/minecraft/class_2358;method_10196(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;ILnet/minecraft/class_5819;I)Vofficial aLdiy;a(Ldcw;Ljd;ILayw;I)V
-
getStateWithAge
- Mappings:
Namespace Name Mixin selector named getStateWithAgeLnet/minecraft/block/FireBlock;getStateWithAge(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/block/BlockState;intermediary method_24855Lnet/minecraft/class_2358;method_24855(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_2680;official aLdiy;a(Ldcx;Ljd;I)Ldtc;
-
areBlocksAroundFlammable
- Mappings:
Namespace Name Mixin selector named areBlocksAroundFlammableLnet/minecraft/block/FireBlock;areBlocksAroundFlammable(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_10193Lnet/minecraft/class_2358;method_10193(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Zofficial dLdiy;d(Ldcc;Ljd;)Z
-
getBurnChance
- Mappings:
Namespace Name Mixin selector named getBurnChanceLnet/minecraft/block/FireBlock;getBurnChance(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Iintermediary method_10194Lnet/minecraft/class_2358;method_10194(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Iofficial aLdiy;a(Ldcz;Ljd;)I
-
isFlammable
- Specified by:
isFlammablein classAbstractFireBlock- Mappings:
Namespace Name Mixin selector named isFlammableLnet/minecraft/block/AbstractFireBlock;isFlammable(Lnet/minecraft/block/BlockState;)Zintermediary method_10195Lnet/minecraft/class_4770;method_10195(Lnet/minecraft/class_2680;)Zofficial fLdfl;f(Ldtc;)Z
-
onBlockAdded
protected void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed. This includes block placement. When overriding this method,getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos)orAbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean)should also be overridden. The method is used in the following cases:- When activating a redstone component on placement (used along with
AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean) - When resetting a position-dependent state (see
TargetBlock) - When converting a block on placement (see
WetSpongeBlock) - When fire lights a portal
- Overrides:
onBlockAddedin classAbstractFireBlock- See Also:
- Mappings:
Namespace Name Mixin selector named onBlockAddedLnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;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)Vofficial bLdtb;b(Ldtc;Ldcw;Ljd;Ldtc;Z)V
- When activating a redstone component on placement (used along with
-
getFireTickDelay
- Mappings:
Namespace Name Mixin selector named getFireTickDelayLnet/minecraft/block/FireBlock;getFireTickDelay(Lnet/minecraft/util/math/random/Random;)Iintermediary method_26155Lnet/minecraft/class_2358;method_26155(Lnet/minecraft/class_5819;)Iofficial aLdiy;a(Layw;)I
-
appendProperties
Appends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector named appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vofficial aLdfy;a(Ldtd$a;)V
-
registerFlammableBlock
- Mappings:
Namespace Name Mixin selector named registerFlammableBlockLnet/minecraft/block/FireBlock;registerFlammableBlock(Lnet/minecraft/block/Block;II)Vintermediary method_10189Lnet/minecraft/class_2358;method_10189(Lnet/minecraft/class_2248;II)Vofficial aLdiy;a(Ldfy;II)V
-
registerDefaultFlammables
public static void registerDefaultFlammables()- Mappings:
Namespace Name Mixin selector named registerDefaultFlammablesLnet/minecraft/block/FireBlock;registerDefaultFlammables()Vintermediary method_10199Lnet/minecraft/class_2358;method_10199()Vofficial bLdiy;b()V
-