java.lang.Object
net.minecraftforge.client.model.generators.ModelFile
直接已知子类:
ModelBuilder, ModelFile.ExistingModelFile, ModelFile.UncheckedModelFile

@Deprecated(since="1.21.4", forRemoval=true) public abstract class ModelFile extends Object
已过时, 待删除: 此 API 元素将从以后的版本中删除。
Use Vanilla's providers ModelProvider
In 1.21.4 Mojang exposed their data generators for their models. So it should be feasible to just use theirs. If you find something lacking feel free to open a PR so that we can extend it.
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
    static class 
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Assert that this model exists.
    protected abstract boolean
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • location

      protected ResourceLocation location
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
  • 构造器详细资料

    • ModelFile

      protected ModelFile(ResourceLocation location)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
  • 方法详细资料

    • exists

      protected abstract boolean exists()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
    • getLocation

      public ResourceLocation getLocation()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
    • assertExistence

      public void assertExistence()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      Assert that this model exists.
      抛出:
      IllegalStateException - if this model does not exist
    • getUncheckedLocation

      public ResourceLocation getUncheckedLocation()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。