Class PaleMossCarpetBlock
- All Implemented Interfaces:
Fertilizable
,ItemConvertible
,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/PaleMossCarpetBlock
intermediary net/minecraft/class_10322
official dpl
-
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>
Nested classes/interfaces inherited from interface net.minecraft.block.Fertilizable
Fertilizable.FertilizableType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BooleanProperty
private static final VoxelShape
static final com.mojang.serialization.MapCodec
<PaleMossCarpetBlock> private static final EnumProperty
<WallShape> private static final float
private static final int
private static final VoxelShape
private static final VoxelShape
private static final VoxelShape
private static final VoxelShape
private static final EnumProperty
<WallShape> private final Map
<BlockState, VoxelShape> private static final EnumProperty
<WallShape> private static final VoxelShape
private static final VoxelShape
private static final VoxelShape
private static final VoxelShape
private static final Map
<Direction, EnumProperty<WallShape>> private static final EnumProperty
<WallShape> 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.boolean
canGrow
(World world, Random random, BlockPos pos, BlockState state) private static boolean
canGrowOnFace
(BlockView world, BlockPos pos, Direction face) protected boolean
canPlaceAt
(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos
.private static BlockState
createUpperState
(BlockView world, BlockPos pos, BooleanSupplier booleanSupplier) com.mojang.serialization.MapCodec
<PaleMossCarpetBlock> getCodec()
protected VoxelShape
getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected VoxelShape
getCullingShape
(BlockState state) protected VoxelShape
getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private static VoxelShape
getShape
(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.static @Nullable EnumProperty
<WallShape> getWallShape
(Direction face) void
grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) private static boolean
hasAnyShape
(BlockState state) boolean
isFertilizable
(WorldView world, BlockPos pos, BlockState state) protected boolean
isTransparent
(BlockState state) protected BlockState
mirror
(BlockState state, BlockMirror mirror) Returnsstate
mirrored bymirror
.void
onPlaced
(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.static void
placeAt
(WorldAccess world, BlockPos pos, Random random, int flags) protected BlockState
rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.private static BlockState
updateState
(BlockState state, BlockView world, BlockPos pos, boolean bool) 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, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getComparatorOutput, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, scheduledTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.block.Fertilizable
getFertilizableType, getFertilizeParticlePos
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/PaleMossCarpetBlock;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_54755
Lnet/minecraft/class_10322;field_54755:Lcom/mojang/serialization/MapCodec;
official a
Ldpl;a:Lcom/mojang/serialization/MapCodec;
-
BOTTOM
- Mappings:
Namespace Name Mixin selector named BOTTOM
Lnet/minecraft/block/PaleMossCarpetBlock;BOTTOM:Lnet/minecraft/state/property/BooleanProperty;
intermediary field_54756
Lnet/minecraft/class_10322;field_54756:Lnet/minecraft/class_2746;
official b
Ldpl;b:Ldyl;
-
NORTH
- Mappings:
Namespace Name Mixin selector named NORTH
Lnet/minecraft/block/PaleMossCarpetBlock;NORTH:Lnet/minecraft/state/property/EnumProperty;
intermediary field_54757
Lnet/minecraft/class_10322;field_54757:Lnet/minecraft/class_2754;
official c
Ldpl;c:Ldyr;
-
EAST
- Mappings:
Namespace Name Mixin selector named EAST
Lnet/minecraft/block/PaleMossCarpetBlock;EAST:Lnet/minecraft/state/property/EnumProperty;
intermediary field_54758
Lnet/minecraft/class_10322;field_54758:Lnet/minecraft/class_2754;
official d
Ldpl;d:Ldyr;
-
SOUTH
- Mappings:
Namespace Name Mixin selector named SOUTH
Lnet/minecraft/block/PaleMossCarpetBlock;SOUTH:Lnet/minecraft/state/property/EnumProperty;
intermediary field_54759
Lnet/minecraft/class_10322;field_54759:Lnet/minecraft/class_2754;
official e
Ldpl;e:Ldyr;
-
WEST
- Mappings:
Namespace Name Mixin selector named WEST
Lnet/minecraft/block/PaleMossCarpetBlock;WEST:Lnet/minecraft/state/property/EnumProperty;
intermediary field_54760
Lnet/minecraft/class_10322;field_54760:Lnet/minecraft/class_2754;
official f
Ldpl;f:Ldyr;
-
WALL_SHAPES
- Mappings:
Namespace Name Mixin selector named WALL_SHAPES
Lnet/minecraft/block/PaleMossCarpetBlock;WALL_SHAPES:Ljava/util/Map;
intermediary field_54761
Lnet/minecraft/class_10322;field_54761:Ljava/util/Map;
official g
Ldpl;g:Ljava/util/Map;
-
field_54762
private static final float field_54762- See Also:
- Mappings:
Namespace Name Mixin selector named field_54762
Lnet/minecraft/block/PaleMossCarpetBlock;field_54762:F
intermediary field_54762
Lnet/minecraft/class_10322;field_54762:F
official h
Ldpl;h:F
-
BOTTOM_SHAPE
- Mappings:
Namespace Name Mixin selector named BOTTOM_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;BOTTOM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54763
Lnet/minecraft/class_10322;field_54763:Lnet/minecraft/class_265;
official i
Ldpl;i:Lfcr;
-
TALL_WEST_SHAPE
- Mappings:
Namespace Name Mixin selector named TALL_WEST_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;TALL_WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54764
Lnet/minecraft/class_10322;field_54764:Lnet/minecraft/class_265;
official j
Ldpl;j:Lfcr;
-
TALL_EAST_SHAPE
- Mappings:
Namespace Name Mixin selector named TALL_EAST_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;TALL_EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54765
Lnet/minecraft/class_10322;field_54765:Lnet/minecraft/class_265;
official k
Ldpl;k:Lfcr;
-
TALL_NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector named TALL_NORTH_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;TALL_NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54766
Lnet/minecraft/class_10322;field_54766:Lnet/minecraft/class_265;
official l
Ldpl;l:Lfcr;
-
TALL_SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector named TALL_SOUTH_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;TALL_SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54767
Lnet/minecraft/class_10322;field_54767:Lnet/minecraft/class_265;
official m
Ldpl;m:Lfcr;
-
field_54768
private static final int field_54768- See Also:
- Mappings:
Namespace Name Mixin selector named field_54768
Lnet/minecraft/block/PaleMossCarpetBlock;field_54768:I
intermediary field_54768
Lnet/minecraft/class_10322;field_54768:I
official n
Ldpl;n:I
-
LOW_WEST_SHAPE
- Mappings:
Namespace Name Mixin selector named LOW_WEST_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;LOW_WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54769
Lnet/minecraft/class_10322;field_54769:Lnet/minecraft/class_265;
official o
Ldpl;o:Lfcr;
-
LOW_EAST_SHAPE
- Mappings:
Namespace Name Mixin selector named LOW_EAST_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;LOW_EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54751
Lnet/minecraft/class_10322;field_54751:Lnet/minecraft/class_265;
official G
Ldpl;G:Lfcr;
-
LOW_NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector named LOW_NORTH_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;LOW_NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54752
Lnet/minecraft/class_10322;field_54752:Lnet/minecraft/class_265;
official H
Ldpl;H:Lfcr;
-
LOW_SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector named LOW_SOUTH_SHAPE
Lnet/minecraft/block/PaleMossCarpetBlock;LOW_SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_54753
Lnet/minecraft/class_10322;field_54753:Lnet/minecraft/class_265;
official I
Ldpl;I:Lfcr;
-
shapeCache
- Mappings:
Namespace Name Mixin selector named shapeCache
Lnet/minecraft/block/PaleMossCarpetBlock;shapeCache:Ljava/util/Map;
intermediary field_54754
Lnet/minecraft/class_10322;field_54754:Ljava/util/Map;
official J
Ldpl;J:Ljava/util/Map;
-
-
Constructor Details
-
PaleMossCarpetBlock
- 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
- Overrides:
getCodec
in classBlock
- 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;
-
getCullingShape
- Overrides:
getCullingShape
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named getCullingShape
Lnet/minecraft/block/AbstractBlock;getCullingShape(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_9571
Lnet/minecraft/class_4970;method_9571(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;
official d_
Ldxt;d_(Ldxu;)Lfcr;
-
getShape
- Mappings:
Namespace Name Mixin selector named getShape
Lnet/minecraft/block/PaleMossCarpetBlock;getShape(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_64797
Lnet/minecraft/class_10322;method_64797(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;
official o
Ldpl;o(Ldxu;)Lfcr;
-
getOutlineShape
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShape
in classAbstractBlock
- 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;
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShape
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named getCollisionShape
Lnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_9549
Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
official b
Ldxt;b(Ldxu;Ldgm;Ljh;Lfcc;)Lfcr;
-
isTransparent
- Overrides:
isTransparent
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector named isTransparent
Lnet/minecraft/block/AbstractBlock;isTransparent(Lnet/minecraft/block/BlockState;)Z
intermediary method_9579
Lnet/minecraft/class_4970;method_9579(Lnet/minecraft/class_2680;)Z
official e_
Ldxt;e_(Ldxu;)Z
-
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
-
hasAnyShape
- Mappings:
Namespace Name Mixin selector named hasAnyShape
Lnet/minecraft/block/PaleMossCarpetBlock;hasAnyShape(Lnet/minecraft/block/BlockState;)Z
intermediary method_64799
Lnet/minecraft/class_10322;method_64799(Lnet/minecraft/class_2680;)Z
official q
Ldpl;q(Ldxu;)Z
-
canGrowOnFace
- Mappings:
Namespace Name Mixin selector named canGrowOnFace
Lnet/minecraft/block/PaleMossCarpetBlock;canGrowOnFace(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
intermediary method_64791
Lnet/minecraft/class_10322;method_64791(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
official a
Ldpl;a(Ldgm;Ljh;Ljm;)Z
-
updateState
private static BlockState updateState(BlockState state, BlockView world, BlockPos pos, boolean bool) - Mappings:
Namespace Name Mixin selector named updateState
Lnet/minecraft/block/PaleMossCarpetBlock;updateState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Z)Lnet/minecraft/block/BlockState;
intermediary method_64793
Lnet/minecraft/class_10322;method_64793(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Z)Lnet/minecraft/class_2680;
official a
Ldpl;a(Ldxu;Ldgm;Ljh;Z)Ldxu;
-
getPlacementState
- Overrides:
getPlacementState
in classBlock
- 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;
-
placeAt
- Mappings:
Namespace Name Mixin selector named placeAt
Lnet/minecraft/block/PaleMossCarpetBlock;placeAt(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;I)V
intermediary method_64792
Lnet/minecraft/class_10322;method_64792(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;I)V
official a
Ldpl;a(Ldhi;Ljh;Lbam;I)V
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, @Nullable @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.Tall or wide blocks (such as doors or beds) should override this to place the other half of the block. Blocks with block entities can use this to copy the data from the item stack, such as the custom name.
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:
onPlaced
in classBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named onPlaced
Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
intermediary method_9567
Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
official a
Ldkl;a(Ldhh;Ljh;Ldxu;Lbwf;Lcxo;)V
-
createUpperState
private static BlockState createUpperState(BlockView world, BlockPos pos, BooleanSupplier booleanSupplier) - Mappings:
Namespace Name Mixin selector named createUpperState
Lnet/minecraft/block/PaleMossCarpetBlock;createUpperState(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/block/BlockState;
intermediary method_64790
Lnet/minecraft/class_10322;method_64790(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/class_2680;
official a
Ldpl;a(Ldgm;Ljh;Ljava/util/function/BooleanSupplier;)Ldxu;
-
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;
-
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
-
rotate
Returnsstate
rotated byrotation
.By default, this returns the provided block state.
- Overrides:
rotate
in classAbstractBlock
- Returns:
state
rotated byrotation
- See Also:
- Mappings:
Namespace Name Mixin selector named rotate
Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
intermediary method_9598
Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
official a
Ldxt;a(Ldxu;Ldrb;)Ldxu;
-
mirror
Returnsstate
mirrored bymirror
.By default, this returns the provided block state.
- Overrides:
mirror
in classAbstractBlock
- Returns:
state
mirrored bymirror
- See Also:
- Mappings:
Namespace Name Mixin selector named mirror
Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
intermediary method_9569
Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
official a
Ldxt;a(Ldxu;Ldpk;)Ldxu;
-
getWallShape
- Mappings:
Namespace Name Mixin selector named getWallShape
Lnet/minecraft/block/PaleMossCarpetBlock;getWallShape(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/EnumProperty;
intermediary method_64795
Lnet/minecraft/class_10322;method_64795(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2754;
official a
Ldpl;a(Ljm;)Ldyr;
-
isFertilizable
- Specified by:
isFertilizable
in interfaceFertilizable
- Mappings:
Namespace Name Mixin selector named isFertilizable
Lnet/minecraft/block/Fertilizable;isFertilizable(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
intermediary method_9651
Lnet/minecraft/class_2256;method_9651(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
official b
Ldko;b(Ldhk;Ljh;Ldxu;)Z
-
canGrow
- Specified by:
canGrow
in interfaceFertilizable
- Mappings:
Namespace Name Mixin selector named canGrow
Lnet/minecraft/block/Fertilizable;canGrow(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
intermediary method_9650
Lnet/minecraft/class_2256;method_9650(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
official a
Ldko;a(Ldhh;Lbam;Ljh;Ldxu;)Z
-
grow
- Specified by:
grow
in interfaceFertilizable
- Mappings:
Namespace Name Mixin selector named grow
Lnet/minecraft/block/Fertilizable;grow(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_9652
Lnet/minecraft/class_2256;method_9652(Lnet/minecraft/class_3218;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official a
Ldko;a(Lash;Lbam;Ljh;Ldxu;)V
-