Class PaleMossCarpetBlock
- All Implemented Interfaces:
Fertilizable,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/PaleMossCarpetBlockintermediary net/minecraft/class_10322official don
-
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
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertyprivate static final VoxelShapestatic final com.mojang.serialization.MapCodec<PaleMossCarpetBlock> private static final EnumProperty<WallShape> private static final floatprivate static final intprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate static final EnumProperty<WallShape> private final Map<BlockState, VoxelShape> private static final EnumProperty<WallShape> private static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate 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, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, 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.booleancanGrow(World world, Random random, BlockPos pos, BlockState state) private static booleancanGrowOnFace(BlockView world, BlockPos pos, Direction direction) protected booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos.private static BlockStatecreateUpperState(BlockView world, BlockPos pos, BooleanSupplier booleanSupplier) com.mojang.serialization.MapCodec<PaleMossCarpetBlock> getCodec()protected VoxelShapegetCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected VoxelShapegetCullingShape(BlockState state) protected VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private static VoxelShapegetShape(BlockState state) protected BlockStategetStateForNeighborUpdate(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) voidgrow(ServerWorld world, Random random, BlockPos pos, BlockState state) private static booleanhasAnyShape(BlockState state) booleanisFertilizable(WorldView world, BlockPos pos, BlockState state) protected booleanisTransparent(BlockState state) protected BlockStatemirror(BlockState state, BlockMirror mirror) Returnsstatemirrored bymirror.voidonPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.static voidplaceAt(WorldAccess world, BlockPos pos, Random random, int flags) protected BlockStaterotate(BlockState state, BlockRotation rotation) Returnsstaterotated byrotation.private static BlockStateupdateState(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, 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, toStringMethods 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, getPickStack, 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, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.Fertilizable
getFertilizableType, getFertilizeParticlePosMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/PaleMossCarpetBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_54755Lnet/minecraft/class_10322;field_54755:Lcom/mojang/serialization/MapCodec;official aLdon;a:Lcom/mojang/serialization/MapCodec;
-
BOTTOM
- Mappings:
Namespace Name Mixin selector named BOTTOMLnet/minecraft/block/PaleMossCarpetBlock;BOTTOM:Lnet/minecraft/state/property/BooleanProperty;intermediary field_54756Lnet/minecraft/class_10322;field_54756:Lnet/minecraft/class_2746;official bLdon;b:Ldxp;
-
NORTH
- Mappings:
Namespace Name Mixin selector named NORTHLnet/minecraft/block/PaleMossCarpetBlock;NORTH:Lnet/minecraft/state/property/EnumProperty;intermediary field_54757Lnet/minecraft/class_10322;field_54757:Lnet/minecraft/class_2754;official cLdon;c:Ldxv;
-
EAST
- Mappings:
Namespace Name Mixin selector named EASTLnet/minecraft/block/PaleMossCarpetBlock;EAST:Lnet/minecraft/state/property/EnumProperty;intermediary field_54758Lnet/minecraft/class_10322;field_54758:Lnet/minecraft/class_2754;official dLdon;d:Ldxv;
-
SOUTH
- Mappings:
Namespace Name Mixin selector named SOUTHLnet/minecraft/block/PaleMossCarpetBlock;SOUTH:Lnet/minecraft/state/property/EnumProperty;intermediary field_54759Lnet/minecraft/class_10322;field_54759:Lnet/minecraft/class_2754;official eLdon;e:Ldxv;
-
WEST
- Mappings:
Namespace Name Mixin selector named WESTLnet/minecraft/block/PaleMossCarpetBlock;WEST:Lnet/minecraft/state/property/EnumProperty;intermediary field_54760Lnet/minecraft/class_10322;field_54760:Lnet/minecraft/class_2754;official fLdon;f:Ldxv;
-
WALL_SHAPES
- Mappings:
Namespace Name Mixin selector named WALL_SHAPESLnet/minecraft/block/PaleMossCarpetBlock;WALL_SHAPES:Ljava/util/Map;intermediary field_54761Lnet/minecraft/class_10322;field_54761:Ljava/util/Map;official gLdon;g:Ljava/util/Map;
-
field_54762
private static final float field_54762- See Also:
- Mappings:
Namespace Name Mixin selector named field_54762Lnet/minecraft/block/PaleMossCarpetBlock;field_54762:Fintermediary field_54762Lnet/minecraft/class_10322;field_54762:Fofficial hLdon;h:F
-
BOTTOM_SHAPE
- Mappings:
Namespace Name Mixin selector named BOTTOM_SHAPELnet/minecraft/block/PaleMossCarpetBlock;BOTTOM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54763Lnet/minecraft/class_10322;field_54763:Lnet/minecraft/class_265;official iLdon;i:Lfbv;
-
TALL_WEST_SHAPE
- Mappings:
Namespace Name Mixin selector named TALL_WEST_SHAPELnet/minecraft/block/PaleMossCarpetBlock;TALL_WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54764Lnet/minecraft/class_10322;field_54764:Lnet/minecraft/class_265;official jLdon;j:Lfbv;
-
TALL_EAST_SHAPE
- Mappings:
Namespace Name Mixin selector named TALL_EAST_SHAPELnet/minecraft/block/PaleMossCarpetBlock;TALL_EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54765Lnet/minecraft/class_10322;field_54765:Lnet/minecraft/class_265;official kLdon;k:Lfbv;
-
TALL_NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector named TALL_NORTH_SHAPELnet/minecraft/block/PaleMossCarpetBlock;TALL_NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54766Lnet/minecraft/class_10322;field_54766:Lnet/minecraft/class_265;official lLdon;l:Lfbv;
-
TALL_SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector named TALL_SOUTH_SHAPELnet/minecraft/block/PaleMossCarpetBlock;TALL_SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54767Lnet/minecraft/class_10322;field_54767:Lnet/minecraft/class_265;official mLdon;m:Lfbv;
-
field_54768
private static final int field_54768- See Also:
- Mappings:
Namespace Name Mixin selector named field_54768Lnet/minecraft/block/PaleMossCarpetBlock;field_54768:Iintermediary field_54768Lnet/minecraft/class_10322;field_54768:Iofficial nLdon;n:I
-
LOW_WEST_SHAPE
- Mappings:
Namespace Name Mixin selector named LOW_WEST_SHAPELnet/minecraft/block/PaleMossCarpetBlock;LOW_WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54769Lnet/minecraft/class_10322;field_54769:Lnet/minecraft/class_265;official oLdon;o:Lfbv;
-
LOW_EAST_SHAPE
- Mappings:
Namespace Name Mixin selector named LOW_EAST_SHAPELnet/minecraft/block/PaleMossCarpetBlock;LOW_EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54751Lnet/minecraft/class_10322;field_54751:Lnet/minecraft/class_265;official GLdon;G:Lfbv;
-
LOW_NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector named LOW_NORTH_SHAPELnet/minecraft/block/PaleMossCarpetBlock;LOW_NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54752Lnet/minecraft/class_10322;field_54752:Lnet/minecraft/class_265;official HLdon;H:Lfbv;
-
LOW_SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector named LOW_SOUTH_SHAPELnet/minecraft/block/PaleMossCarpetBlock;LOW_SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_54753Lnet/minecraft/class_10322;field_54753:Lnet/minecraft/class_265;official ILdon;I:Lfbv;
-
shapeCache
- Mappings:
Namespace Name Mixin selector named shapeCacheLnet/minecraft/block/PaleMossCarpetBlock;shapeCache:Ljava/util/Map;intermediary field_54754Lnet/minecraft/class_10322;field_54754:Ljava/util/Map;official JLdon;J:Ljava/util/Map;
-
-
Constructor Details
-
PaleMossCarpetBlock
- 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>Ldwx;<init>(Ldwx$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classBlock- 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 aLdwx;a()Lcom/mojang/serialization/MapCodec;
-
getCullingShape
- Overrides:
getCullingShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named getCullingShapeLnet/minecraft/block/AbstractBlock;getCullingShape(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_9571Lnet/minecraft/class_4970;method_9571(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;official d_Ldwx;d_(Ldwy;)Lfbv;
-
getShape
- Mappings:
Namespace Name Mixin selector named getShapeLnet/minecraft/block/PaleMossCarpetBlock;getShape(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_64797Lnet/minecraft/class_10322;method_64797(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;official oLdon;o(Ldwy;)Lfbv;
-
getOutlineShape
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- 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 aLdwx;a(Ldwy;Ldfo;Lji;Lfbg;)Lfbv;
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named getCollisionShapeLnet/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_9549Lnet/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 bLdwx;b(Ldwy;Ldfo;Lji;Lfbg;)Lfbv;
-
isTransparent
- Overrides:
isTransparentin classAbstractBlock- Mappings:
Namespace Name Mixin selector named isTransparentLnet/minecraft/block/AbstractBlock;isTransparent(Lnet/minecraft/block/BlockState;)Zintermediary method_9579Lnet/minecraft/class_4970;method_9579(Lnet/minecraft/class_2680;)Zofficial e_Ldwx;e_(Ldwy;)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:
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 aLdwx;a(Ldwy;Ldgm;Lji;)Z
-
hasAnyShape
- Mappings:
Namespace Name Mixin selector named hasAnyShapeLnet/minecraft/block/PaleMossCarpetBlock;hasAnyShape(Lnet/minecraft/block/BlockState;)Zintermediary method_64799Lnet/minecraft/class_10322;method_64799(Lnet/minecraft/class_2680;)Zofficial qLdon;q(Ldwy;)Z
-
canGrowOnFace
- Mappings:
Namespace Name Mixin selector named canGrowOnFaceLnet/minecraft/block/PaleMossCarpetBlock;canGrowOnFace(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Zintermediary method_64791Lnet/minecraft/class_10322;method_64791(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Zofficial aLdon;a(Ldfo;Lji;Ljn;)Z
-
updateState
private static BlockState updateState(BlockState state, BlockView world, BlockPos pos, boolean bool) - Mappings:
Namespace Name Mixin selector named updateStateLnet/minecraft/block/PaleMossCarpetBlock;updateState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Z)Lnet/minecraft/block/BlockState;intermediary method_64793Lnet/minecraft/class_10322;method_64793(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Z)Lnet/minecraft/class_2680;official aLdon;a(Ldwy;Ldfo;Lji;Z)Ldwy;
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- 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 aLdjn;a(Ldah;)Ldwy;
-
placeAt
- Mappings:
Namespace Name Mixin selector named placeAtLnet/minecraft/block/PaleMossCarpetBlock;placeAt(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;I)Vintermediary method_64792Lnet/minecraft/class_10322;method_64792(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;I)Vofficial aLdon;a(Ldgk;Lji;Lazh;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:
onPlacedin classBlock- See Also:
- Mappings:
Namespace Name Mixin selector named onPlacedLnet/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;)Vintermediary method_9567Lnet/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;)Vofficial aLdjn;a(Ldgj;Lji;Ldwy;Lbvi;Lcwq;)V
-
createUpperState
private static BlockState createUpperState(BlockView world, BlockPos pos, BooleanSupplier booleanSupplier) - Mappings:
Namespace Name Mixin selector named createUpperStateLnet/minecraft/block/PaleMossCarpetBlock;createUpperState(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/block/BlockState;intermediary method_64790Lnet/minecraft/class_10322;method_64790(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/class_2680;official aLdon;a(Ldfo;Lji;Ljava/util/function/BooleanSupplier;)Ldwy;
-
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.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.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_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 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 getStateForNeighborUpdateLnet/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_9559Lnet/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 aLdwx;a(Ldwy;Ldgm;Ldgy;Lji;Ljn;Lji;Ldwy;Lazh;)Ldwy;
-
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 aLdjn;a(Ldwz$a;)V
-
rotate
Returnsstaterotated byrotation.By default, this returns the provided block state.
- Overrides:
rotatein classAbstractBlock- Returns:
staterotated byrotation- See Also:
- Mappings:
Namespace Name Mixin selector named rotateLnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;intermediary method_9598Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;official aLdwx;a(Ldwy;Ldqf;)Ldwy;
-
mirror
Returnsstatemirrored bymirror.By default, this returns the provided block state.
- Overrides:
mirrorin classAbstractBlock- Returns:
statemirrored bymirror- See Also:
- Mappings:
Namespace Name Mixin selector named mirrorLnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;intermediary method_9569Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;official aLdwx;a(Ldwy;Ldom;)Ldwy;
-
getWallShape
- Mappings:
Namespace Name Mixin selector named getWallShapeLnet/minecraft/block/PaleMossCarpetBlock;getWallShape(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/EnumProperty;intermediary method_64795Lnet/minecraft/class_10322;method_64795(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2754;official aLdon;a(Ljn;)Ldxv;
-
isFertilizable
- Specified by:
isFertilizablein interfaceFertilizable- Mappings:
Namespace Name Mixin selector named isFertilizableLnet/minecraft/block/Fertilizable;isFertilizable(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Zintermediary method_9651Lnet/minecraft/class_2256;method_9651(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Zofficial aLdjq;a(Ldgm;Lji;Ldwy;)Z
-
canGrow
- Specified by:
canGrowin interfaceFertilizable- Mappings:
Namespace Name Mixin selector named canGrowLnet/minecraft/block/Fertilizable;canGrow(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Zintermediary method_9650Lnet/minecraft/class_2256;method_9650(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Zofficial aLdjq;a(Ldgj;Lazh;Lji;Ldwy;)Z
-
grow
- Specified by:
growin interfaceFertilizable- Mappings:
Namespace Name Mixin selector named growLnet/minecraft/block/Fertilizable;grow(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_9652Lnet/minecraft/class_2256;method_9652(Lnet/minecraft/class_3218;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLdjq;a(Lard;Lazh;Lji;Ldwy;)V
-