Class BoneTagRegistry

java.lang.Object
kr.toxicity.model.api.bone.BoneTagRegistry

public final class BoneTagRegistry extends Object
Bone tag registry
  • Method Details

    • addTag

      public void addTag(@NotNull @NotNull BoneTag tag)
      Adds some tag to this registry
      Parameters:
      tag - tag
    • byTagName

      @NotNull public @NotNull Optional<BoneTag> byTagName(@NotNull @NotNull String tag)
      Gets a bone tag by its name wrapped in an Optional.
      Parameters:
      tag - tag name
      Returns:
      bone tag
      Since:
      1.15.2
    • byTagNameOrNull

      @Nullable public @Nullable BoneTag byTagNameOrNull(@NotNull @NotNull String tag)
      Gets a bone tag by its name.
      Parameters:
      tag - tag name
      Returns:
      bone tag or null
      Since:
      2.1.0
    • parse

      @NotNull public @NotNull BoneName parse(@NotNull @NotNull String rawName)
      Parses bone name by raw group name
      Parameters:
      rawName - raw name
      Returns:
      bone name