Enum Class VoidingUnpackingHandler

java.lang.Object
java.lang.Enum<VoidingUnpackingHandler>
com.simibubi.create.api.packager.unpacking.VoidingUnpackingHandler
All Implemented Interfaces:
UnpackingHandler, Serializable, Comparable<VoidingUnpackingHandler>, Constable

public enum VoidingUnpackingHandler extends Enum<VoidingUnpackingHandler> implements UnpackingHandler
An UnpackingHandler that voids inserted items.
  • Enum Constant Details

  • Method Details

    • values

      public static VoidingUnpackingHandler[] 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

      public static VoidingUnpackingHandler valueOf(String name)
      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 name
      NullPointerException - 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: UnpackingHandler
      Unpack the given items into storage.
      Specified by:
      unpack in interface UnpackingHandler
      Parameters:
      items - the list of non-empty item stacks to unpack. May be freely modified
      order - the order context, if present
      simulate - true if the unpacking should only be simulated
      Returns:
      true if all items have been unpacked successfully