Class ObjModel.SubModelSettings

java.lang.Object
de.mrjulsen.mcdragonlib.neoforge.client.model.loaders.ObjModel.SubModelSettings
Enclosing class:
ObjModel

public static class ObjModel.SubModelSettings extends Object
Settings that describe how a sub-model should be positioned/rotated relative to the parent model. Stored on ModelGroup/ModelObject/ModelMesh instances that originate from sub-models.
  • Constructor Details

    • SubModelSettings

      public SubModelSettings()
    • SubModelSettings

      public SubModelSettings(String model, float[] offset, float[] rotation, boolean centered, boolean inheritable)
  • Method Details

    • model

      public String model()
    • x

      public float x()
    • y

      public float y()
    • z

      public float z()
    • rotX

      public float rotX()
    • rotY

      public float rotY()
    • rotZ

      public float rotZ()
    • centered

      public boolean centered()
    • inheritable

      public boolean inheritable()
    • isJson

      public boolean isJson()
    • combineWith

      public ObjModel.SubModelSettings combineWith(@Nullable @Nullable ObjModel.SubModelSettings other)
      Returns a new SubModelSettings that adds this settings' transform on top of other.