Class ComposedModelState

java.lang.Object
net.neoforged.neoforge.client.model.ComposedModelState
All Implemented Interfaces:
net.minecraft.client.resources.model.ModelState

public final class ComposedModelState extends Object implements net.minecraft.client.resources.model.ModelState
Implementation of ModelState which prepends an additional transform onto the incoming ModelState.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final net.minecraft.client.resources.model.ModelState
     
    private final com.mojang.math.Transformation
     

    Fields inherited from interface net.minecraft.client.resources.model.ModelState

    NO_TRANSFORM
  • Constructor Summary

    Constructors
    Constructor
    Description
    ComposedModelState(net.minecraft.client.resources.model.ModelState parent, com.mojang.math.Transformation transformation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Matrix4fc
    faceTransformation(net.minecraft.core.Direction side)
     
    org.joml.Matrix4fc
    inverseFaceTransformation(net.minecraft.core.Direction side)
     
    com.mojang.math.Transformation
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • parent

      private final net.minecraft.client.resources.model.ModelState parent
    • transformation

      private final com.mojang.math.Transformation transformation
  • Constructor Details

    • ComposedModelState

      public ComposedModelState(net.minecraft.client.resources.model.ModelState parent, com.mojang.math.Transformation transformation)
  • Method Details

    • transformation

      public com.mojang.math.Transformation transformation()
      Specified by:
      transformation in interface net.minecraft.client.resources.model.ModelState
    • faceTransformation

      public org.joml.Matrix4fc faceTransformation(net.minecraft.core.Direction side)
      Specified by:
      faceTransformation in interface net.minecraft.client.resources.model.ModelState
    • inverseFaceTransformation

      public org.joml.Matrix4fc inverseFaceTransformation(net.minecraft.core.Direction side)
      Specified by:
      inverseFaceTransformation in interface net.minecraft.client.resources.model.ModelState