Class AbstractFurnaceBlockEntity
- All Implemented Interfaces:
Inventory
,SidedInventory
,RecipeInputProvider
,RecipeUnlocker
,NamedScreenHandlerFactory
,ScreenHandlerFactory
,Clearable
,Nameable
- Direct Known Subclasses:
BlastFurnaceBlockEntity
,FurnaceBlockEntity
,SmokerBlockEntity
- Mappings:
Namespace Name official dck
intermediary net/minecraft/class_2609
named net/minecraft/block/entity/AbstractFurnaceBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int[]
static final int
(package private) int
static final int
static final int
(package private) int
(package private) int
static final int
static final int
protected static final int
static final int
(package private) int
protected static final int
protected DefaultedList<ItemStack>
private final RecipeManager.MatchGetter<Inventory,
? extends AbstractCookingRecipe> protected static final int
static final int
protected final PropertyDelegate
private final Object2IntOpenHashMap<Identifier>
private static final int[]
private static final int[]
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
ModifierConstructorDescriptionprotected
AbstractFurnaceBlockEntity
(BlockEntityType<?> blockEntityType, BlockPos pos, BlockState state, RecipeType<? extends AbstractCookingRecipe> recipeType) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addFuel
(Map<Item, Integer> fuelTimes, ItemConvertible item, int fuelTime) private static void
private static boolean
canAcceptRecipeOutput
(DynamicRegistryManager registryManager, @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) boolean
canExtract
(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.boolean
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.static boolean
canUseAsFuel
(ItemStack stack) void
clear()
private static boolean
craftRecipe
(DynamicRegistryManager registryManager, @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) private static void
dropExperience
(ServerWorld world, Vec3d pos, int multiplier, float experience) void
int[]
getAvailableSlots
(Direction side) Returns the available slot positions that are reachable from a given side.private static int
getCookTime
(World world, AbstractFurnaceBlockEntity furnace) protected int
getFuelTime
(ItemStack fuel) @Nullable RecipeEntry<?>
List<RecipeEntry<?>>
getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) getStack
(int slot) Returns the stack currently stored atslot
.private boolean
boolean
isEmpty()
Returns whether the inventory consists entirely of empty item stacks.private static boolean
isNonFlammableWood
(Item item) Returns whether the provideditem
is in thenon_flammable_wood
tag.boolean
Returns whetherstack
is valid for theslot
.void
provideRecipeInputs
(RecipeMatcher finder) void
readNbt
(NbtCompound nbt) Reads data fromnbt
.removeStack
(int slot) Removes the stack currently stored atslot
.removeStack
(int slot, int amount) Removes a specific number of items fromslot
.void
setLastRecipe
(@Nullable RecipeEntry<?> recipe) void
Sets the stack stored atslot
tostack
.int
size()
Returns the size of the inventory.static void
tick
(World world, BlockPos pos, BlockState state, AbstractFurnaceBlockEntity blockEntity) void
unlockLastRecipe
(PlayerEntity player, List<ItemStack> ingredients) protected void
writeNbt
(NbtCompound nbt) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, checkUnlocked, createMenu, createScreenHandler, getContainerName, 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
Methods inherited from interface net.minecraft.util.Nameable
hasCustomName
Methods inherited from interface net.minecraft.recipe.RecipeUnlocker
shouldCraftRecipe
-
Field Details
-
INPUT_SLOT_INDEX
protected static final int INPUT_SLOT_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldck;c:I
intermediary field_31286
Lnet/minecraft/class_2609;field_31286:I
named INPUT_SLOT_INDEX
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;INPUT_SLOT_INDEX:I
-
FUEL_SLOT_INDEX
protected static final int FUEL_SLOT_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldck;d:I
intermediary field_31287
Lnet/minecraft/class_2609;field_31287:I
named FUEL_SLOT_INDEX
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;FUEL_SLOT_INDEX:I
-
OUTPUT_SLOT_INDEX
protected static final int OUTPUT_SLOT_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector official e
Ldck;e:I
intermediary field_31288
Lnet/minecraft/class_2609;field_31288:I
named OUTPUT_SLOT_INDEX
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;OUTPUT_SLOT_INDEX:I
-
BURN_TIME_PROPERTY_INDEX
public static final int BURN_TIME_PROPERTY_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldck;f:I
intermediary field_31289
Lnet/minecraft/class_2609;field_31289:I
named BURN_TIME_PROPERTY_INDEX
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;BURN_TIME_PROPERTY_INDEX:I
-
TOP_SLOTS
private static final int[] TOP_SLOTS- Mappings:
Namespace Name Mixin selector official r
Ldck;r:[I
intermediary field_11987
Lnet/minecraft/class_2609;field_11987:[I
named TOP_SLOTS
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;TOP_SLOTS:[I
-
BOTTOM_SLOTS
private static final int[] BOTTOM_SLOTS- Mappings:
Namespace Name Mixin selector official s
Ldck;s:[I
intermediary field_11982
Lnet/minecraft/class_2609;field_11982:[I
named BOTTOM_SLOTS
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;BOTTOM_SLOTS:[I
-
SIDE_SLOTS
private static final int[] SIDE_SLOTS- Mappings:
Namespace Name Mixin selector official t
Ldck;t:[I
intermediary field_11983
Lnet/minecraft/class_2609;field_11983:[I
named SIDE_SLOTS
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;SIDE_SLOTS:[I
-
FUEL_TIME_PROPERTY_INDEX
public static final int FUEL_TIME_PROPERTY_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector official g
Ldck;g:I
intermediary field_31290
Lnet/minecraft/class_2609;field_31290:I
named FUEL_TIME_PROPERTY_INDEX
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;FUEL_TIME_PROPERTY_INDEX:I
-
COOK_TIME_PROPERTY_INDEX
public static final int COOK_TIME_PROPERTY_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector official h
Ldck;h:I
intermediary field_31291
Lnet/minecraft/class_2609;field_31291:I
named COOK_TIME_PROPERTY_INDEX
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;COOK_TIME_PROPERTY_INDEX:I
-
COOK_TIME_TOTAL_PROPERTY_INDEX
public static final int COOK_TIME_TOTAL_PROPERTY_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector official i
Ldck;i:I
intermediary field_31292
Lnet/minecraft/class_2609;field_31292:I
named COOK_TIME_TOTAL_PROPERTY_INDEX
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;COOK_TIME_TOTAL_PROPERTY_INDEX:I
-
PROPERTY_COUNT
public static final int PROPERTY_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector official j
Ldck;j:I
intermediary field_31293
Lnet/minecraft/class_2609;field_31293:I
named PROPERTY_COUNT
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;PROPERTY_COUNT:I
-
DEFAULT_COOK_TIME
public static final int DEFAULT_COOK_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official k
Ldck;k:I
intermediary field_31294
Lnet/minecraft/class_2609;field_31294:I
named DEFAULT_COOK_TIME
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;DEFAULT_COOK_TIME:I
-
field_31295
public static final int field_31295- See Also:
- Mappings:
Namespace Name Mixin selector official l
Ldck;l:I
intermediary field_31295
Lnet/minecraft/class_2609;field_31295:I
named field_31295
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;field_31295:I
-
inventory
- Mappings:
Namespace Name Mixin selector official m
Ldck;m:Lhn;
intermediary field_11984
Lnet/minecraft/class_2609;field_11984:Lnet/minecraft/class_2371;
named inventory
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
burnTime
int burnTime- Mappings:
Namespace Name Mixin selector official u
Ldck;u:I
intermediary field_11981
Lnet/minecraft/class_2609;field_11981:I
named burnTime
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;burnTime:I
-
fuelTime
int fuelTime- Mappings:
Namespace Name Mixin selector official v
Ldck;v:I
intermediary field_11980
Lnet/minecraft/class_2609;field_11980:I
named fuelTime
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;fuelTime:I
-
cookTime
int cookTime- Mappings:
Namespace Name Mixin selector official w
Ldck;w:I
intermediary field_11989
Lnet/minecraft/class_2609;field_11989:I
named cookTime
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;cookTime:I
-
cookTimeTotal
int cookTimeTotal- Mappings:
Namespace Name Mixin selector official x
Ldck;x:I
intermediary field_11988
Lnet/minecraft/class_2609;field_11988:I
named cookTimeTotal
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;cookTimeTotal:I
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector official n
Ldck;n:Lcev;
intermediary field_17374
Lnet/minecraft/class_2609;field_17374:Lnet/minecraft/class_3913;
named propertyDelegate
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
-
recipesUsed
- Mappings:
Namespace Name Mixin selector official y
Ldck;y:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
intermediary field_11986
Lnet/minecraft/class_2609;field_11986:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
named recipesUsed
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;recipesUsed:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
-
matchGetter
- Mappings:
Namespace Name Mixin selector official z
Ldck;z:Lcml$a;
intermediary field_38234
Lnet/minecraft/class_2609;field_38234:Lnet/minecraft/class_1863$class_7266;
named matchGetter
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;matchGetter:Lnet/minecraft/recipe/RecipeManager$MatchGetter;
-
-
Constructor Details
-
AbstractFurnaceBlockEntity
protected AbstractFurnaceBlockEntity(BlockEntityType<?> blockEntityType, BlockPos pos, BlockState state, RecipeType<? extends AbstractCookingRecipe> recipeType) - Mappings:
Namespace Name Mixin selector official <init>
Ldck;<init>(Ldcx;Lgw;Ldfj;Lcmn;)V
intermediary <init>
Lnet/minecraft/class_2609;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3956;)V
named <init>
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;<init>(Lnet/minecraft/block/entity/BlockEntityType;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/recipe/RecipeType;)V
-
-
Method Details
-
createFuelTimeMap
- Mappings:
Namespace Name Mixin selector official f
Ldck;f()Ljava/util/Map;
intermediary method_11196
Lnet/minecraft/class_2609;method_11196()Ljava/util/Map;
named createFuelTimeMap
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;createFuelTimeMap()Ljava/util/Map;
-
isNonFlammableWood
Returns whether the provideditem
is in thenon_flammable_wood
tag.- Returns:
- whether the provided
item
is in thenon_flammable_wood
tag - Mappings:
Namespace Name Mixin selector official b
Ldck;b(Lcja;)Z
intermediary method_26395
Lnet/minecraft/class_2609;method_26395(Lnet/minecraft/class_1792;)Z
named isNonFlammableWood
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;isNonFlammableWood(Lnet/minecraft/item/Item;)Z
-
addFuel
- Mappings:
Namespace Name Mixin selector official a
Ldck;a(Ljava/util/Map;Laqh;I)V
intermediary method_11194
Lnet/minecraft/class_2609;method_11194(Ljava/util/Map;Lnet/minecraft/class_6862;I)V
named addFuel
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;addFuel(Ljava/util/Map;Lnet/minecraft/registry/tag/TagKey;I)V
-
addFuel
- Mappings:
Namespace Name Mixin selector official a
Ldck;a(Ljava/util/Map;Lcpu;I)V
intermediary method_11202
Lnet/minecraft/class_2609;method_11202(Ljava/util/Map;Lnet/minecraft/class_1935;I)V
named addFuel
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;addFuel(Ljava/util/Map;Lnet/minecraft/item/ItemConvertible;I)V
-
isBurning
private boolean isBurning()- Mappings:
Namespace Name Mixin selector official i
Ldck;i()Z
intermediary method_11201
Lnet/minecraft/class_2609;method_11201()Z
named isBurning
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;isBurning()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
Ldcv;a(Lqw;)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
Ldcv;b(Lqw;)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
-
tick
public static void tick(World world, BlockPos pos, BlockState state, AbstractFurnaceBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official a
Ldck;a(Lcpv;Lgw;Ldfj;Ldck;)V
intermediary method_31651
Lnet/minecraft/class_2609;method_31651(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2609;)V
named tick
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;)V
-
canAcceptRecipeOutput
private static boolean canAcceptRecipeOutput(DynamicRegistryManager registryManager, @Nullable @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) - Mappings:
Namespace Name Mixin selector official a
Ldck;a(Lhr;Lcmk;Lhn;I)Z
intermediary method_11192
Lnet/minecraft/class_2609;method_11192(Lnet/minecraft/class_5455;Lnet/minecraft/class_8786;Lnet/minecraft/class_2371;I)Z
named canAcceptRecipeOutput
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;canAcceptRecipeOutput(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/recipe/RecipeEntry;Lnet/minecraft/util/collection/DefaultedList;I)Z
-
craftRecipe
private static boolean craftRecipe(DynamicRegistryManager registryManager, @Nullable @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) - Mappings:
Namespace Name Mixin selector official b
Ldck;b(Lhr;Lcmk;Lhn;I)Z
intermediary method_11203
Lnet/minecraft/class_2609;method_11203(Lnet/minecraft/class_5455;Lnet/minecraft/class_8786;Lnet/minecraft/class_2371;I)Z
named craftRecipe
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;craftRecipe(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/recipe/RecipeEntry;Lnet/minecraft/util/collection/DefaultedList;I)Z
-
getFuelTime
- Mappings:
Namespace Name Mixin selector official a
Ldck;a(Lcjf;)I
intermediary method_11200
Lnet/minecraft/class_2609;method_11200(Lnet/minecraft/class_1799;)I
named getFuelTime
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;getFuelTime(Lnet/minecraft/item/ItemStack;)I
-
getCookTime
- Mappings:
Namespace Name Mixin selector official a
Ldck;a(Lcpv;Ldck;)I
intermediary method_17029
Lnet/minecraft/class_2609;method_17029(Lnet/minecraft/class_1937;Lnet/minecraft/class_2609;)I
named getCookTime
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;getCookTime(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;)I
-
canUseAsFuel
- Mappings:
Namespace Name Mixin selector official b
Ldck;b(Lcjf;)Z
intermediary method_11195
Lnet/minecraft/class_2609;method_11195(Lnet/minecraft/class_1799;)Z
named canUseAsFuel
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;canUseAsFuel(Lnet/minecraft/item/ItemStack;)Z
-
getAvailableSlots
Returns the available slot positions that are reachable from a given side.- Specified by:
getAvailableSlots
in interfaceSidedInventory
- Returns:
- the available slot positions that are reachable from a given side
- Mappings:
Namespace Name Mixin selector official a
Lbhh;a(Lha;)[I
intermediary method_5494
Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[I
named getAvailableSlots
Lnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[I
-
canInsert
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.- Specified by:
canInsert
in 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 official a
Lbhh;a(ILcjf;Lha;)Z
intermediary method_5492
Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
named canInsert
Lnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
-
canExtract
Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.- Specified by:
canExtract
in 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 official b
Lbhh;b(ILcjf;Lha;)Z
intermediary method_5493
Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
named canExtract
Lnet/minecraft/inventory/SidedInventory;canExtract(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
-
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
- Returns:
- whether the inventory consists entirely of empty item stacks
- Mappings:
Namespace Name Mixin selector official af_
Lbgr;af_()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
- Returns:
- the stack currently stored at
slot
- Mappings:
Namespace Name Mixin selector official a
Lbgr;a(I)Lcjf;
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;
-
removeStack
Removes a specific number of items fromslot
.- Specified by:
removeStack
in interfaceInventory
- Returns:
- the removed items as a stack
- Mappings:
Namespace Name Mixin selector official a
Lbgr;a(II)Lcjf;
intermediary method_5434
Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;
named removeStack
Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
-
removeStack
Removes the stack currently stored atslot
.- Specified by:
removeStack
in interfaceInventory
- Returns:
- the stack previously stored at the indicated slot
- Mappings:
Namespace Name Mixin selector official b
Lbgr;b(I)Lcjf;
intermediary method_5441
Lnet/minecraft/class_1263;method_5441(I)Lnet/minecraft/class_1799;
named removeStack
Lnet/minecraft/inventory/Inventory;removeStack(I)Lnet/minecraft/item/ItemStack;
-
setStack
Sets the stack stored atslot
tostack
. -
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
- Returns:
- whether
player
can use this inventory - See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbgr;a(Lcbu;)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
-
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
Lbgr;b(ILcjf;)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
-
clear
public void clear() -
setLastRecipe
- Specified by:
setLastRecipe
in interfaceRecipeUnlocker
- Mappings:
Namespace Name Mixin selector official a
Lcfx;a(Lcmk;)V
intermediary method_7662
Lnet/minecraft/class_1732;method_7662(Lnet/minecraft/class_8786;)V
named setLastRecipe
Lnet/minecraft/recipe/RecipeUnlocker;setLastRecipe(Lnet/minecraft/recipe/RecipeEntry;)V
-
getLastRecipe
- Specified by:
getLastRecipe
in interfaceRecipeUnlocker
- Mappings:
Namespace Name Mixin selector official d
Lcfx;d()Lcmk;
intermediary method_7663
Lnet/minecraft/class_1732;method_7663()Lnet/minecraft/class_8786;
named getLastRecipe
Lnet/minecraft/recipe/RecipeUnlocker;getLastRecipe()Lnet/minecraft/recipe/RecipeEntry;
-
unlockLastRecipe
- Specified by:
unlockLastRecipe
in interfaceRecipeUnlocker
- Mappings:
Namespace Name Mixin selector official a
Lcfx;a(Lcbu;Ljava/util/List;)V
intermediary method_7664
Lnet/minecraft/class_1732;method_7664(Lnet/minecraft/class_1657;Ljava/util/List;)V
named unlockLastRecipe
Lnet/minecraft/recipe/RecipeUnlocker;unlockLastRecipe(Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;)V
-
dropExperienceForRecipesUsed
- Mappings:
Namespace Name Mixin selector official a
Ldck;a(Lakr;)V
intermediary method_17763
Lnet/minecraft/class_2609;method_17763(Lnet/minecraft/class_3222;)V
named dropExperienceForRecipesUsed
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;dropExperienceForRecipesUsed(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
getRecipesUsedAndDropExperience
- Mappings:
Namespace Name Mixin selector official a
Ldck;a(Lakq;Lehn;)Ljava/util/List;
intermediary method_27354
Lnet/minecraft/class_2609;method_27354(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Ljava/util/List;
named getRecipesUsedAndDropExperience
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;getRecipesUsedAndDropExperience(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Ljava/util/List;
-
dropExperience
- Mappings:
Namespace Name Mixin selector official a
Ldck;a(Lakq;Lehn;IF)V
intermediary method_17760
Lnet/minecraft/class_2609;method_17760(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;IF)V
named dropExperience
Lnet/minecraft/block/entity/AbstractFurnaceBlockEntity;dropExperience(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;IF)V
-
provideRecipeInputs
- Specified by:
provideRecipeInputs
in interfaceRecipeInputProvider
- Mappings:
Namespace Name Mixin selector official a
Lcgg;a(Lcby;)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
-