Class RepairContainer
java.lang.Object
net.minecraft.inventory.container.Container
net.minecraft.inventory.container.AbstractRepairContainer
net.minecraft.inventory.container.RepairContainer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final IntReferenceHolder
private String
private static final org.apache.logging.log4j.Logger
int
Fields inherited from class net.minecraft.inventory.container.AbstractRepairContainer
access, inputSlots, player, resultSlots
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
Constructor Summary
ConstructorDescriptionRepairContainer
(int p_i50101_1_, PlayerInventory p_i50101_2_) RepairContainer
(int p_i50102_1_, PlayerInventory p_i50102_2_, IWorldPosCallable p_i50102_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
calculateIncreasedRepairCost
(int p_216977_0_) void
int
getCost()
protected boolean
isValidBlock
(BlockState p_230302_1_) protected boolean
mayPickup
(PlayerEntity p_230303_1_, boolean p_230303_2_) protected ItemStack
onTake
(PlayerEntity p_230301_1_, ItemStack p_230301_2_) void
setItemName
(String p_82850_1_) void
setMaximumCost
(int value) Methods inherited from class net.minecraft.inventory.container.AbstractRepairContainer
quickMoveStack, removed, shouldQuickMoveToAdditionalSlot, slotsChanged, stillValid
Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, stillValid
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
repairItemCountCost
public int repairItemCountCost -
itemName
-
cost
-
-
Constructor Details
-
RepairContainer
-
RepairContainer
-
-
Method Details
-
isValidBlock
- Specified by:
isValidBlock
in classAbstractRepairContainer
-
mayPickup
- Specified by:
mayPickup
in classAbstractRepairContainer
-
onTake
- Specified by:
onTake
in classAbstractRepairContainer
-
createResult
public void createResult()- Specified by:
createResult
in classAbstractRepairContainer
-
calculateIncreasedRepairCost
public static int calculateIncreasedRepairCost(int p_216977_0_) -
setItemName
-
getCost
public int getCost() -
setMaximumCost
public void setMaximumCost(int value)
-