Enum Class B3DLoader

java.lang.Object
java.lang.Enum<B3DLoader>
net.minecraftforge.client.model.b3d.B3DLoader
All Implemented Interfaces:
Serializable, Comparable<B3DLoader>, Constable, IFutureReloadListener, IResourceManagerReloadListener, ISelectiveResourceReloadListener

public enum B3DLoader extends Enum<B3DLoader> implements ISelectiveResourceReloadListener
  • Enum Constant Details

    • INSTANCE

      public static final B3DLoader INSTANCE
  • Field Details

  • Constructor Details

    • B3DLoader

      private B3DLoader()
  • Method Details

    • values

      public static B3DLoader[] 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 B3DLoader 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
    • onResourceManagerReload

      public void onResourceManagerReload(IResourceManager manager, Predicate<IResourceType> resourcePredicate)
      Description copied from interface: ISelectiveResourceReloadListener
      A version of onResourceManager that selectively chooses IResourceTypes to reload. When using this, the given predicate should be called to ensure the relevant resources should be reloaded at this time.
      Specified by:
      onResourceManagerReload in interface ISelectiveResourceReloadListener
      Parameters:
      manager - the resource manager being reloaded
      resourcePredicate - predicate to test whether any given resource type should be reloaded
    • loadModel

      public IUnbakedModel loadModel(ResourceLocation modelLocation) throws Exception
      Throws:
      Exception