Enum MapCursor.Type

  • All Implemented Interfaces:
    Serializable, Comparable<MapCursor.Type>
    Enclosing class:
    MapCursor

    public static enum MapCursor.Type
    extends Enum<MapCursor.Type>
    Represents the standard types of map cursors. More may be made available by resource packs - the value is used by the client as an index in the file './misc/mapicons.png' from minecraft.jar or from a resource pack.
    • Method Detail

      • values

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

        public static MapCursor.Type 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
      • getValue

        @Deprecated
        public byte getValue()
        Deprecated.
        Magic value
        Returns:
        the value
      • byValue

        @Deprecated
        @Nullable
        public static MapCursor.Type byValue​(byte value)
        Deprecated.
        Magic value
        Parameters:
        value - the value
        Returns:
        the matching type