Class class_8887
- All Implemented Interfaces:
Inventory,RecipeInputInventory,RecipeInputProvider,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- Mappings:
Namespace Name official dffintermediary net/minecraft/class_8887named net/minecraft/class_8887
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected final PropertyDelegateprivate DefaultedList<ItemStack>private intFields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY, lootTableId, lootTableSeedFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, worldFields inherited from interface net.minecraft.inventory.Inventory
field_42619, MAX_COUNT_PER_STACK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.protected ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory) protected TextintReturns the height of the recipe grid.Returns the stacks held by the inventory.getStack(int slot) Returns the stack currently stored atslot.intgetWidth()Returns the width of the recipe grid.booleanisEmpty()Returns whether the inventory consists entirely of empty item stacks.booleanReturns whetherstackis valid for theslot.private booleanmethod_54479(int int2, ItemStack itemStack, int int3) voidmethod_54480(int int2, boolean bool) static voidmethod_54481(World world, BlockPos blockPos, BlockState blockState, class_8887 class_8887) voidmethod_54482(boolean bool) booleanmethod_54483(int int2) voidmethod_54484(int int2) private booleanmethod_54485(int int2) private voidmethod_54486(NbtCompound nbtCompound) private voidmethod_54487(NbtCompound nbtCompound) booleanintvoidprovideRecipeInputs(RecipeMatcher finder) voidreadNbt(NbtCompound nbt) Reads data fromnbt.protected voidvoidSets the stack stored atslottostack.intsize()Returns the size of the inventory.protected voidwriteNbt(NbtCompound nbt) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
checkLootInteraction, checkUnlocked, clear, createMenu, deserializeLootTable, removeStack, removeStack, serializeLootTable, setLootTable, setLootTableMethods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, getCustomName, getDisplayName, getName, setCustomNameMethods 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, writeIdToNbtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, markDirty, onClose, onOpen, removeStack, removeStackMethods 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 cLdff;c:Iintermediary field_46809Lnet/minecraft/class_8887;field_46809:Inamed field_46809Lnet/minecraft/class_8887;field_46809:I
-
field_46810
public static final int field_46810- See Also:
- Mappings:
Namespace Name Mixin selector official dLdff;d:Iintermediary field_46810Lnet/minecraft/class_8887;field_46810:Inamed field_46810Lnet/minecraft/class_8887;field_46810:I
-
field_46811
public static final int field_46811- See Also:
- Mappings:
Namespace Name Mixin selector official eLdff;e:Iintermediary field_46811Lnet/minecraft/class_8887;field_46811:Inamed field_46811Lnet/minecraft/class_8887;field_46811:I
-
field_46812
public static final int field_46812- See Also:
- Mappings:
Namespace Name Mixin selector official fLdff;f:Iintermediary field_46812Lnet/minecraft/class_8887;field_46812:Inamed field_46812Lnet/minecraft/class_8887;field_46812:I
-
field_46813
public static final int field_46813- See Also:
- Mappings:
Namespace Name Mixin selector official gLdff;g:Iintermediary field_46813Lnet/minecraft/class_8887;field_46813:Inamed field_46813Lnet/minecraft/class_8887;field_46813:I
-
field_46814
public static final int field_46814- See Also:
- Mappings:
Namespace Name Mixin selector official hLdff;h:Iintermediary field_46814Lnet/minecraft/class_8887;field_46814:Inamed field_46814Lnet/minecraft/class_8887;field_46814:I
-
field_46815
public static final int field_46815- See Also:
- Mappings:
Namespace Name Mixin selector official iLdff;i:Iintermediary field_46815Lnet/minecraft/class_8887;field_46815:Inamed field_46815Lnet/minecraft/class_8887;field_46815:I
-
field_46817
- Mappings:
Namespace Name Mixin selector official rLdff;r:Lil;intermediary field_46817Lnet/minecraft/class_8887;field_46817:Lnet/minecraft/class_2371;named field_46817Lnet/minecraft/class_8887;field_46817:Lnet/minecraft/util/collection/DefaultedList;
-
field_46818
private int field_46818- Mappings:
Namespace Name Mixin selector official sLdff;s:Iintermediary field_46818Lnet/minecraft/class_8887;field_46818:Inamed field_46818Lnet/minecraft/class_8887;field_46818:I
-
field_46816
- Mappings:
Namespace Name Mixin selector official jLdff;j:Lcgo;intermediary field_46816Lnet/minecraft/class_8887;field_46816:Lnet/minecraft/class_3913;named field_46816Lnet/minecraft/class_8887;field_46816:Lnet/minecraft/screen/PropertyDelegate;
-
-
Constructor Details
-
class_8887
-
-
Method Details
-
getContainerName
- Specified by:
getContainerNamein classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official gLdel;g()Lur;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
createScreenHandler
- Specified by:
createScreenHandlerin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLdel;a(ILcdl;)Lcge;intermediary method_5465Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;named createScreenHandlerLnet/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 aLdff;a(IZ)Vintermediary method_54480Lnet/minecraft/class_8887;method_54480(IZ)Vnamed method_54480Lnet/minecraft/class_8887;method_54480(IZ)V
-
method_54483
public boolean method_54483(int int2) - Mappings:
Namespace Name Mixin selector official cLdff;c(I)Zintermediary method_54483Lnet/minecraft/class_8887;method_54483(I)Znamed method_54483Lnet/minecraft/class_8887;method_54483(I)Z
-
isValid
Returns whetherstackis valid for theslot.Implementations can, for example, use this to check whether the item is in a specific tag. This returns
trueby default.- Specified by:
isValidin interfaceInventory- Returns:
- whether
stackis valid for theslot - Mappings:
Namespace Name Mixin selector official bLbij;b(ILclb;)Zintermediary method_5437Lnet/minecraft/class_1263;method_5437(ILnet/minecraft/class_1799;)Znamed isValidLnet/minecraft/inventory/Inventory;isValid(ILnet/minecraft/item/ItemStack;)Z
-
method_54479
- Mappings:
Namespace Name Mixin selector official aLdff;a(ILclb;I)Zintermediary method_54479Lnet/minecraft/class_8887;method_54479(ILnet/minecraft/class_1799;I)Znamed method_54479Lnet/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.
nbtmight 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:
readNbtin classLockableContainerBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLder;a(Lrz;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/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:
writeNbtin classLockableContainerBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLder;b(Lrz;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/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
0tosize() - 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:
isEmptyin interfaceInventory- Overrides:
isEmptyin classLootableContainerBlockEntity- Returns:
- whether the inventory consists entirely of empty item stacks
- Mappings:
Namespace Name Mixin selector official ai_Lbij;ai_()Zintermediary method_5442Lnet/minecraft/class_1263;method_5442()Znamed isEmptyLnet/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:
getStackin interfaceInventory- Overrides:
getStackin classLootableContainerBlockEntity- Returns:
- the stack currently stored at
slot - Mappings:
Namespace Name Mixin selector official aLbij;a(I)Lclb;intermediary method_5438Lnet/minecraft/class_1263;method_5438(I)Lnet/minecraft/class_1799;named getStackLnet/minecraft/inventory/Inventory;getStack(I)Lnet/minecraft/item/ItemStack;
-
setStack
Sets the stack stored atslottostack.- Specified by:
setStackin interfaceInventory- Overrides:
setStackin classLootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLbij;a(ILclb;)Vintermediary method_5447Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)Vnamed setStackLnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
-
canPlayerUse
Returns whetherplayercan use this inventory.This is called by
ScreenHandler.canUse(net.minecraft.screen.ScreenHandlerContext, net.minecraft.entity.player.PlayerEntity, net.minecraft.block.Block).- Specified by:
canPlayerUsein interfaceInventory- Overrides:
canPlayerUsein classLootableContainerBlockEntity- Returns:
- whether
playercan use this inventory - See Also:
- Mappings:
Namespace Name Mixin selector official aLbij;a(Lcdm;)Zintermediary method_5443Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Znamed canPlayerUseLnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getInputStacks
Description copied from interface:RecipeInputInventoryReturns the stacks held by the inventory.- Specified by:
getInputStacksin interfaceRecipeInputInventory- Specified by:
getInputStacksin classLootableContainerBlockEntity- Returns:
- the stacks held by the inventory
- Mappings:
Namespace Name Mixin selector official method_11282Ldff;method_11282()Lil;intermediary method_11282Lnet/minecraft/class_8887;method_11282()Lnet/minecraft/class_2371;named getInputStacksLnet/minecraft/class_8887;getInputStacks()Lnet/minecraft/util/collection/DefaultedList;
-
setInvStackList
- Specified by:
setInvStackListin classLootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLdfv;a(Lil;)Vintermediary method_11281Lnet/minecraft/class_2621;method_11281(Lnet/minecraft/class_2371;)Vnamed setInvStackListLnet/minecraft/block/entity/LootableContainerBlockEntity;setInvStackList(Lnet/minecraft/util/collection/DefaultedList;)V
-
getWidth
public int getWidth()Returns the width of the recipe grid.- Specified by:
getWidthin interfaceRecipeInputInventory- Returns:
- the width of the recipe grid
- Mappings:
Namespace Name Mixin selector official ax_Lcgu;ax_()Iintermediary method_17398Lnet/minecraft/class_8566;method_17398()Inamed getWidthLnet/minecraft/inventory/RecipeInputInventory;getWidth()I
-
getHeight
public int getHeight()Returns the height of the recipe grid.- Specified by:
getHeightin interfaceRecipeInputInventory- Returns:
- the height of the recipe grid
- Mappings:
Namespace Name Mixin selector official ay_Lcgu;ay_()Iintermediary method_17397Lnet/minecraft/class_8566;method_17397()Inamed getHeightLnet/minecraft/inventory/RecipeInputInventory;getHeight()I
-
provideRecipeInputs
- Specified by:
provideRecipeInputsin interfaceRecipeInputProvider- Mappings:
Namespace Name Mixin selector official aLcic;a(Lcdq;)Vintermediary method_7683Lnet/minecraft/class_1737;method_7683(Lnet/minecraft/class_1662;)Vnamed provideRecipeInputsLnet/minecraft/recipe/RecipeInputProvider;provideRecipeInputs(Lnet/minecraft/recipe/RecipeMatcher;)V
-
method_54486
- Mappings:
Namespace Name Mixin selector official fLdff;f(Lrz;)Vintermediary method_54486Lnet/minecraft/class_8887;method_54486(Lnet/minecraft/class_2487;)Vnamed method_54486Lnet/minecraft/class_8887;method_54486(Lnet/minecraft/nbt/NbtCompound;)V
-
method_54487
- Mappings:
Namespace Name Mixin selector official gLdff;g(Lrz;)Vintermediary method_54487Lnet/minecraft/class_8887;method_54487(Lnet/minecraft/class_2487;)Vnamed method_54487Lnet/minecraft/class_8887;method_54487(Lnet/minecraft/nbt/NbtCompound;)V
-
method_54482
public void method_54482(boolean bool) - Mappings:
Namespace Name Mixin selector official aLdff;a(Z)Vintermediary method_54482Lnet/minecraft/class_8887;method_54482(Z)Vnamed method_54482Lnet/minecraft/class_8887;method_54482(Z)V
-
method_54488
public boolean method_54488()- Mappings:
Namespace Name Mixin selector official iLdff;i()Zintermediary method_54488Lnet/minecraft/class_8887;method_54488()Znamed method_54488Lnet/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 aLdff;a(Lcrs;Lht;Ldgw;Ldff;)Vintermediary method_54481Lnet/minecraft/class_8887;method_54481(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_8887;)Vnamed method_54481Lnet/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 dLdff;d(I)Vintermediary method_54484Lnet/minecraft/class_8887;method_54484(I)Vnamed method_54484Lnet/minecraft/class_8887;method_54484(I)V
-
method_54489
public int method_54489()- Mappings:
Namespace Name Mixin selector official jLdff;j()Iintermediary method_54489Lnet/minecraft/class_8887;method_54489()Inamed method_54489Lnet/minecraft/class_8887;method_54489()I
-
method_54485
private boolean method_54485(int int2) - Mappings:
Namespace Name Mixin selector official eLdff;e(I)Zintermediary method_54485Lnet/minecraft/class_8887;method_54485(I)Znamed method_54485Lnet/minecraft/class_8887;method_54485(I)Z
-