Package net.minecraft.screen
Class AnvilScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
net.minecraft.screen.AnvilScreenHandler
- Mappings:
Namespace Name official cidintermediary net/minecraft/class_1706named net/minecraft/screen/AnvilScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate static final booleanprivate static final intprivate static final intprivate static final intstatic final intprivate static final intstatic final intprivate static final intprivate final Propertyprivate static final Loggerstatic final intstatic final intprivate static final intprivate intprivate static final intFields inherited from class net.minecraft.screen.ForgingScreenHandler
context, input, output, playerFields inherited from class net.minecraft.screen.ScreenHandler
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId -
Constructor Summary
ConstructorsConstructorDescriptionAnvilScreenHandler(int syncId, PlayerInventory inventory) AnvilScreenHandler(int syncId, PlayerInventory inventory, ScreenHandlerContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanTakeOutput(PlayerEntity player, boolean present) protected booleancanUse(BlockState state) protected ForgingSlotsManagerintstatic intgetNextCost(int cost) protected voidonTakeOutput(PlayerEntity player, ItemStack stack) booleansetNewItemName(String newItemName) voidMethods inherited from class net.minecraft.screen.ForgingScreenHandler
canUse, getResultSlotIndex, getSlotFor, isValidIngredient, onClosed, onContentChanged, quickMoveMethods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
INPUT_1_ID
public static final int INPUT_1_ID- See Also:
- Mappings:
Namespace Name Mixin selector official kLcid;k:Iintermediary field_41898Lnet/minecraft/class_1706;field_41898:Inamed INPUT_1_IDLnet/minecraft/screen/AnvilScreenHandler;INPUT_1_ID:I
-
INPUT_2_ID
public static final int INPUT_2_ID- See Also:
- Mappings:
Namespace Name Mixin selector official lLcid;l:Iintermediary field_41899Lnet/minecraft/class_1706;field_41899:Inamed INPUT_2_IDLnet/minecraft/screen/AnvilScreenHandler;INPUT_2_ID:I
-
OUTPUT_ID
public static final int OUTPUT_ID- See Also:
- Mappings:
Namespace Name Mixin selector official mLcid;m:Iintermediary field_41900Lnet/minecraft/class_1706;field_41900:Inamed OUTPUT_IDLnet/minecraft/screen/AnvilScreenHandler;OUTPUT_ID:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector official sLcid;s:Lorg/slf4j/Logger;intermediary field_7771Lnet/minecraft/class_1706;field_7771:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/screen/AnvilScreenHandler;LOGGER:Lorg/slf4j/Logger;
-
field_30752
private static final boolean field_30752- See Also:
- Mappings:
Namespace Name Mixin selector official tLcid;t:Zintermediary field_30752Lnet/minecraft/class_1706;field_30752:Znamed field_30752Lnet/minecraft/screen/AnvilScreenHandler;field_30752:Z
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector official nLcid;n:Iintermediary field_30751Lnet/minecraft/class_1706;field_30751:Inamed MAX_NAME_LENGTHLnet/minecraft/screen/AnvilScreenHandler;MAX_NAME_LENGTH:I
-
field_30753
private static final int field_30753- See Also:
- Mappings:
Namespace Name Mixin selector official xLcid;x:Iintermediary field_30753Lnet/minecraft/class_1706;field_30753:Inamed field_30753Lnet/minecraft/screen/AnvilScreenHandler;field_30753:I
-
field_30754
private static final int field_30754- See Also:
- Mappings:
Namespace Name Mixin selector official yLcid;y:Iintermediary field_30754Lnet/minecraft/class_1706;field_30754:Inamed field_30754Lnet/minecraft/screen/AnvilScreenHandler;field_30754:I
-
field_30755
private static final int field_30755- See Also:
- Mappings:
Namespace Name Mixin selector official zLcid;z:Iintermediary field_30755Lnet/minecraft/class_1706;field_30755:Inamed field_30755Lnet/minecraft/screen/AnvilScreenHandler;field_30755:I
-
field_30747
private static final int field_30747- See Also:
- Mappings:
Namespace Name Mixin selector official ALcid;A:Iintermediary field_30747Lnet/minecraft/class_1706;field_30747:Inamed field_30747Lnet/minecraft/screen/AnvilScreenHandler;field_30747:I
-
field_30748
private static final int field_30748- See Also:
- Mappings:
Namespace Name Mixin selector official BLcid;B:Iintermediary field_30748Lnet/minecraft/class_1706;field_30748:Inamed field_30748Lnet/minecraft/screen/AnvilScreenHandler;field_30748:I
-
field_30749
private static final int field_30749- See Also:
- Mappings:
Namespace Name Mixin selector official CLcid;C:Iintermediary field_30749Lnet/minecraft/class_1706;field_30749:Inamed field_30749Lnet/minecraft/screen/AnvilScreenHandler;field_30749:I
-
field_30750
private static final int field_30750- See Also:
- Mappings:
Namespace Name Mixin selector official DLcid;D:Iintermediary field_30750Lnet/minecraft/class_1706;field_30750:Inamed field_30750Lnet/minecraft/screen/AnvilScreenHandler;field_30750:I
-
INPUT_1_X
private static final int INPUT_1_X- See Also:
- Mappings:
Namespace Name Mixin selector official ELcid;E:Iintermediary field_41894Lnet/minecraft/class_1706;field_41894:Inamed INPUT_1_XLnet/minecraft/screen/AnvilScreenHandler;INPUT_1_X:I
-
INPUT_2_X
private static final int INPUT_2_X- See Also:
- Mappings:
Namespace Name Mixin selector official FLcid;F:Iintermediary field_41895Lnet/minecraft/class_1706;field_41895:Inamed INPUT_2_XLnet/minecraft/screen/AnvilScreenHandler;INPUT_2_X:I
-
OUTPUT_X
private static final int OUTPUT_X- See Also:
- Mappings:
Namespace Name Mixin selector official GLcid;G:Iintermediary field_41896Lnet/minecraft/class_1706;field_41896:Inamed OUTPUT_XLnet/minecraft/screen/AnvilScreenHandler;OUTPUT_X:I
-
SLOT_Y
private static final int SLOT_Y- See Also:
- Mappings:
Namespace Name Mixin selector official HLcid;H:Iintermediary field_41897Lnet/minecraft/class_1706;field_41897:Inamed SLOT_YLnet/minecraft/screen/AnvilScreenHandler;SLOT_Y:I
-
repairItemUsage
private int repairItemUsage- Mappings:
Namespace Name Mixin selector official uLcid;u:Iintermediary field_7776Lnet/minecraft/class_1706;field_7776:Inamed repairItemUsageLnet/minecraft/screen/AnvilScreenHandler;repairItemUsage:I
-
newItemName
- Mappings:
Namespace Name Mixin selector official vLcid;v:Ljava/lang/String;intermediary field_7774Lnet/minecraft/class_1706;field_7774:Ljava/lang/String;named newItemNameLnet/minecraft/screen/AnvilScreenHandler;newItemName:Ljava/lang/String;
-
levelCost
- Mappings:
Namespace Name Mixin selector official wLcid;w:Lcit;intermediary field_7770Lnet/minecraft/class_1706;field_7770:Lnet/minecraft/class_3915;named levelCostLnet/minecraft/screen/AnvilScreenHandler;levelCost:Lnet/minecraft/screen/Property;
-
-
Constructor Details
-
AnvilScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lcid;<init>(ILcfh;)Vintermediary <init>Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;)Vnamed <init>Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
AnvilScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lcid;<init>(ILcfh;Lcim;)Vintermediary <init>Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)Vnamed <init>Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
-
-
Method Details
-
getForgingSlotsManager
- Specified by:
getForgingSlotsManagerin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official lLcjd;l()Lcje;intermediary method_48352Lnet/minecraft/class_4861;method_48352()Lnet/minecraft/class_8047;named getForgingSlotsManagerLnet/minecraft/screen/ForgingScreenHandler;getForgingSlotsManager()Lnet/minecraft/screen/slot/ForgingSlotsManager;
-
canUse
- Specified by:
canUsein classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official aLcjd;a(Ldjh;)Zintermediary method_24925Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Znamed canUseLnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Z
-
canTakeOutput
- Specified by:
canTakeOutputin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official aLcjd;a(Lcfi;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
- Specified by:
onTakeOutputin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official aLcjd;a(Lcfi;Lcmy;)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
-
updateResult
public void updateResult()- Specified by:
updateResultin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official mLcjd;m()Vintermediary method_24928Lnet/minecraft/class_4861;method_24928()Vnamed updateResultLnet/minecraft/screen/ForgingScreenHandler;updateResult()V
-
getNextCost
public static int getNextCost(int cost) - Mappings:
Namespace Name Mixin selector official eLcid;e(I)Iintermediary method_20398Lnet/minecraft/class_1706;method_20398(I)Inamed getNextCostLnet/minecraft/screen/AnvilScreenHandler;getNextCost(I)I
-
setNewItemName
- Mappings:
Namespace Name Mixin selector official aLcid;a(Ljava/lang/String;)Zintermediary method_7625Lnet/minecraft/class_1706;method_7625(Ljava/lang/String;)Znamed setNewItemNameLnet/minecraft/screen/AnvilScreenHandler;setNewItemName(Ljava/lang/String;)Z
-
sanitize
- Mappings:
Namespace Name Mixin selector official bLcid;b(Ljava/lang/String;)Ljava/lang/String;intermediary method_52176Lnet/minecraft/class_1706;method_52176(Ljava/lang/String;)Ljava/lang/String;named sanitizeLnet/minecraft/screen/AnvilScreenHandler;sanitize(Ljava/lang/String;)Ljava/lang/String;
-
getLevelCost
public int getLevelCost()- Mappings:
Namespace Name Mixin selector official nLcid;n()Iintermediary method_17369Lnet/minecraft/class_1706;method_17369()Inamed getLevelCostLnet/minecraft/screen/AnvilScreenHandler;getLevelCost()I
-