Enum IStructureElement.PlaceResult

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACCEPT
      Element placed successfully.
      ACCEPT_STOP
      Combination of ACCEPT and STOP.
      REJECT
      The element cannot handle this position (occupied, missing resources, etc.).
      REJECT_CONTINUE
      This element has no survivalPlaceBlock implementation (default fallback), or otherwise cannot place but is not an error condition.
      SKIP
      The element's check passed, the position is already valid.
      STOP
      Autoplace cannot proceed within this tick.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IStructureElement.PlaceResult valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static IStructureElement.PlaceResult[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SKIP

        public static final IStructureElement.PlaceResult SKIP
        The element's check passed, the position is already valid. No placement is needed. In the walker: continue iteration (no error, not counted as placed). In ofChain: short-circuits, remaining alternatives are skipped.
      • REJECT

        public static final IStructureElement.PlaceResult REJECT
        The element cannot handle this position (occupied, missing resources, etc.). In the walker: stop iteration with error particles. In ofChain: try next alternative.
      • REJECT_CONTINUE

        public static final IStructureElement.PlaceResult REJECT_CONTINUE
        This element has no survivalPlaceBlock implementation (default fallback), or otherwise cannot place but is not an error condition. In the walker: continue iteration silently (like SKIP). In ofChain: try next alternative (like REJECT), so a better-suited element can handle it.
      • STOP

        public static final IStructureElement.PlaceResult STOP
        Autoplace cannot proceed within this tick. To proceed further would require stopping the placement and wait for next round.
      • ACCEPT_STOP

        public static final IStructureElement.PlaceResult ACCEPT_STOP
        Combination of ACCEPT and STOP.

        Element placed successfully. To proceed further would require stopping the placement and wait for next round.

    • Method Detail

      • values

        public static IStructureElement.PlaceResult[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IStructureElement.PlaceResult c : IStructureElement.PlaceResult.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IStructureElement.PlaceResult valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null