Enum InstanceTemplates

    • Method Detail

      • values

        public static InstanceTemplates[] 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 (InstanceTemplates c : InstanceTemplates.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InstanceTemplates valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • findMatch

        public static InstanceTemplates findMatch​(int chunkData)
        Matches chunk data of an instance to the instance it belongs.
        Parameters:
        chunkData - the chunk data
        Returns:
        the instance the chunk is in
      • getBaseX

        public int getBaseX()
        The base x-axis coordinate of the instance area.
      • getBaseY

        public int getBaseY()
        The base y-axis coordinate of the instance area.
      • getPlane

        public int getPlane()
        The plane the instance is on.
      • getWidth

        public int getWidth()
        The width of the instance area.
      • getHeight

        public int getHeight()
        The height of the instance area.