Class class_8887
- All Implemented Interfaces:
Inventory
,RecipeInputInventory
,RecipeInputProvider
,NamedScreenHandlerFactory
,ScreenHandlerFactory
,Clearable
,Nameable
- Mappings:
Namespace Name official dff
intermediary net/minecraft/class_8887
named net/minecraft/class_8887
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
protected final PropertyDelegate
private DefaultedList<ItemStack>
private int
Fields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY, lootTableId, lootTableSeed
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
Fields inherited from interface net.minecraft.inventory.Inventory
field_42619, MAX_COUNT_PER_STACK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.protected ScreenHandler
createScreenHandler
(int syncId, PlayerInventory playerInventory) protected Text
int
Returns the height of the recipe grid.Returns the stacks held by the inventory.getStack
(int slot) Returns the stack currently stored atslot
.int
getWidth()
Returns the width of the recipe grid.boolean
isEmpty()
Returns whether the inventory consists entirely of empty item stacks.boolean
Returns whetherstack
is valid for theslot
.private boolean
method_54479
(int int2, ItemStack itemStack, int int3) void
method_54480
(int int2, boolean bool) static void
method_54481
(World world, BlockPos blockPos, BlockState blockState, class_8887 class_8887) void
method_54482
(boolean bool) boolean
method_54483
(int int2) void
method_54484
(int int2) private boolean
method_54485
(int int2) private void
method_54486
(NbtCompound nbtCompound) private void
method_54487
(NbtCompound nbtCompound) boolean
int
void
provideRecipeInputs
(RecipeMatcher finder) void
readNbt
(NbtCompound nbt) Reads data fromnbt
.protected void
void
Sets the stack stored atslot
tostack
.int
size()
Returns the size of the inventory.protected void
writeNbt
(NbtCompound nbt) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
checkLootInteraction, checkUnlocked, clear, createMenu, deserializeLootTable, removeStack, removeStack, serializeLootTable, setLootTable, setLootTable
Methods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, getCustomName, getDisplayName, getName, setCustomName
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, markDirty, onClose, onOpen, removeStack, removeStack
Methods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
field_46809
public static final int field_46809- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldff;c:I
intermediary field_46809
Lnet/minecraft/class_8887;field_46809:I
named field_46809
Lnet/minecraft/class_8887;field_46809:I
-
field_46810
public static final int field_46810- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldff;d:I
intermediary field_46810
Lnet/minecraft/class_8887;field_46810:I
named field_46810
Lnet/minecraft/class_8887;field_46810:I
-
field_46811
public static final int field_46811- See Also:
- Mappings:
Namespace Name Mixin selector official e
Ldff;e:I
intermediary field_46811
Lnet/minecraft/class_8887;field_46811:I
named field_46811
Lnet/minecraft/class_8887;field_46811:I
-
field_46812
public static final int field_46812- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldff;f:I
intermediary field_46812
Lnet/minecraft/class_8887;field_46812:I
named field_46812
Lnet/minecraft/class_8887;field_46812:I
-
field_46813
public static final int field_46813- See Also:
- Mappings:
Namespace Name Mixin selector official g
Ldff;g:I
intermediary field_46813
Lnet/minecraft/class_8887;field_46813:I
named field_46813
Lnet/minecraft/class_8887;field_46813:I
-
field_46814
public static final int field_46814- See Also:
- Mappings:
Namespace Name Mixin selector official h
Ldff;h:I
intermediary field_46814
Lnet/minecraft/class_8887;field_46814:I
named field_46814
Lnet/minecraft/class_8887;field_46814:I
-
field_46815
public static final int field_46815- See Also:
- Mappings:
Namespace Name Mixin selector official i
Ldff;i:I
intermediary field_46815
Lnet/minecraft/class_8887;field_46815:I
named field_46815
Lnet/minecraft/class_8887;field_46815:I
-
field_46817
- Mappings:
Namespace Name Mixin selector official r
Ldff;r:Lil;
intermediary field_46817
Lnet/minecraft/class_8887;field_46817:Lnet/minecraft/class_2371;
named field_46817
Lnet/minecraft/class_8887;field_46817:Lnet/minecraft/util/collection/DefaultedList;
-
field_46818
private int field_46818- Mappings:
Namespace Name Mixin selector official s
Ldff;s:I
intermediary field_46818
Lnet/minecraft/class_8887;field_46818:I
named field_46818
Lnet/minecraft/class_8887;field_46818:I
-
field_46816
- Mappings:
Namespace Name Mixin selector official j
Ldff;j:Lcgo;
intermediary field_46816
Lnet/minecraft/class_8887;field_46816:Lnet/minecraft/class_3913;
named field_46816
Lnet/minecraft/class_8887;field_46816:Lnet/minecraft/screen/PropertyDelegate;
-
-
Constructor Details
-
class_8887
-
-
Method Details
-
getContainerName
- Specified by:
getContainerName
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official g
Ldel;g()Lur;
intermediary method_17823
Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;
named getContainerName
Lnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
createScreenHandler
- Specified by:
createScreenHandler
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Ldel;a(ILcdl;)Lcge;
intermediary method_5465
Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
named createScreenHandler
Lnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
-
method_54480
public void method_54480(int int2, boolean bool) - Mappings:
Namespace Name Mixin selector official a
Ldff;a(IZ)V
intermediary method_54480
Lnet/minecraft/class_8887;method_54480(IZ)V
named method_54480
Lnet/minecraft/class_8887;method_54480(IZ)V
-
method_54483
public boolean method_54483(int int2) - Mappings:
Namespace Name Mixin selector official c
Ldff;c(I)Z
intermediary method_54483
Lnet/minecraft/class_8887;method_54483(I)Z
named method_54483
Lnet/minecraft/class_8887;method_54483(I)Z
-
isValid
Returns whetherstack
is valid for theslot
.Implementations can, for example, use this to check whether the item is in a specific tag. This returns
true
by default.- Specified by:
isValid
in interfaceInventory
- Returns:
- whether
stack
is valid for theslot
- Mappings:
Namespace Name Mixin selector official b
Lbij;b(ILclb;)Z
intermediary method_5437
Lnet/minecraft/class_1263;method_5437(ILnet/minecraft/class_1799;)Z
named isValid
Lnet/minecraft/inventory/Inventory;isValid(ILnet/minecraft/item/ItemStack;)Z
-
method_54479
- Mappings:
Namespace Name Mixin selector official a
Ldff;a(ILclb;I)Z
intermediary method_54479
Lnet/minecraft/class_8887;method_54479(ILnet/minecraft/class_1799;I)Z
named method_54479
Lnet/minecraft/class_8887;method_54479(ILnet/minecraft/item/ItemStack;I)Z
-
readNbt
Reads data fromnbt
. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbt
in classLockableContainerBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lder;a(Lrz;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
Writes data tonbt
. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbt
in classLockableContainerBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lder;b(Lrz;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
size
public int size()Returns the size of the inventory.The inventory should support the slot ID from
0
tosize() - 1
. This should remain constant throughout the inventory's lifetime. -
isEmpty
public boolean isEmpty()Returns whether the inventory consists entirely of empty item stacks.- Specified by:
isEmpty
in interfaceInventory
- Overrides:
isEmpty
in classLootableContainerBlockEntity
- Returns:
- whether the inventory consists entirely of empty item stacks
- Mappings:
Namespace Name Mixin selector official ai_
Lbij;ai_()Z
intermediary method_5442
Lnet/minecraft/class_1263;method_5442()Z
named isEmpty
Lnet/minecraft/inventory/Inventory;isEmpty()Z
-
getStack
Returns the stack currently stored atslot
.If the slot is empty, or is outside the bounds of this inventory, this returns
ItemStack.EMPTY
.- Specified by:
getStack
in interfaceInventory
- Overrides:
getStack
in classLootableContainerBlockEntity
- Returns:
- the stack currently stored at
slot
- Mappings:
Namespace Name Mixin selector official a
Lbij;a(I)Lclb;
intermediary method_5438
Lnet/minecraft/class_1263;method_5438(I)Lnet/minecraft/class_1799;
named getStack
Lnet/minecraft/inventory/Inventory;getStack(I)Lnet/minecraft/item/ItemStack;
-
setStack
Sets the stack stored atslot
tostack
.- Specified by:
setStack
in interfaceInventory
- Overrides:
setStack
in classLootableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lbij;a(ILclb;)V
intermediary method_5447
Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)V
named setStack
Lnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
-
canPlayerUse
Returns whetherplayer
can use this inventory.This is called by
ScreenHandler.canUse(net.minecraft.screen.ScreenHandlerContext, net.minecraft.entity.player.PlayerEntity, net.minecraft.block.Block)
.- Specified by:
canPlayerUse
in interfaceInventory
- Overrides:
canPlayerUse
in classLootableContainerBlockEntity
- Returns:
- whether
player
can use this inventory - See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbij;a(Lcdm;)Z
intermediary method_5443
Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Z
named canPlayerUse
Lnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getInputStacks
Description copied from interface:RecipeInputInventory
Returns the stacks held by the inventory.- Specified by:
getInputStacks
in interfaceRecipeInputInventory
- Specified by:
getInputStacks
in classLootableContainerBlockEntity
- Returns:
- the stacks held by the inventory
- Mappings:
Namespace Name Mixin selector official method_11282
Ldff;method_11282()Lil;
intermediary method_11282
Lnet/minecraft/class_8887;method_11282()Lnet/minecraft/class_2371;
named getInputStacks
Lnet/minecraft/class_8887;getInputStacks()Lnet/minecraft/util/collection/DefaultedList;
-
setInvStackList
- Specified by:
setInvStackList
in classLootableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Ldfv;a(Lil;)V
intermediary method_11281
Lnet/minecraft/class_2621;method_11281(Lnet/minecraft/class_2371;)V
named setInvStackList
Lnet/minecraft/block/entity/LootableContainerBlockEntity;setInvStackList(Lnet/minecraft/util/collection/DefaultedList;)V
-
getWidth
public int getWidth()Returns the width of the recipe grid.- Specified by:
getWidth
in interfaceRecipeInputInventory
- Returns:
- the width of the recipe grid
- Mappings:
Namespace Name Mixin selector official ax_
Lcgu;ax_()I
intermediary method_17398
Lnet/minecraft/class_8566;method_17398()I
named getWidth
Lnet/minecraft/inventory/RecipeInputInventory;getWidth()I
-
getHeight
public int getHeight()Returns the height of the recipe grid.- Specified by:
getHeight
in interfaceRecipeInputInventory
- Returns:
- the height of the recipe grid
- Mappings:
Namespace Name Mixin selector official ay_
Lcgu;ay_()I
intermediary method_17397
Lnet/minecraft/class_8566;method_17397()I
named getHeight
Lnet/minecraft/inventory/RecipeInputInventory;getHeight()I
-
provideRecipeInputs
- Specified by:
provideRecipeInputs
in interfaceRecipeInputProvider
- Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lcdq;)V
intermediary method_7683
Lnet/minecraft/class_1737;method_7683(Lnet/minecraft/class_1662;)V
named provideRecipeInputs
Lnet/minecraft/recipe/RecipeInputProvider;provideRecipeInputs(Lnet/minecraft/recipe/RecipeMatcher;)V
-
method_54486
- Mappings:
Namespace Name Mixin selector official f
Ldff;f(Lrz;)V
intermediary method_54486
Lnet/minecraft/class_8887;method_54486(Lnet/minecraft/class_2487;)V
named method_54486
Lnet/minecraft/class_8887;method_54486(Lnet/minecraft/nbt/NbtCompound;)V
-
method_54487
- Mappings:
Namespace Name Mixin selector official g
Ldff;g(Lrz;)V
intermediary method_54487
Lnet/minecraft/class_8887;method_54487(Lnet/minecraft/class_2487;)V
named method_54487
Lnet/minecraft/class_8887;method_54487(Lnet/minecraft/nbt/NbtCompound;)V
-
method_54482
public void method_54482(boolean bool) - Mappings:
Namespace Name Mixin selector official a
Ldff;a(Z)V
intermediary method_54482
Lnet/minecraft/class_8887;method_54482(Z)V
named method_54482
Lnet/minecraft/class_8887;method_54482(Z)V
-
method_54488
public boolean method_54488()- Mappings:
Namespace Name Mixin selector official i
Ldff;i()Z
intermediary method_54488
Lnet/minecraft/class_8887;method_54488()Z
named method_54488
Lnet/minecraft/class_8887;method_54488()Z
-
method_54481
public static void method_54481(World world, BlockPos blockPos, BlockState blockState, class_8887 class_8887) - Mappings:
Namespace Name Mixin selector official a
Ldff;a(Lcrs;Lht;Ldgw;Ldff;)V
intermediary method_54481
Lnet/minecraft/class_8887;method_54481(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_8887;)V
named method_54481
Lnet/minecraft/class_8887;method_54481(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_8887;)V
-
method_54484
public void method_54484(int int2) - Mappings:
Namespace Name Mixin selector official d
Ldff;d(I)V
intermediary method_54484
Lnet/minecraft/class_8887;method_54484(I)V
named method_54484
Lnet/minecraft/class_8887;method_54484(I)V
-
method_54489
public int method_54489()- Mappings:
Namespace Name Mixin selector official j
Ldff;j()I
intermediary method_54489
Lnet/minecraft/class_8887;method_54489()I
named method_54489
Lnet/minecraft/class_8887;method_54489()I
-
method_54485
private boolean method_54485(int int2) - Mappings:
Namespace Name Mixin selector official e
Ldff;e(I)Z
intermediary method_54485
Lnet/minecraft/class_8887;method_54485(I)Z
named method_54485
Lnet/minecraft/class_8887;method_54485(I)Z
-