Package net.minecraft.block
Class ComposterBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.ComposterBlock
- All Implemented Interfaces:
InventoryProvider
,ItemConvertible
,ToggleableFeature
- Mappings:
Namespace Name official cyj
intermediary net/minecraft/class_3962
named net/minecraft/block/ComposterBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ComposterBlock>
private static final int
static final Object2FloatMap<ItemConvertible>
static final IntProperty
private static final VoxelShape[]
static final int
static final int
static final int
private static final VoxelShape
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, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static BlockState
addToComposter
(@Nullable Entity user, BlockState state, WorldAccess world, BlockPos pos, ItemStack stack) protected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.boolean
canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.static BlockState
compost
(Entity user, BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) (package private) static BlockState
emptyComposter
(@Nullable Entity user, BlockState state, WorldAccess world, BlockPos pos) static BlockState
emptyFullComposter
(Entity user, BlockState state, World world, BlockPos pos) com.mojang.serialization.MapCodec<ComposterBlock>
getCodec()
getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) int
getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.getInventory
(BlockState state, WorldAccess world, BlockPos pos) getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getRaycastShape
(BlockState state, BlockView world, BlockPos pos) boolean
hasComparatorOutput
(BlockState state) Returns whether the block can have a comparator output.method_55765
(ItemStack itemStack, BlockState blockState, World world, BlockPos blockPos, PlayerEntity playerEntity, Hand hand, BlockHitResult blockHitResult) method_55766
(BlockState blockState, World world, BlockPos blockPos, PlayerEntity playerEntity, BlockHitResult blockHitResult) 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
playEffects
(World world, BlockPos pos, boolean fill) private static void
registerCompostableItem
(float levelIncreaseChance, ItemConvertible item) static void
void
scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.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, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, 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 official a
Lcyj;a:Lcom/mojang/serialization/MapCodec;
intermediary field_46320
Lnet/minecraft/class_3962;field_46320:Lcom/mojang/serialization/MapCodec;
named CODEC
Lnet/minecraft/block/ComposterBlock;CODEC:Lcom/mojang/serialization/MapCodec;
-
NUM_LEVELS
public static final int NUM_LEVELS- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcyj;b:I
intermediary field_31071
Lnet/minecraft/class_3962;field_31071:I
named NUM_LEVELS
Lnet/minecraft/block/ComposterBlock;NUM_LEVELS:I
-
MIN_LEVEL
public static final int MIN_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lcyj;c:I
intermediary field_31072
Lnet/minecraft/class_3962;field_31072:I
named MIN_LEVEL
Lnet/minecraft/block/ComposterBlock;MIN_LEVEL:I
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lcyj;d:I
intermediary field_31073
Lnet/minecraft/class_3962;field_31073:I
named MAX_LEVEL
Lnet/minecraft/block/ComposterBlock;MAX_LEVEL:I
-
LEVEL
- Mappings:
Namespace Name Mixin selector official e
Lcyj;e:Ldkp;
intermediary field_17565
Lnet/minecraft/class_3962;field_17565:Lnet/minecraft/class_2758;
named LEVEL
Lnet/minecraft/block/ComposterBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
-
ITEM_TO_LEVEL_INCREASE_CHANCE
- Mappings:
Namespace Name Mixin selector official f
Lcyj;f:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
intermediary field_17566
Lnet/minecraft/class_3962;field_17566:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
named ITEM_TO_LEVEL_INCREASE_CHANCE
Lnet/minecraft/block/ComposterBlock;ITEM_TO_LEVEL_INCREASE_CHANCE:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
-
field_31074
private static final int field_31074- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lcyj;g:I
intermediary field_31074
Lnet/minecraft/class_3962;field_31074:I
named field_31074
Lnet/minecraft/block/ComposterBlock;field_31074:I
-
RAYCAST_SHAPE
- Mappings:
Namespace Name Mixin selector official h
Lcyj;h:Lemv;
intermediary field_17567
Lnet/minecraft/class_3962;field_17567:Lnet/minecraft/class_265;
named RAYCAST_SHAPE
Lnet/minecraft/block/ComposterBlock;RAYCAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
LEVEL_TO_COLLISION_SHAPE
- Mappings:
Namespace Name Mixin selector official i
Lcyj;i:[Lemv;
intermediary field_17568
Lnet/minecraft/class_3962;field_17568:[Lnet/minecraft/class_265;
named LEVEL_TO_COLLISION_SHAPE
Lnet/minecraft/block/ComposterBlock;LEVEL_TO_COLLISION_SHAPE:[Lnet/minecraft/util/shape/VoxelShape;
-
-
Constructor Details
-
ComposterBlock
- Mappings:
Namespace Name Mixin selector official <init>
Ldjo;<init>(Ldjo$d;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodec
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Ldjo;a()Lcom/mojang/serialization/MapCodec;
intermediary method_53969
Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
named getCodec
Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
-
registerDefaultCompostableItems
public static void registerDefaultCompostableItems()- Mappings:
Namespace Name Mixin selector official b
Lcyj;b()V
intermediary method_17758
Lnet/minecraft/class_3962;method_17758()V
named registerDefaultCompostableItems
Lnet/minecraft/block/ComposterBlock;registerDefaultCompostableItems()V
-
registerCompostableItem
- Mappings:
Namespace Name Mixin selector official a
Lcyj;a(FLctw;)V
intermediary method_17753
Lnet/minecraft/class_3962;method_17753(FLnet/minecraft/class_1935;)V
named registerCompostableItem
Lnet/minecraft/block/ComposterBlock;registerCompostableItem(FLnet/minecraft/item/ItemConvertible;)V
-
playEffects
- Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lctx;Lhx;Z)V
intermediary method_18027
Lnet/minecraft/class_3962;method_18027(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Z)V
named playEffects
Lnet/minecraft/block/ComposterBlock;playEffects(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)V
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShape
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Ldjo;a(Ldjp;Lctd;Lhx;Lemh;)Lemv;
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;
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;
-
getRaycastShape
- Overrides:
getRaycastShape
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Ldjo;a(Ldjp;Lctd;Lhx;)Lemv;
intermediary method_9584
Lnet/minecraft/class_4970;method_9584(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;
named getRaycastShape
Lnet/minecraft/block/AbstractBlock;getRaycastShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShape
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Ldjo;b(Ldjp;Lctd;Lhx;Lemh;)Lemv;
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;
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;
-
onBlockAdded
public 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,AbstractBlock.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:
onBlockAdded
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldjo;b(Ldjp;Lctx;Lhx;Ldjp;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
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
- When activating a redstone component on placement (used along with
-
method_55765
public class_9062 method_55765(ItemStack itemStack, BlockState blockState, World world, BlockPos blockPos, PlayerEntity playerEntity, Hand hand, BlockHitResult blockHitResult) - Overrides:
method_55765
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Ldjo;a(Lcng;Ldjp;Lctx;Lhx;Lcfq;Lbkb;Lely;)Lbke;
intermediary method_55765
Lnet/minecraft/class_4970;method_55765(Lnet/minecraft/class_1799;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_9062;
named method_55765
Lnet/minecraft/block/AbstractBlock;method_55765(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/class_9062;
-
method_55766
public ActionResult method_55766(BlockState blockState, World world, BlockPos blockPos, PlayerEntity playerEntity, BlockHitResult blockHitResult) - Overrides:
method_55766
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Ldjo;a(Ldjp;Lctx;Lhx;Lcfq;Lely;)Lbkc;
intermediary method_55766
Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
named method_55766
Lnet/minecraft/block/AbstractBlock;method_55766(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
-
compost
public static BlockState compost(Entity user, BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) - Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lblw;Ldjp;Lane;Lcng;Lhx;)Ldjp;
intermediary method_26373
Lnet/minecraft/class_3962;method_26373(Lnet/minecraft/class_1297;Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named compost
Lnet/minecraft/block/ComposterBlock;compost(Lnet/minecraft/entity/Entity;Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
emptyFullComposter
public static BlockState emptyFullComposter(Entity user, BlockState state, World world, BlockPos pos) - Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lblw;Ldjp;Lctx;Lhx;)Ldjp;
intermediary method_26374
Lnet/minecraft/class_3962;method_26374(Lnet/minecraft/class_1297;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named emptyFullComposter
Lnet/minecraft/block/ComposterBlock;emptyFullComposter(Lnet/minecraft/entity/Entity;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
emptyComposter
static BlockState emptyComposter(@Nullable @Nullable Entity user, BlockState state, WorldAccess world, BlockPos pos) - Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lblw;Ldjp;Lcty;Lhx;)Ldjp;
intermediary method_17759
Lnet/minecraft/class_3962;method_17759(Lnet/minecraft/class_1297;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named emptyComposter
Lnet/minecraft/block/ComposterBlock;emptyComposter(Lnet/minecraft/entity/Entity;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
addToComposter
static BlockState addToComposter(@Nullable @Nullable Entity user, BlockState state, WorldAccess world, BlockPos pos, ItemStack stack) - Mappings:
Namespace Name Mixin selector official a
Lcyj;a(Lblw;Ldjp;Lcty;Lhx;Lcng;)Ldjp;
intermediary method_17756
Lnet/minecraft/class_3962;method_17756(Lnet/minecraft/class_1297;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)Lnet/minecraft/class_2680;
named addToComposter
Lnet/minecraft/block/ComposterBlock;addToComposter(Lnet/minecraft/entity/Entity;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/block/BlockState;
-
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)
. Additionally,AbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)
by default calls this method; overrideAbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)
to disable this behavior.Scheduled ticks are often used inside
AbstractBlock.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:
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 official a
Ldjo;a(Ldjp;Lane;Lhx;Lauw;)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
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
-
hasComparatorOutput
Returns whether the block can have a comparator output.This does not check the current comparator output of the block. Use
AbstractBlock.getComparatorOutput(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos)
in that case.- Overrides:
hasComparatorOutput
in classAbstractBlock
- Returns:
- whether the block can have a comparator output
- See Also:
- Mappings:
Namespace Name Mixin selector official d_
Ldjo;d_(Ldjp;)Z
intermediary method_9498
Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z
named hasComparatorOutput
Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
-
getComparatorOutput
Returns the comparator output of the block, from0
to15
.When overriding this,
AbstractBlock.hasComparatorOutput(net.minecraft.block.BlockState)
must also be overridden.- Overrides:
getComparatorOutput
in classAbstractBlock
- Returns:
- the comparator output of the block, from
0
to15
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldjo;a(Ldjp;Lctx;Lhx;)I
intermediary method_9572
Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
named getComparatorOutput
Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)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 official a
Lcwy;a(Ldjq$a;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
getInventory
- Specified by:
getInventory
in interfaceInventoryProvider
- Mappings:
Namespace Name Mixin selector official a
Lbkp;a(Ldjp;Lcty;Lhx;)Lbko;
intermediary method_17680
Lnet/minecraft/class_3954;method_17680(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1278;
named getInventory
Lnet/minecraft/block/InventoryProvider;getInventory(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/SidedInventory;
-