Class StorageInteractionWrapper
java.lang.Object
com.simibubi.create.foundation.blockEntity.LegacyRecipeWrapper
com.simibubi.create.api.contraption.storage.item.menu.StorageInteractionWrapper
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.item.crafting.RecipeInput
-
Field Summary
Fields inherited from class com.simibubi.create.foundation.blockEntity.LegacyRecipeWrapper
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.LegacyRecipeWrapper
canPlaceItem, clearContent, getContainerSize, getItem, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, size, 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 classLegacyRecipeWrapper
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSizein interfacenet.minecraft.world.Container- Overrides:
getMaxStackSizein classLegacyRecipeWrapper
-
stopOpen
public void stopOpen(net.minecraft.world.entity.player.Player player) - Specified by:
stopOpenin interfacenet.minecraft.world.Container- Overrides:
stopOpenin classLegacyRecipeWrapper
-