Package net.minecraft.screen
Class AnvilScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
net.minecraft.screen.AnvilScreenHandler
public class AnvilScreenHandler extends ForgingScreenHandler
- Mappings:
Namespace Name official bjt
intermediary net/minecraft/class_1706
named net/minecraft/screen/AnvilScreenHandler
-
Field Summary
Fields Modifier and Type Field Description private Property
levelCost
private static Logger
LOGGER
private String
newItemName
private int
repairItemUsage
Fields inherited from class net.minecraft.screen.ForgingScreenHandler
context, input, output, player
Fields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId
-
Constructor Summary
Constructors Constructor Description AnvilScreenHandler(int syncId, PlayerInventory inventory)
AnvilScreenHandler(int syncId, PlayerInventory inventory, ScreenHandlerContext context)
-
Method Summary
Modifier and Type Method Description protected boolean
canTakeOutput(PlayerEntity player, boolean present)
protected boolean
canUse(BlockState state)
int
getLevelCost()
static int
getNextCost(int cost)
protected ItemStack
onTakeOutput(PlayerEntity player, ItemStack stack)
void
setNewItemName(String string)
void
updateResult()
Methods inherited from class net.minecraft.screen.ForgingScreenHandler
canUse, close, method_30025, onContentChanged, transferSlot
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official g
Lbjt;g:Lorg/apache/logging/log4j/Logger;
intermediary field_7771
Lnet/minecraft/class_1706;field_7771:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/screen/AnvilScreenHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
-
repairItemUsage
private int repairItemUsage- Mappings:
Namespace Name Mixin selector official h
Lbjt;h:I
intermediary field_7776
Lnet/minecraft/class_1706;field_7776:I
named repairItemUsage
Lnet/minecraft/screen/AnvilScreenHandler;repairItemUsage:I
-
newItemName
- Mappings:
Namespace Name Mixin selector official i
Lbjt;i:Ljava/lang/String;
intermediary field_7774
Lnet/minecraft/class_1706;field_7774:Ljava/lang/String;
named newItemName
Lnet/minecraft/screen/AnvilScreenHandler;newItemName:Ljava/lang/String;
-
levelCost
- Mappings:
Namespace Name Mixin selector official j
Lbjt;j:Lbkg;
intermediary field_7770
Lnet/minecraft/class_1706;field_7770:Lnet/minecraft/class_3915;
named levelCost
Lnet/minecraft/screen/AnvilScreenHandler;levelCost:Lnet/minecraft/screen/Property;
-
-
Constructor Details
-
AnvilScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lbjt;<init>(ILbhk;)V
intermediary <init>
Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;)V
named <init>
Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
AnvilScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lbjt;<init>(ILbhk;Lbkc;)V
intermediary <init>
Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V
named <init>
Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
-
-
Method Details
-
canUse
- Specified by:
canUse
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbkq;a(Lcht;)Z
intermediary method_24925
Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Z
named canUse
Lnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Z
-
canTakeOutput
- Specified by:
canTakeOutput
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector official b
Lbkq;b(Lbhl;Z)Z
intermediary method_24927
Lnet/minecraft/class_4861;method_24927(Lnet/minecraft/class_1657;Z)Z
named canTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;canTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Z)Z
-
onTakeOutput
- Specified by:
onTakeOutput
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbkq;a(Lbhl;Lbnv;)Lbnv;
intermediary method_24923
Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
named onTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
updateResult
public void updateResult()- Specified by:
updateResult
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector official e
Lbkq;e()V
intermediary method_24928
Lnet/minecraft/class_4861;method_24928()V
named updateResult
Lnet/minecraft/screen/ForgingScreenHandler;updateResult()V
-
getNextCost
public static int getNextCost(int cost)- Mappings:
Namespace Name Mixin selector official d
Lbjt;d(I)I
intermediary method_20398
Lnet/minecraft/class_1706;method_20398(I)I
named getNextCost
Lnet/minecraft/screen/AnvilScreenHandler;getNextCost(I)I
-
setNewItemName
- Mappings:
Namespace Name Mixin selector official a
Lbjt;a(Ljava/lang/String;)V
intermediary method_7625
Lnet/minecraft/class_1706;method_7625(Ljava/lang/String;)V
named setNewItemName
Lnet/minecraft/screen/AnvilScreenHandler;setNewItemName(Ljava/lang/String;)V
-
getLevelCost
- Mappings:
Namespace Name Mixin selector official f
Lbjt;f()I
intermediary method_17369
Lnet/minecraft/class_1706;method_17369()I
named getLevelCost
Lnet/minecraft/screen/AnvilScreenHandler;getLevelCost()I
-