Class RepairContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.AbstractRepairContainer
-
- net.minecraft.inventory.container.RepairContainer
-
public class RepairContainer extends AbstractRepairContainer
-
-
Field Summary
Fields Modifier and Type Field Description private IntReferenceHolder
cost
private java.lang.String
itemName
private static org.apache.logging.log4j.Logger
LOGGER
int
repairItemCountCost
-
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
Constructors Constructor Description RepairContainer(int p_i50101_1_, PlayerInventory p_i50101_2_)
RepairContainer(int p_i50102_1_, PlayerInventory p_i50102_2_, IWorldPosCallable p_i50102_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
calculateIncreasedRepairCost(int p_216977_0_)
void
createResult()
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(java.lang.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
repairItemCountCost
public int repairItemCountCost
-
itemName
private java.lang.String itemName
-
cost
private final IntReferenceHolder cost
-
-
Constructor Detail
-
RepairContainer
public RepairContainer(int p_i50101_1_, PlayerInventory p_i50101_2_)
-
RepairContainer
public RepairContainer(int p_i50102_1_, PlayerInventory p_i50102_2_, IWorldPosCallable p_i50102_3_)
-
-
Method Detail
-
isValidBlock
protected boolean isValidBlock(BlockState p_230302_1_)
- Specified by:
isValidBlock
in classAbstractRepairContainer
-
mayPickup
protected boolean mayPickup(PlayerEntity p_230303_1_, boolean p_230303_2_)
- Specified by:
mayPickup
in classAbstractRepairContainer
-
onTake
protected ItemStack onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_)
- Specified by:
onTake
in classAbstractRepairContainer
-
createResult
public void createResult()
- Specified by:
createResult
in classAbstractRepairContainer
-
calculateIncreasedRepairCost
public static int calculateIncreasedRepairCost(int p_216977_0_)
-
setItemName
public void setItemName(java.lang.String p_82850_1_)
-
getCost
public int getCost()
-
setMaximumCost
public void setMaximumCost(int value)
-
-