Package adris.altoclef.trackers.storage
Class ContainerCache
java.lang.Object
adris.altoclef.trackers.storage.ContainerCache
-
Constructor Summary
ConstructorDescriptionContainerCache
(Dimension dimension, net.minecraft.util.math.BlockPos blockPos, ContainerType containerType) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.math.BlockPos
int
int
getItemCount
(net.minecraft.item.Item... items) boolean
hasItem
(net.minecraft.item.Item... items) boolean
isFull()
void
update
(net.minecraft.screen.ScreenHandler screenHandler, Consumer<net.minecraft.item.ItemStack> onStack)
-
Constructor Details
-
ContainerCache
public ContainerCache(Dimension dimension, net.minecraft.util.math.BlockPos blockPos, ContainerType containerType)
-
-
Method Details
-
update
public void update(net.minecraft.screen.ScreenHandler screenHandler, Consumer<net.minecraft.item.ItemStack> onStack) -
getItemCount
public int getItemCount(net.minecraft.item.Item... items) -
hasItem
public boolean hasItem(net.minecraft.item.Item... items) -
getEmptySlotCount
public int getEmptySlotCount() -
isFull
public boolean isFull() -
getBlockPos
public net.minecraft.util.math.BlockPos getBlockPos() -
getContainerType
-
getDimension
-