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) UpgradeContainer
(UpgradeDestination destination, UpgradeContainerListener listener) UpgradeContainer
(UpgradeDestination destination, UpgradeContainerListener listener, int defaultWorkTickRate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addUpgrade
(net.minecraft.world.item.ItemStack upgrade) boolean
canPlaceItem
(int slot, net.minecraft.world.item.ItemStack stack) int
getAmount
(UpgradeItem upgradeItem) net.minecraft.core.NonNullList
<net.minecraft.world.item.ItemStack> getDrops()
long
int
getRegulatedAmount
(ResourceKey resource) List
<net.minecraft.world.item.ItemStack> 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, @Nullable UpgradeContainerListener listener) -
UpgradeContainer
public UpgradeContainer(UpgradeDestination destination, @Nullable UpgradeContainerListener listener, int defaultWorkTickRate)
-
-
Method Details
-
getTicker
-
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() -
getUpgrades
-
addUpgrade
public boolean addUpgrade(net.minecraft.world.item.ItemStack upgrade) -
getDrops
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getDrops()
-