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
- Mappings:
Namespace Name official ckaintermediary net/minecraft/class_3962named net/minecraft/block/ComposterBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classNested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate static final intstatic final Object2FloatMap<ItemConvertible>static final IntPropertyprivate static final VoxelShape[]static final intprivate static final VoxelShapeFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static BlockStateaddToComposter(BlockState state, WorldAccess world, BlockPos pos, ItemStack item) protected voidappendProperties(StateManager.Builder<Block, BlockState> builder) booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type) static BlockStatecompost(BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) (package private) static BlockStateemptyComposter(BlockState state, WorldAccess world, BlockPos pos) static BlockStateemptyFullComposter(BlockState state, World world, BlockPos pos) getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) intgetComparatorOutput(BlockState state, World world, BlockPos pos) getInventory(BlockState state, WorldAccess world, BlockPos pos) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getRaycastShape(BlockState state, BlockView world, BlockPos pos) booleanhasComparatorOutput(BlockState state) voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.static voidplayEffects(World world, BlockPos pos, boolean fill) private static voidregisterCompostableItem(float levelIncreaseChance, ItemConvertible item) static voidvoidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Methods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, 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, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getPistonBehavior, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate
-
Field Details
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector official aLcka;a:Iintermediary field_31071Lnet/minecraft/class_3962;field_31071:Inamed MAX_LEVELLnet/minecraft/block/ComposterBlock;MAX_LEVEL:I
-
field_31072
public static final int field_31072- See Also:
- Mappings:
Namespace Name Mixin selector official bLcka;b:Iintermediary field_31072Lnet/minecraft/class_3962;field_31072:Inamed field_31072Lnet/minecraft/block/ComposterBlock;field_31072:I
-
field_31073
public static final int field_31073- See Also:
- Mappings:
Namespace Name Mixin selector official cLcka;c:Iintermediary field_31073Lnet/minecraft/class_3962;field_31073:Inamed field_31073Lnet/minecraft/block/ComposterBlock;field_31073:I
-
LEVEL
- Mappings:
Namespace Name Mixin selector official dLcka;d:Lcvr;intermediary field_17565Lnet/minecraft/class_3962;field_17565:Lnet/minecraft/class_2758;named LEVELLnet/minecraft/block/ComposterBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
-
ITEM_TO_LEVEL_INCREASE_CHANCE
- Mappings:
Namespace Name Mixin selector official eLcka;e:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;intermediary field_17566Lnet/minecraft/class_3962;field_17566:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;named ITEM_TO_LEVEL_INCREASE_CHANCELnet/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 fLcka;f:Iintermediary field_31074Lnet/minecraft/class_3962;field_31074:Inamed field_31074Lnet/minecraft/block/ComposterBlock;field_31074:I
-
RAYCAST_SHAPE
- Mappings:
Namespace Name Mixin selector official gLcka;g:Ldwm;intermediary field_17567Lnet/minecraft/class_3962;field_17567:Lnet/minecraft/class_265;named RAYCAST_SHAPELnet/minecraft/block/ComposterBlock;RAYCAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
LEVEL_TO_COLLISION_SHAPE
- Mappings:
Namespace Name Mixin selector official hLcka;h:[Ldwm;intermediary field_17568Lnet/minecraft/class_3962;field_17568:[Lnet/minecraft/class_265;named LEVEL_TO_COLLISION_SHAPELnet/minecraft/block/ComposterBlock;LEVEL_TO_COLLISION_SHAPE:[Lnet/minecraft/util/shape/VoxelShape;
-
-
Constructor Details
-
ComposterBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcuq;<init>(Lcuq$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
registerDefaultCompostableItems
public static void registerDefaultCompostableItems()- Mappings:
Namespace Name Mixin selector official bLcka;b()Vintermediary method_17758Lnet/minecraft/class_3962;method_17758()Vnamed registerDefaultCompostableItemsLnet/minecraft/block/ComposterBlock;registerDefaultCompostableItems()V
-
registerCompostableItem
- Mappings:
Namespace Name Mixin selector official aLcka;a(FLcfz;)Vintermediary method_17753Lnet/minecraft/class_3962;method_17753(FLnet/minecraft/class_1935;)Vnamed registerCompostableItemLnet/minecraft/block/ComposterBlock;registerCompostableItem(FLnet/minecraft/item/ItemConvertible;)V
-
playEffects
- Mappings:
Namespace Name Mixin selector official aLcka;a(Lcga;Lgt;Z)Vintermediary method_18027Lnet/minecraft/class_3962;method_18027(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Z)Vnamed playEffectsLnet/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:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcfg;Lgt;Ldvy;)Ldwm;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;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;
-
getRaycastShape
- Overrides:
getRaycastShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcfg;Lgt;)Ldwm;intermediary method_9584Lnet/minecraft/class_4970;method_9584(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;named getRaycastShapeLnet/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:
getCollisionShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official cLcuq;c(Lcur;Lcfg;Lgt;Ldvy;)Ldwm;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;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;
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) - Overrides:
onBlockAddedin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLcuq;b(Lcur;Lcga;Lgt;Lcur;Z)Vintermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onBlockAddedLnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
onUse
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player. This, by default, is bound to using the right mouse button.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().If the action result is successful on a logical client, then the action will be sent to the logical server for processing.
- Overrides:
onUsein classAbstractBlock- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcga;Lgt;Lbtf;Lazl;Ldvp;)Lazm;intermediary method_9534Lnet/minecraft/class_4970;method_9534(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_1269;named onUseLnet/minecraft/block/AbstractBlock;onUse(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/util/ActionResult;
-
compost
public static BlockState compost(BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) - Mappings:
Namespace Name Mixin selector official aLcka;a(Lcur;Lafo;Lcaa;Lgt;)Lcur;intermediary method_26373Lnet/minecraft/class_3962;method_26373(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named compostLnet/minecraft/block/ComposterBlock;compost(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
emptyFullComposter
- Mappings:
Namespace Name Mixin selector official dLcka;d(Lcur;Lcga;Lgt;)Lcur;intermediary method_26374Lnet/minecraft/class_3962;method_26374(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named emptyFullComposterLnet/minecraft/block/ComposterBlock;emptyFullComposter(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
emptyComposter
- Mappings:
Namespace Name Mixin selector official cLcka;c(Lcur;Lcgb;Lgt;)Lcur;intermediary method_17759Lnet/minecraft/class_3962;method_17759(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named emptyComposterLnet/minecraft/block/ComposterBlock;emptyComposter(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
addToComposter
- Mappings:
Namespace Name Mixin selector official aLcka;a(Lcur;Lcgb;Lgt;Lcaa;)Lcur;intermediary method_17756Lnet/minecraft/class_3962;method_17756(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)Lnet/minecraft/class_2680;named addToComposterLnet/minecraft/block/ComposterBlock;addToComposter(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/block/BlockState;
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lafo;Lgt;Lalu;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
hasComparatorOutput
- Overrides:
hasComparatorOutputin classAbstractBlock- Mappings:
Namespace Name Mixin selector official d_Lcuq;d_(Lcur;)Zintermediary method_9498Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Znamed hasComparatorOutputLnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
-
getComparatorOutput
- Overrides:
getComparatorOutputin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcga;Lgt;)Iintermediary method_9572Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Inamed getComparatorOutputLnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcus$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
getInventory
- Specified by:
getInventoryin interfaceInventoryProvider- Mappings:
Namespace Name Mixin selector official aLazu;a(Lcur;Lcgb;Lgt;)Lazt;intermediary method_17680Lnet/minecraft/class_3954;method_17680(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1278;named getInventoryLnet/minecraft/block/InventoryProvider;getInventory(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/SidedInventory;
-