Enum Class ResourceType

java.lang.Object
java.lang.Enum<ResourceType>
com.hrznstudio.titanium.material.ResourceType
All Implemented Interfaces:
IResourceType, Serializable, Comparable<ResourceType>, Constable, net.minecraft.util.StringRepresentable

public enum ResourceType extends Enum<ResourceType> implements IResourceType, net.minecraft.util.StringRepresentable
  • Enum Constant Details

  • Method Details

    • values

      public static ResourceType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResourceType valueOf​(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getTag

      public String getTag()
      Specified by:
      getTag in interface IResourceType
    • getInstanceFactory

      public IFactory<net.minecraftforge.registries.ForgeRegistryEntry> getInstanceFactory​(ResourceMaterial material, @Nullable ResourceTypeProperties properties)
      Specified by:
      getInstanceFactory in interface IResourceType
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable