Package net.minecraft.screen
Class AnvilScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
net.minecraft.screen.AnvilScreenHandler
- Mappings:
Namespace Name named net/minecraft/screen/AnvilScreenHandlerintermediary net/minecraft/class_1706official csc
-
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 booleanprivate 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, field_52557, field_52558, 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, addPlayerHotbarSlots, addPlayerInventorySlots, addPlayerSlots, 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, selectBundleStack, 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 named INPUT_1_IDLnet/minecraft/screen/AnvilScreenHandler;INPUT_1_ID:Iintermediary field_41898Lnet/minecraft/class_1706;field_41898:Iofficial mLcsc;m:I
-
INPUT_2_ID
public static final int INPUT_2_ID- See Also:
- Mappings:
Namespace Name Mixin selector named INPUT_2_IDLnet/minecraft/screen/AnvilScreenHandler;INPUT_2_ID:Iintermediary field_41899Lnet/minecraft/class_1706;field_41899:Iofficial nLcsc;n:I
-
OUTPUT_ID
public static final int OUTPUT_ID- See Also:
- Mappings:
Namespace Name Mixin selector named OUTPUT_IDLnet/minecraft/screen/AnvilScreenHandler;OUTPUT_ID:Iintermediary field_41900Lnet/minecraft/class_1706;field_41900:Iofficial oLcsc;o:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/screen/AnvilScreenHandler;LOGGER:Lorg/slf4j/Logger;intermediary field_7771Lnet/minecraft/class_1706;field_7771:Lorg/slf4j/Logger;official uLcsc;u:Lorg/slf4j/Logger;
-
field_30752
private static final boolean field_30752- See Also:
- Mappings:
Namespace Name Mixin selector named field_30752Lnet/minecraft/screen/AnvilScreenHandler;field_30752:Zintermediary field_30752Lnet/minecraft/class_1706;field_30752:Zofficial vLcsc;v:Z
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_NAME_LENGTHLnet/minecraft/screen/AnvilScreenHandler;MAX_NAME_LENGTH:Iintermediary field_30751Lnet/minecraft/class_1706;field_30751:Iofficial pLcsc;p:I
-
field_30753
private static final int field_30753- See Also:
- Mappings:
Namespace Name Mixin selector named field_30753Lnet/minecraft/screen/AnvilScreenHandler;field_30753:Iintermediary field_30753Lnet/minecraft/class_1706;field_30753:Iofficial ALcsc;A:I
-
field_30754
private static final int field_30754- See Also:
- Mappings:
Namespace Name Mixin selector named field_30754Lnet/minecraft/screen/AnvilScreenHandler;field_30754:Iintermediary field_30754Lnet/minecraft/class_1706;field_30754:Iofficial BLcsc;B:I
-
field_30755
private static final int field_30755- See Also:
- Mappings:
Namespace Name Mixin selector named field_30755Lnet/minecraft/screen/AnvilScreenHandler;field_30755:Iintermediary field_30755Lnet/minecraft/class_1706;field_30755:Iofficial CLcsc;C:I
-
field_30747
private static final int field_30747- See Also:
- Mappings:
Namespace Name Mixin selector named field_30747Lnet/minecraft/screen/AnvilScreenHandler;field_30747:Iintermediary field_30747Lnet/minecraft/class_1706;field_30747:Iofficial DLcsc;D:I
-
field_30748
private static final int field_30748- See Also:
- Mappings:
Namespace Name Mixin selector named field_30748Lnet/minecraft/screen/AnvilScreenHandler;field_30748:Iintermediary field_30748Lnet/minecraft/class_1706;field_30748:Iofficial ELcsc;E:I
-
field_30749
private static final int field_30749- See Also:
- Mappings:
Namespace Name Mixin selector named field_30749Lnet/minecraft/screen/AnvilScreenHandler;field_30749:Iintermediary field_30749Lnet/minecraft/class_1706;field_30749:Iofficial FLcsc;F:I
-
field_30750
private static final int field_30750- See Also:
- Mappings:
Namespace Name Mixin selector named field_30750Lnet/minecraft/screen/AnvilScreenHandler;field_30750:Iintermediary field_30750Lnet/minecraft/class_1706;field_30750:Iofficial GLcsc;G:I
-
INPUT_1_X
private static final int INPUT_1_X- See Also:
- Mappings:
Namespace Name Mixin selector named INPUT_1_XLnet/minecraft/screen/AnvilScreenHandler;INPUT_1_X:Iintermediary field_41894Lnet/minecraft/class_1706;field_41894:Iofficial HLcsc;H:I
-
INPUT_2_X
private static final int INPUT_2_X- See Also:
- Mappings:
Namespace Name Mixin selector named INPUT_2_XLnet/minecraft/screen/AnvilScreenHandler;INPUT_2_X:Iintermediary field_41895Lnet/minecraft/class_1706;field_41895:Iofficial ILcsc;I:I
-
OUTPUT_X
private static final int OUTPUT_X- See Also:
- Mappings:
Namespace Name Mixin selector named OUTPUT_XLnet/minecraft/screen/AnvilScreenHandler;OUTPUT_X:Iintermediary field_41896Lnet/minecraft/class_1706;field_41896:Iofficial JLcsc;J:I
-
SLOT_Y
private static final int SLOT_Y- See Also:
- Mappings:
Namespace Name Mixin selector named SLOT_YLnet/minecraft/screen/AnvilScreenHandler;SLOT_Y:Iintermediary field_41897Lnet/minecraft/class_1706;field_41897:Iofficial KLcsc;K:I
-
repairItemUsage
private int repairItemUsage- Mappings:
Namespace Name Mixin selector named repairItemUsageLnet/minecraft/screen/AnvilScreenHandler;repairItemUsage:Iintermediary field_7776Lnet/minecraft/class_1706;field_7776:Iofficial wLcsc;w:I
-
newItemName
- Mappings:
Namespace Name Mixin selector named newItemNameLnet/minecraft/screen/AnvilScreenHandler;newItemName:Ljava/lang/String;intermediary field_7774Lnet/minecraft/class_1706;field_7774:Ljava/lang/String;official xLcsc;x:Ljava/lang/String;
-
levelCost
- Mappings:
Namespace Name Mixin selector named levelCostLnet/minecraft/screen/AnvilScreenHandler;levelCost:Lnet/minecraft/screen/Property;intermediary field_7770Lnet/minecraft/class_1706;field_7770:Lnet/minecraft/class_3915;official yLcsc;y:Lcst;
-
keepSecondSlot
private boolean keepSecondSlot- Mappings:
Namespace Name Mixin selector named keepSecondSlotLnet/minecraft/screen/AnvilScreenHandler;keepSecondSlot:Zintermediary field_52566Lnet/minecraft/class_1706;field_52566:Zofficial zLcsc;z:Z
-
-
Constructor Details
-
AnvilScreenHandler
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)Vintermediary <init>Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;)Vofficial <init>Lcsc;<init>(ILcot;)V
-
AnvilScreenHandler
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)Vintermediary <init>Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)Vofficial <init>Lcsc;<init>(ILcot;Lcsm;)V
-
-
Method Details
-
getForgingSlotsManager
- Specified by:
getForgingSlotsManagerin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named getForgingSlotsManagerLnet/minecraft/screen/ForgingScreenHandler;getForgingSlotsManager()Lnet/minecraft/screen/slot/ForgingSlotsManager;intermediary method_48352Lnet/minecraft/class_4861;method_48352()Lnet/minecraft/class_8047;official lLctd;l()Lcte;
-
canUse
- Specified by:
canUsein classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named canUseLnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Zintermediary method_24925Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Zofficial aLctd;a(Ldvv;)Z
-
canTakeOutput
- Specified by:
canTakeOutputin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named canTakeOutputLnet/minecraft/screen/ForgingScreenHandler;canTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Z)Zintermediary method_24927Lnet/minecraft/class_4861;method_24927(Lnet/minecraft/class_1657;Z)Zofficial aLctd;a(Lcou;Z)Z
-
onTakeOutput
- Specified by:
onTakeOutputin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named onTakeOutputLnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_24923Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vofficial aLctd;a(Lcou;Lcwm;)V
-
updateResult
public void updateResult()- Specified by:
updateResultin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named updateResultLnet/minecraft/screen/ForgingScreenHandler;updateResult()Vintermediary method_24928Lnet/minecraft/class_4861;method_24928()Vofficial mLctd;m()V
-
getNextCost
public static int getNextCost(int cost) - Mappings:
Namespace Name Mixin selector named getNextCostLnet/minecraft/screen/AnvilScreenHandler;getNextCost(I)Iintermediary method_20398Lnet/minecraft/class_1706;method_20398(I)Iofficial eLcsc;e(I)I
-
setNewItemName
- Mappings:
Namespace Name Mixin selector named setNewItemNameLnet/minecraft/screen/AnvilScreenHandler;setNewItemName(Ljava/lang/String;)Zintermediary method_7625Lnet/minecraft/class_1706;method_7625(Ljava/lang/String;)Zofficial aLcsc;a(Ljava/lang/String;)Z
-
sanitize
- Mappings:
Namespace Name Mixin selector named sanitizeLnet/minecraft/screen/AnvilScreenHandler;sanitize(Ljava/lang/String;)Ljava/lang/String;intermediary method_52176Lnet/minecraft/class_1706;method_52176(Ljava/lang/String;)Ljava/lang/String;official bLcsc;b(Ljava/lang/String;)Ljava/lang/String;
-
getLevelCost
public int getLevelCost()- Mappings:
Namespace Name Mixin selector named getLevelCostLnet/minecraft/screen/AnvilScreenHandler;getLevelCost()Iintermediary method_17369Lnet/minecraft/class_1706;method_17369()Iofficial nLcsc;n()I
-