Enum Class BasinUnpackingHandler
- All Implemented Interfaces:
UnpackingHandler,Serializable,Comparable<BasinUnpackingHandler>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface com.simibubi.create.api.packager.unpacking.UnpackingHandler
DEFAULT, REGISTRY -
Method Summary
Modifier and TypeMethodDescriptionbooleanunpack(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, List<net.minecraft.world.item.ItemStack> items, @Nullable PackageOrder order, boolean simulate) Unpack the given items into storage.static BasinUnpackingHandlerReturns the enum constant of this class with the specified name.static BasinUnpackingHandler[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
unpack
public boolean unpack(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, List<net.minecraft.world.item.ItemStack> items, @Nullable @Nullable PackageOrder order, boolean simulate) Description copied from interface:UnpackingHandlerUnpack the given items into storage.- Specified by:
unpackin interfaceUnpackingHandler- Parameters:
items- the list of non-empty item stacks to unpack. May be freely modifiedorder- the order context, if presentsimulate- true if the unpacking should only be simulated- Returns:
- true if all items have been unpacked successfully
-