Class StorageInteractionWrapper
java.lang.Object
com.simibubi.create.foundation.blockEntity.ItemHandlerContainer
com.simibubi.create.api.contraption.storage.item.menu.StorageInteractionWrapper
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container
-
Field Summary
Fields inherited from class com.simibubi.create.foundation.blockEntity.ItemHandlerContainer
invFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
ConstructorsConstructorDescriptionStorageInteractionWrapper(net.neoforged.neoforge.items.IItemHandlerModifiable inv, Predicate<net.minecraft.world.entity.player.Player> stillValid, Consumer<net.minecraft.world.entity.player.Player> onClose) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstillValid(net.minecraft.world.entity.player.Player player) voidstopOpen(net.minecraft.world.entity.player.Player player) Methods inherited from class com.simibubi.create.foundation.blockEntity.ItemHandlerContainer
canPlaceItem, clearContent, getContainerSize, getItem, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, startOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf
-
Constructor Details
-
StorageInteractionWrapper
-
-
Method Details
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin interfacenet.minecraft.world.Container- Overrides:
stillValidin classItemHandlerContainer
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSizein interfacenet.minecraft.world.Container- Overrides:
getMaxStackSizein classItemHandlerContainer
-
stopOpen
public void stopOpen(net.minecraft.world.entity.player.Player player) - Specified by:
stopOpenin interfacenet.minecraft.world.Container- Overrides:
stopOpenin classItemHandlerContainer
-