Interface MapCursor.Type

All Superinterfaces:
Comparable<MapCursor.Type>, net.kyori.adventure.key.Keyed, Keyed, OldEnum<MapCursor.Type>
Enclosing class:
MapCursor

public static interface MapCursor.Type extends OldEnum<MapCursor.Type>, Keyed
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 './assets/minecraft/textures/map/map_icons.png' from minecraft.jar or from a resource pack.
Since:
1.0.0
  • Field Details

  • Method Details

    • getValue

      @Internal byte getValue()
      Gets the internal value of the cursor.
      Returns:
      the value
      API Note:
      Internal Use Only
    • byValue

      @Internal @Nullable static @Nullable MapCursor.Type byValue(byte value)
      Get a cursor by its internal value.
      Parameters:
      value - the value
      Returns:
      the matching type
      API Note:
      Internal Use Only
    • valueOf

      @NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull MapCursor.Type valueOf(@NotNull @NotNull String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      only for backwards compatibility, use Registry.get(NamespacedKey) instead.
      Parameters:
      name - of the type.
      Returns:
      the type with the given name.
    • values

      @NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull MapCursor.Type[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      an array of all known map cursor types.