Package net.minecraft.screen
Class ForgingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
- Direct Known Subclasses:
AnvilScreenHandler,SmithingScreenHandler
public abstract class ForgingScreenHandler extends ScreenHandler
- Mappings:
Namespace Name official bllintermediary net/minecraft/class_4861named net/minecraft/screen/ForgingScreenHandler
-
Field Summary
Fields Modifier and Type Field Description protected ScreenHandlerContextcontextprotected Inventoryinputprotected CraftingResultInventoryoutputprotected PlayerEntityplayerFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description ForgingScreenHandler(@Nullable ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) -
Method Summary
Modifier and Type Method Description protected abstract booleancanTakeOutput(PlayerEntity player, boolean present)protected abstract booleancanUse(BlockState state)booleancanUse(PlayerEntity player)voidclose(PlayerEntity playerEntity)protected booleanmethod_30025(ItemStack itemStack)voidonContentChanged(Inventory inventory)protected abstract voidonTakeOutput(PlayerEntity player, ItemStack stack)ItemStacktransferSlot(PlayerEntity player, int index)abstract voidupdateResult()Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getSlot, getStacks, getType, insertItem, method_34245, method_34247, method_34248, method_34250, method_34252, method_34254, method_34255, method_34256, method_34257, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
output
- Mappings:
Namespace Name Mixin selector official cLbll;c:Lblx;intermediary field_22479Lnet/minecraft/class_4861;field_22479:Lnet/minecraft/class_1731;named outputLnet/minecraft/screen/ForgingScreenHandler;output:Lnet/minecraft/inventory/CraftingResultInventory;
-
input
- Mappings:
Namespace Name Mixin selector official dLbll;d:Laqc;intermediary field_22480Lnet/minecraft/class_4861;field_22480:Lnet/minecraft/class_1263;named inputLnet/minecraft/screen/ForgingScreenHandler;input:Lnet/minecraft/inventory/Inventory;
-
context
- Mappings:
Namespace Name Mixin selector official eLbll;e:Lbkw;intermediary field_22481Lnet/minecraft/class_4861;field_22481:Lnet/minecraft/class_3914;named contextLnet/minecraft/screen/ForgingScreenHandler;context:Lnet/minecraft/screen/ScreenHandlerContext;
-
player
- Mappings:
Namespace Name Mixin selector official fLbll;f:Lbif;intermediary field_22482Lnet/minecraft/class_4861;field_22482:Lnet/minecraft/class_1657;named playerLnet/minecraft/screen/ForgingScreenHandler;player:Lnet/minecraft/entity/player/PlayerEntity;
-
-
Constructor Details
-
ForgingScreenHandler
public ForgingScreenHandler(@Nullable @Nullable ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)- Mappings:
Namespace Name Mixin selector official <init>Lbll;<init>(Lblp;ILbie;Lbkw;)Vintermediary <init>Lnet/minecraft/class_4861;<init>(Lnet/minecraft/class_3917;ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)Vnamed <init>Lnet/minecraft/screen/ForgingScreenHandler;<init>(Lnet/minecraft/screen/ScreenHandlerType;ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
-
-
Method Details
-
canTakeOutput
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbif;Z)Zintermediary method_24927Lnet/minecraft/class_4861;method_24927(Lnet/minecraft/class_1657;Z)Znamed canTakeOutputLnet/minecraft/screen/ForgingScreenHandler;canTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Z)Z
-
onTakeOutput
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lbif;Lboq;)Vintermediary method_24923Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vnamed onTakeOutputLnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
canUse
- Mappings:
Namespace Name Mixin selector official aLbll;a(Lcio;)Zintermediary method_24925Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Znamed canUseLnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Z
-
updateResult
public abstract void updateResult()- Mappings:
Namespace Name Mixin selector official iLbll;i()Vintermediary method_24928Lnet/minecraft/class_4861;method_24928()Vnamed updateResultLnet/minecraft/screen/ForgingScreenHandler;updateResult()V
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLbkl;a(Laqc;)Vintermediary method_7609Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
close
- Overrides:
closein classScreenHandler- Mappings:
Namespace Name Mixin selector official bLbkl;b(Lbif;)Vintermediary method_7595Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
canUse
- Specified by:
canUsein classScreenHandler- Mappings:
Namespace Name Mixin selector official aLbkl;a(Lbif;)Zintermediary method_7597Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
method_30025
- Mappings:
Namespace Name Mixin selector official cLbll;c(Lboq;)Zintermediary method_30025Lnet/minecraft/class_4861;method_30025(Lnet/minecraft/class_1799;)Znamed method_30025Lnet/minecraft/screen/ForgingScreenHandler;method_30025(Lnet/minecraft/item/ItemStack;)Z
-
transferSlot
- Overrides:
transferSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLbkl;b(Lbif;I)Lboq;intermediary method_7601Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-