Class FireBlock
- All Implemented Interfaces:
ItemConvertible
,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/FireBlock
intermediary net/minecraft/class_2358
official dnm
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IntProperty
private final Object2IntMap
<Block> static final com.mojang.serialization.MapCodec
<FireBlock> private static final Map
<Direction, BooleanProperty> static final BooleanProperty
private static final VoxelShape
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
static final int
static final BooleanProperty
private static final VoxelShape
private final Map
<BlockState, VoxelShape> static final BooleanProperty
private static final VoxelShape
private final Object2IntMap
<Block> static final BooleanProperty
private static final VoxelShape
static final BooleanProperty
private static final VoxelShape
Fields inherited from class net.minecraft.block.AbstractFireBlock
BASE_SHAPE, BASE_SOUND_VOLUME
Fields 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, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.private boolean
areBlocksAroundFlammable
(BlockView world, BlockPos pos) protected boolean
canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.private int
getBurnChance
(BlockState state) private int
getBurnChance
(WorldView world, BlockPos pos) com.mojang.serialization.MapCodec
<FireBlock> getCodec()
private static int
getFireTickDelay
(Random random) protected VoxelShape
getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private static VoxelShape
getShapeForState
(BlockState state) private int
getSpreadChance
(BlockState state) protected BlockState
getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
getStateForPosition
(BlockView world, BlockPos pos) private BlockState
getStateWithAge
(WorldView world, BlockPos pos, int age) protected boolean
isFlammable
(BlockState state) protected boolean
isRainingAround
(World world, BlockPos pos) 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.static void
void
registerFlammableBlock
(Block block, int burnChance, int spreadChance) protected void
scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.private void
trySpreadingFire
(World world, BlockPos pos, int spreadFactor, Random random, int currentAge) Methods inherited from class net.minecraft.block.AbstractFireBlock
canPlaceAt, getState, onBreak, onEntityCollision, randomDisplayTick, spawnBreakParticles
Methods 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, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockBreakStart, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, rotate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/FireBlock;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46352
Lnet/minecraft/class_2358;field_46352:Lcom/mojang/serialization/MapCodec;
official c
Ldnm;c:Lcom/mojang/serialization/MapCodec;
-
field_31093
public static final int field_31093- See Also:
- Mappings:
Namespace Name Mixin selector named field_31093
Lnet/minecraft/block/FireBlock;field_31093:I
intermediary field_31093
Lnet/minecraft/class_2358;field_31093:I
official d
Ldnm;d:I
-
AGE
- Mappings:
Namespace Name Mixin selector named AGE
Lnet/minecraft/block/FireBlock;AGE:Lnet/minecraft/state/property/IntProperty;
intermediary field_11092
Lnet/minecraft/class_2358;field_11092:Lnet/minecraft/class_2758;
official e
Ldnm;e:Ldyt;
-
NORTH
- Mappings:
Namespace Name Mixin selector named NORTH
Lnet/minecraft/block/FireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
intermediary field_11096
Lnet/minecraft/class_2358;field_11096:Lnet/minecraft/class_2746;
official f
Ldnm;f:Ldyl;
-
EAST
- Mappings:
Namespace Name Mixin selector named EAST
Lnet/minecraft/block/FireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
intermediary field_11094
Lnet/minecraft/class_2358;field_11094:Lnet/minecraft/class_2746;
official g
Ldnm;g:Ldyl;
-
SOUTH
- Mappings:
Namespace Name Mixin selector named SOUTH
Lnet/minecraft/block/FireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
intermediary field_11089
Lnet/minecraft/class_2358;field_11089:Lnet/minecraft/class_2746;
official h
Ldnm;h:Ldyl;
-
WEST
- Mappings:
Namespace Name Mixin selector named WEST
Lnet/minecraft/block/FireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
intermediary field_11088
Lnet/minecraft/class_2358;field_11088:Lnet/minecraft/class_2746;
official i
Ldnm;i:Ldyl;
-
UP
- Mappings:
Namespace Name Mixin selector named UP
Lnet/minecraft/block/FireBlock;UP:Lnet/minecraft/state/property/BooleanProperty;
intermediary field_11093
Lnet/minecraft/class_2358;field_11093:Lnet/minecraft/class_2746;
official j
Ldnm;j:Ldyl;
-
DIRECTION_PROPERTIES
- Mappings:
Namespace Name Mixin selector named DIRECTION_PROPERTIES
Lnet/minecraft/block/FireBlock;DIRECTION_PROPERTIES:Ljava/util/Map;
intermediary field_11090
Lnet/minecraft/class_2358;field_11090:Ljava/util/Map;
official k
Ldnm;k:Ljava/util/Map;
-
UP_SHAPE
- Mappings:
Namespace Name Mixin selector named UP_SHAPE
Lnet/minecraft/block/FireBlock;UP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_26653
Lnet/minecraft/class_2358;field_26653:Lnet/minecraft/class_265;
official l
Ldnm;l:Lfcr;
-
WEST_SHAPE
- Mappings:
Namespace Name Mixin selector named WEST_SHAPE
Lnet/minecraft/block/FireBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_26654
Lnet/minecraft/class_2358;field_26654:Lnet/minecraft/class_265;
official m
Ldnm;m:Lfcr;
-
EAST_SHAPE
- Mappings:
Namespace Name Mixin selector named EAST_SHAPE
Lnet/minecraft/block/FireBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_26655
Lnet/minecraft/class_2358;field_26655:Lnet/minecraft/class_265;
official n
Ldnm;n:Lfcr;
-
NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector named NORTH_SHAPE
Lnet/minecraft/block/FireBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_26656
Lnet/minecraft/class_2358;field_26656:Lnet/minecraft/class_265;
official o
Ldnm;o:Lfcr;
-
SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector named SOUTH_SHAPE
Lnet/minecraft/block/FireBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_26657
Lnet/minecraft/class_2358;field_26657:Lnet/minecraft/class_265;
official G
Ldnm;G:Lfcr;
-
field_31085
private static final int field_31085- See Also:
- Mappings:
Namespace Name Mixin selector named field_31085
Lnet/minecraft/block/FireBlock;field_31085:I
intermediary field_31085
Lnet/minecraft/class_2358;field_31085:I
official I
Ldnm;I:I
-
field_31086
private static final int field_31086- See Also:
- Mappings:
Namespace Name Mixin selector named field_31086
Lnet/minecraft/block/FireBlock;field_31086:I
intermediary field_31086
Lnet/minecraft/class_2358;field_31086:I
official J
Ldnm;J:I
-
field_31087
private static final int field_31087- See Also:
- Mappings:
Namespace Name Mixin selector named field_31087
Lnet/minecraft/block/FireBlock;field_31087:I
intermediary field_31087
Lnet/minecraft/class_2358;field_31087:I
official K
Ldnm;K:I
-
field_31088
private static final int field_31088- See Also:
- Mappings:
Namespace Name Mixin selector named field_31088
Lnet/minecraft/block/FireBlock;field_31088:I
intermediary field_31088
Lnet/minecraft/class_2358;field_31088:I
official L
Ldnm;L:I
-
field_31089
private static final int field_31089- See Also:
- Mappings:
Namespace Name Mixin selector named field_31089
Lnet/minecraft/block/FireBlock;field_31089:I
intermediary field_31089
Lnet/minecraft/class_2358;field_31089:I
official M
Ldnm;M:I
-
field_31090
private static final int field_31090- See Also:
- Mappings:
Namespace Name Mixin selector named field_31090
Lnet/minecraft/block/FireBlock;field_31090:I
intermediary field_31090
Lnet/minecraft/class_2358;field_31090:I
official N
Ldnm;N:I
-
field_31091
private static final int field_31091- See Also:
- Mappings:
Namespace Name Mixin selector named field_31091
Lnet/minecraft/block/FireBlock;field_31091:I
intermediary field_31091
Lnet/minecraft/class_2358;field_31091:I
official O
Ldnm;O:I
-
field_31092
private static final int field_31092- See Also:
- Mappings:
Namespace Name Mixin selector named field_31092
Lnet/minecraft/block/FireBlock;field_31092:I
intermediary field_31092
Lnet/minecraft/class_2358;field_31092:I
official P
Ldnm;P:I
-
shapesByState
- Mappings:
Namespace Name Mixin selector named shapesByState
Lnet/minecraft/block/FireBlock;shapesByState:Ljava/util/Map;
intermediary field_26658
Lnet/minecraft/class_2358;field_26658:Ljava/util/Map;
official H
Ldnm;H:Ljava/util/Map;
-
burnChances
- Mappings:
Namespace Name Mixin selector named burnChances
Lnet/minecraft/block/FireBlock;burnChances:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_11095
Lnet/minecraft/class_2358;field_11095:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
official Q
Ldnm;Q:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
spreadChances
- Mappings:
Namespace Name Mixin selector named spreadChances
Lnet/minecraft/block/FireBlock;spreadChances:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_11091
Lnet/minecraft/class_2358;field_11091:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
official R
Ldnm;R: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;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
official <init>
Ldxt;<init>(Ldxt$d;)V
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in classAbstractFireBlock
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_53969
Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
official a
Ldxt;a()Lcom/mojang/serialization/MapCodec;
-
getShapeForState
- Mappings:
Namespace Name Mixin selector named getShapeForState
Lnet/minecraft/block/FireBlock;getShapeForState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_31016
Lnet/minecraft/class_2358;method_31016(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;
official o
Ldnm;o(Ldxu;)Lfcr;
-
getStateForNeighborUpdate
protected BlockState getStateForNeighborUpdate(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.Returning
Blocks.AIR
breaks 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.world.block.WireOrientation, 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_STATE
flag is set in thesetBlockState
call.This method can be used for multiple purposes. Here are some examples:
FenceBlock
uses it to update the fence's connection when a horizontally neighboring block's state is changed.PlantBlock
uses it to break the plant if the state change causes it to lose its supporting block.DoorBlock
uses it to copy the state of the other half of the door.SlabBlock
uses it to schedule the fluid to tick if waterlogged.SoulSandBlock
uses it to schedule the water block above to tick so that it becomes a bubble column.FallingBlock
uses it to schedule the block to tick so that it can fall if needed.
- Overrides:
getStateForNeighborUpdate
in classAbstractBlock
- Parameters:
state
- the state of this blockworld
- the worldpos
- the position of this blockdirection
- the direction from this block to the neighborneighborPos
- the position of the neighbor blockneighborState
- the state of the updated neighbor block- Returns:
- the state of the block after a neighboring block's state change
- See Also:
- Mappings:
Namespace Name Mixin selector named getStateForNeighborUpdate
Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/world/tick/ScheduledTickView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/block/BlockState;
intermediary method_9559
Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_10225;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_5819;)Lnet/minecraft/class_2680;
official a
Ldxt;a(Ldxu;Ldhk;Ldhw;Ljh;Ljm;Ljh;Ldxu;Lbam;)Ldxu;
-
getOutlineShape
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShape
in classAbstractFireBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named getOutlineShape
Lnet/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_9530
Lnet/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 a
Ldxt;a(Ldxu;Ldgm;Ljh;Lfcc;)Lfcr;
-
getPlacementState
- Overrides:
getPlacementState
in classAbstractFireBlock
- Mappings:
Namespace Name Mixin selector named getPlacementState
Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
intermediary method_9605
Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
official a
Ldkl;a(Ldbf;)Ldxu;
-
getStateForPosition
- Mappings:
Namespace Name Mixin selector named getStateForPosition
Lnet/minecraft/block/FireBlock;getStateForPosition(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
intermediary method_10198
Lnet/minecraft/class_2358;method_10198(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
official b
Ldnm;b(Ldgm;Ljh;)Ldxu;
-
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.world.WorldView, net.minecraft.world.tick.ScheduledTickView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.util.math.random.Random)
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:
canPlaceAt
in classAbstractBlock
- Returns:
- whether the block can be placed at
pos
- See Also:
- Mappings:
Namespace Name Mixin selector named canPlaceAt
Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_9558
Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
official a
Ldxt;a(Ldxu;Ldhk;Ljh;)Z
-
scheduledTick
Called server-side when a block receives a scheduled tick. This can be used like a timer. Scheduled ticks are added usingScheduledTickView.scheduleBlockTick(BlockPos, Block, int)
.Scheduled ticks are often used inside
getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.world.tick.ScheduledTickView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.util.math.random.Random)
.Here are some examples:
SugarCaneBlock
checks the placement requirement.DispenserBlock
dispenses its content.CommandBlock
executes its command.FrogspawnBlock
spawns a tadpole.SoulSandBlock
updates a bubble column.FallingBlock
tries to fall.
- Overrides:
scheduledTick
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named scheduledTick
Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
intermediary method_9588
Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
official a
Ldxt;a(Ldxu;Lash;Ljh;Lbam;)V
-
isRainingAround
- Mappings:
Namespace Name Mixin selector named isRainingAround
Lnet/minecraft/block/FireBlock;isRainingAround(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_10192
Lnet/minecraft/class_2358;method_10192(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z
official a
Ldnm;a(Ldhh;Ljh;)Z
-
getSpreadChance
- Mappings:
Namespace Name Mixin selector named getSpreadChance
Lnet/minecraft/block/FireBlock;getSpreadChance(Lnet/minecraft/block/BlockState;)I
intermediary method_10190
Lnet/minecraft/class_2358;method_10190(Lnet/minecraft/class_2680;)I
official q
Ldnm;q(Ldxu;)I
-
getBurnChance
- Mappings:
Namespace Name Mixin selector named getBurnChance
Lnet/minecraft/block/FireBlock;getBurnChance(Lnet/minecraft/block/BlockState;)I
intermediary method_10191
Lnet/minecraft/class_2358;method_10191(Lnet/minecraft/class_2680;)I
official r
Ldnm;r(Ldxu;)I
-
trySpreadingFire
private void trySpreadingFire(World world, BlockPos pos, int spreadFactor, Random random, int currentAge) - Mappings:
Namespace Name Mixin selector named trySpreadingFire
Lnet/minecraft/block/FireBlock;trySpreadingFire(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/util/math/random/Random;I)V
intermediary method_10196
Lnet/minecraft/class_2358;method_10196(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;ILnet/minecraft/class_5819;I)V
official a
Ldnm;a(Ldhh;Ljh;ILbam;I)V
-
getStateWithAge
- Mappings:
Namespace Name Mixin selector named getStateWithAge
Lnet/minecraft/block/FireBlock;getStateWithAge(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/block/BlockState;
intermediary method_24855
Lnet/minecraft/class_2358;method_24855(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_2680;
official a
Ldnm;a(Ldhk;Ljh;I)Ldxu;
-
areBlocksAroundFlammable
- Mappings:
Namespace Name Mixin selector named areBlocksAroundFlammable
Lnet/minecraft/block/FireBlock;areBlocksAroundFlammable(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_10193
Lnet/minecraft/class_2358;method_10193(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
official d
Ldnm;d(Ldgm;Ljh;)Z
-
getBurnChance
- Mappings:
Namespace Name Mixin selector named getBurnChance
Lnet/minecraft/block/FireBlock;getBurnChance(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)I
intermediary method_10194
Lnet/minecraft/class_2358;method_10194(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)I
official a
Ldnm;a(Ldhk;Ljh;)I
-
isFlammable
- Specified by:
isFlammable
in classAbstractFireBlock
- Mappings:
Namespace Name Mixin selector named isFlammable
Lnet/minecraft/block/AbstractFireBlock;isFlammable(Lnet/minecraft/block/BlockState;)Z
intermediary method_10195
Lnet/minecraft/class_4770;method_10195(Lnet/minecraft/class_2680;)Z
official g
Ldjy;g(Ldxu;)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.world.WorldView, net.minecraft.world.tick.ScheduledTickView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.util.math.random.Random)
orAbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.world.block.WireOrientation, 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.world.block.WireOrientation, boolean)
- When resetting a position-dependent state (see
TargetBlock
) - When converting a block on placement (see
WetSpongeBlock
) - When fire lights a portal
- Overrides:
onBlockAdded
in classAbstractFireBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named onBlockAdded
Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
intermediary method_9615
Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
official b
Ldxt;b(Ldxu;Ldhh;Ljh;Ldxu;Z)V
- When activating a redstone component on placement (used along with
-
getFireTickDelay
- Mappings:
Namespace Name Mixin selector named getFireTickDelay
Lnet/minecraft/block/FireBlock;getFireTickDelay(Lnet/minecraft/util/math/random/Random;)I
intermediary method_26155
Lnet/minecraft/class_2358;method_26155(Lnet/minecraft/class_5819;)I
official a
Ldnm;a(Lbam;)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. SeeProperties
for the list of pre-defined properties.- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
official a
Ldkl;a(Ldxv$a;)V
-
registerFlammableBlock
- Mappings:
Namespace Name Mixin selector named registerFlammableBlock
Lnet/minecraft/block/FireBlock;registerFlammableBlock(Lnet/minecraft/block/Block;II)V
intermediary method_10189
Lnet/minecraft/class_2358;method_10189(Lnet/minecraft/class_2248;II)V
official a
Ldnm;a(Ldkl;II)V
-
registerDefaultFlammables
public static void registerDefaultFlammables()- Mappings:
Namespace Name Mixin selector named registerDefaultFlammables
Lnet/minecraft/block/FireBlock;registerDefaultFlammables()V
intermediary method_10199
Lnet/minecraft/class_2358;method_10199()V
official b
Ldnm;b()V
-