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/AnvilScreenHandler
intermediary net/minecraft/class_1706
official cte
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final boolean
private static final int
private static final int
private static final int
static final int
private static final int
static final int
private static final int
private boolean
private final Property
private static final Logger
static final int
static final int
private static final int
private int
private static final int
Fields inherited from class net.minecraft.screen.ForgingScreenHandler
context, input, output, player
Fields 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
ConstructorDescriptionAnvilScreenHandler
(int syncId, PlayerInventory inventory) AnvilScreenHandler
(int syncId, PlayerInventory inventory, ScreenHandlerContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canTakeOutput
(PlayerEntity player, boolean present) protected boolean
canUse
(BlockState state) private static ForgingSlotsManager
int
static int
getNextCost
(int cost) protected void
onTakeOutput
(PlayerEntity player, ItemStack stack) boolean
setNewItemName
(String newItemName) void
Methods inherited from class net.minecraft.screen.ForgingScreenHandler
canUse, getResultSlotIndex, isValidIngredient, onClosed, onContentChanged, quickMove
Methods 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_ID
Lnet/minecraft/screen/AnvilScreenHandler;INPUT_1_ID:I
intermediary field_41898
Lnet/minecraft/class_1706;field_41898:I
official m
Lcte;m:I
-
INPUT_2_ID
public static final int INPUT_2_ID- See Also:
- Mappings:
Namespace Name Mixin selector named INPUT_2_ID
Lnet/minecraft/screen/AnvilScreenHandler;INPUT_2_ID:I
intermediary field_41899
Lnet/minecraft/class_1706;field_41899:I
official n
Lcte;n:I
-
OUTPUT_ID
public static final int OUTPUT_ID- See Also:
- Mappings:
Namespace Name Mixin selector named OUTPUT_ID
Lnet/minecraft/screen/AnvilScreenHandler;OUTPUT_ID:I
intermediary field_41900
Lnet/minecraft/class_1706;field_41900:I
official o
Lcte;o:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/screen/AnvilScreenHandler;LOGGER:Lorg/slf4j/Logger;
intermediary field_7771
Lnet/minecraft/class_1706;field_7771:Lorg/slf4j/Logger;
official u
Lcte;u:Lorg/slf4j/Logger;
-
field_30752
private static final boolean field_30752- See Also:
- Mappings:
Namespace Name Mixin selector named field_30752
Lnet/minecraft/screen/AnvilScreenHandler;field_30752:Z
intermediary field_30752
Lnet/minecraft/class_1706;field_30752:Z
official v
Lcte;v:Z
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_NAME_LENGTH
Lnet/minecraft/screen/AnvilScreenHandler;MAX_NAME_LENGTH:I
intermediary field_30751
Lnet/minecraft/class_1706;field_30751:I
official p
Lcte;p:I
-
field_30753
private static final int field_30753- See Also:
- Mappings:
Namespace Name Mixin selector named field_30753
Lnet/minecraft/screen/AnvilScreenHandler;field_30753:I
intermediary field_30753
Lnet/minecraft/class_1706;field_30753:I
official A
Lcte;A:I
-
field_30754
private static final int field_30754- See Also:
- Mappings:
Namespace Name Mixin selector named field_30754
Lnet/minecraft/screen/AnvilScreenHandler;field_30754:I
intermediary field_30754
Lnet/minecraft/class_1706;field_30754:I
official B
Lcte;B:I
-
field_30755
private static final int field_30755- See Also:
- Mappings:
Namespace Name Mixin selector named field_30755
Lnet/minecraft/screen/AnvilScreenHandler;field_30755:I
intermediary field_30755
Lnet/minecraft/class_1706;field_30755:I
official C
Lcte;C:I
-
field_30747
private static final int field_30747- See Also:
- Mappings:
Namespace Name Mixin selector named field_30747
Lnet/minecraft/screen/AnvilScreenHandler;field_30747:I
intermediary field_30747
Lnet/minecraft/class_1706;field_30747:I
official D
Lcte;D:I
-
field_30748
private static final int field_30748- See Also:
- Mappings:
Namespace Name Mixin selector named field_30748
Lnet/minecraft/screen/AnvilScreenHandler;field_30748:I
intermediary field_30748
Lnet/minecraft/class_1706;field_30748:I
official E
Lcte;E:I
-
field_30749
private static final int field_30749- See Also:
- Mappings:
Namespace Name Mixin selector named field_30749
Lnet/minecraft/screen/AnvilScreenHandler;field_30749:I
intermediary field_30749
Lnet/minecraft/class_1706;field_30749:I
official F
Lcte;F:I
-
field_30750
private static final int field_30750- See Also:
- Mappings:
Namespace Name Mixin selector named field_30750
Lnet/minecraft/screen/AnvilScreenHandler;field_30750:I
intermediary field_30750
Lnet/minecraft/class_1706;field_30750:I
official G
Lcte;G:I
-
INPUT_1_X
private static final int INPUT_1_X- See Also:
- Mappings:
Namespace Name Mixin selector named INPUT_1_X
Lnet/minecraft/screen/AnvilScreenHandler;INPUT_1_X:I
intermediary field_41894
Lnet/minecraft/class_1706;field_41894:I
official H
Lcte;H:I
-
INPUT_2_X
private static final int INPUT_2_X- See Also:
- Mappings:
Namespace Name Mixin selector named INPUT_2_X
Lnet/minecraft/screen/AnvilScreenHandler;INPUT_2_X:I
intermediary field_41895
Lnet/minecraft/class_1706;field_41895:I
official I
Lcte;I:I
-
OUTPUT_X
private static final int OUTPUT_X- See Also:
- Mappings:
Namespace Name Mixin selector named OUTPUT_X
Lnet/minecraft/screen/AnvilScreenHandler;OUTPUT_X:I
intermediary field_41896
Lnet/minecraft/class_1706;field_41896:I
official J
Lcte;J:I
-
SLOT_Y
private static final int SLOT_Y- See Also:
- Mappings:
Namespace Name Mixin selector named SLOT_Y
Lnet/minecraft/screen/AnvilScreenHandler;SLOT_Y:I
intermediary field_41897
Lnet/minecraft/class_1706;field_41897:I
official K
Lcte;K:I
-
repairItemUsage
private int repairItemUsage- Mappings:
Namespace Name Mixin selector named repairItemUsage
Lnet/minecraft/screen/AnvilScreenHandler;repairItemUsage:I
intermediary field_7776
Lnet/minecraft/class_1706;field_7776:I
official w
Lcte;w:I
-
newItemName
- Mappings:
Namespace Name Mixin selector named newItemName
Lnet/minecraft/screen/AnvilScreenHandler;newItemName:Ljava/lang/String;
intermediary field_7774
Lnet/minecraft/class_1706;field_7774:Ljava/lang/String;
official x
Lcte;x:Ljava/lang/String;
-
levelCost
- Mappings:
Namespace Name Mixin selector named levelCost
Lnet/minecraft/screen/AnvilScreenHandler;levelCost:Lnet/minecraft/screen/Property;
intermediary field_7770
Lnet/minecraft/class_1706;field_7770:Lnet/minecraft/class_3915;
official y
Lcte;y:Lctv;
-
keepSecondSlot
private boolean keepSecondSlot- Mappings:
Namespace Name Mixin selector named keepSecondSlot
Lnet/minecraft/screen/AnvilScreenHandler;keepSecondSlot:Z
intermediary field_52566
Lnet/minecraft/class_1706;field_52566:Z
official z
Lcte;z:Z
-
-
Constructor Details
-
AnvilScreenHandler
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
intermediary <init>
Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;)V
official <init>
Lcte;<init>(ILcpv;)V
-
AnvilScreenHandler
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
intermediary <init>
Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V
official <init>
Lcte;<init>(ILcpv;Lcto;)V
-
-
Method Details
-
getForgingSlotsManager
- Mappings:
Namespace Name Mixin selector named getForgingSlotsManager
Lnet/minecraft/screen/AnvilScreenHandler;getForgingSlotsManager()Lnet/minecraft/screen/slot/ForgingSlotsManager;
intermediary method_48352
Lnet/minecraft/class_1706;method_48352()Lnet/minecraft/class_8047;
official o
Lcte;o()Lcug;
-
canUse
- Specified by:
canUse
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named canUse
Lnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Z
intermediary method_24925
Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Z
official a
Lcuf;a(Ldxu;)Z
-
canTakeOutput
- Overrides:
canTakeOutput
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named canTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;canTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Z)Z
intermediary method_24927
Lnet/minecraft/class_4861;method_24927(Lnet/minecraft/class_1657;Z)Z
official a
Lcuf;a(Lcpw;Z)Z
-
onTakeOutput
- Specified by:
onTakeOutput
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named onTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
intermediary method_24923
Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
official a
Lcuf;a(Lcpw;Lcxo;)V
-
updateResult
public void updateResult()- Specified by:
updateResult
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named updateResult
Lnet/minecraft/screen/ForgingScreenHandler;updateResult()V
intermediary method_24928
Lnet/minecraft/class_4861;method_24928()V
official l
Lcuf;l()V
-
getNextCost
public static int getNextCost(int cost) - Mappings:
Namespace Name Mixin selector named getNextCost
Lnet/minecraft/screen/AnvilScreenHandler;getNextCost(I)I
intermediary method_20398
Lnet/minecraft/class_1706;method_20398(I)I
official e
Lcte;e(I)I
-
setNewItemName
- Mappings:
Namespace Name Mixin selector named setNewItemName
Lnet/minecraft/screen/AnvilScreenHandler;setNewItemName(Ljava/lang/String;)Z
intermediary method_7625
Lnet/minecraft/class_1706;method_7625(Ljava/lang/String;)Z
official a
Lcte;a(Ljava/lang/String;)Z
-
sanitize
- Mappings:
Namespace Name Mixin selector named sanitize
Lnet/minecraft/screen/AnvilScreenHandler;sanitize(Ljava/lang/String;)Ljava/lang/String;
intermediary method_52176
Lnet/minecraft/class_1706;method_52176(Ljava/lang/String;)Ljava/lang/String;
official b
Lcte;b(Ljava/lang/String;)Ljava/lang/String;
-
getLevelCost
public int getLevelCost()- Mappings:
Namespace Name Mixin selector named getLevelCost
Lnet/minecraft/screen/AnvilScreenHandler;getLevelCost()I
intermediary method_17369
Lnet/minecraft/class_1706;method_17369()I
official m
Lcte;m()I
-