Package net.minecraft.block
Class ComposterBlock.DummyInventory
java.lang.Object
net.minecraft.inventory.SimpleInventory
net.minecraft.block.ComposterBlock.DummyInventory
- All Implemented Interfaces:
Inventory,SidedInventory,RecipeInputProvider,Clearable
- Enclosing class:
ComposterBlock
private static class ComposterBlock.DummyInventory
extends SimpleInventory
implements SidedInventory
- Mappings:
Namespace Name named net/minecraft/block/ComposterBlock$DummyInventoryintermediary net/minecraft/class_3962$class_3925official dhj$a
-
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExtract(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanReturns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.int[]getAvailableSlots(Direction side) Returns the available slot positions that are reachable from a given side.Methods inherited from class net.minecraft.inventory.SimpleInventory
addListener, addStack, canInsert, canPlayerUse, clear, clearToList, getHeldStacks, getStack, isEmpty, markDirty, provideRecipeInputs, readNbtList, removeItem, removeListener, removeStack, removeStack, setStack, size, toNbtList, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack, size
-
Constructor Details
-
DummyInventory
public DummyInventory()
-
-
Method Details
-
getAvailableSlots
Returns the available slot positions that are reachable from a given side.- Specified by:
getAvailableSlotsin interfaceSidedInventory- Returns:
- the available slot positions that are reachable from a given side
- Mappings:
Namespace Name Mixin selector named getAvailableSlotsLnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[Iintermediary method_5494Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[Iofficial aLbrd;a(Lji;)[I
-
canInsert
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.- Specified by:
canInsertin interfaceSidedInventory- Returns:
- whether the given stack can be inserted into this inventory at the specified slot position from the given direction
- Mappings:
Namespace Name Mixin selector named canInsertLnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Zintermediary method_5492Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Zofficial aLbrd;a(ILcuq;Lji;)Z
-
canExtract
Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.- Specified by:
canExtractin interfaceSidedInventory- Returns:
- whether the given stack can be removed from this inventory at the specified slot position from the given direction
- Mappings:
Namespace Name Mixin selector named canExtractLnet/minecraft/inventory/SidedInventory;canExtract(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Zintermediary method_5493Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Zofficial bLbrd;b(ILcuq;Lji;)Z
-