Class UpgradeContainer
java.lang.Object
net.minecraft.world.SimpleContainer
com.refinedmods.refinedstorage.common.upgrade.UpgradeContainer
- All Implemented Interfaces:
UpgradeState
,net.minecraft.world.Clearable
,net.minecraft.world.Container
,net.minecraft.world.inventory.StackedContentsCompatible
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
Constructor Summary
ConstructorDescriptionUpgradeContainer
(UpgradeDestination destination, UpgradeRegistry registry) UpgradeContainer
(UpgradeDestination destination, UpgradeRegistry registry, Runnable listener) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addUpgradeItem
(net.minecraft.world.item.Item upgradeItem) boolean
canPlaceItem
(int slot, net.minecraft.world.item.ItemStack stack) int
getAmount
(UpgradeItem upgradeItem) long
int
getRegulatedAmount
(ResourceKey resource) List
<net.minecraft.world.item.Item> Methods inherited from class net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setChanged, setItem, stillValid, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
Methods inherited from interface com.refinedmods.refinedstorage.common.api.upgrade.UpgradeState
has
-
Constructor Details
-
UpgradeContainer
-
UpgradeContainer
public UpgradeContainer(UpgradeDestination destination, UpgradeRegistry registry, Runnable listener)
-
-
Method Details
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfacenet.minecraft.world.Container
-
canPlaceItem
public boolean canPlaceItem(int slot, net.minecraft.world.item.ItemStack stack) - Specified by:
canPlaceItem
in interfacenet.minecraft.world.Container
-
getAllowedUpgrades
-
getRegulatedAmount
-
getAmount
- Specified by:
getAmount
in interfaceUpgradeState
-
getEnergyUsage
public long getEnergyUsage() -
getUpgradeItems
-
addUpgradeItem
public boolean addUpgradeItem(net.minecraft.world.item.Item upgradeItem)
-