Enum Class DefaultUnpackingHandler

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

public enum DefaultUnpackingHandler extends Enum<DefaultUnpackingHandler> implements UnpackingHandler
  • Enum Constant Details

  • Method Details

    • values

      public static DefaultUnpackingHandler[] 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 DefaultUnpackingHandler 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 PackageOrderWithCrafts orderContext, 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
      orderContext - the order context, if present
      simulate - true if the unpacking should only be simulated
      Returns:
      true if all items have been unpacked successfully