Class SimpleModelState

java.lang.Object
io.github.vampirestudios.vampirelib.client.model.SimpleModelState
All Implemented Interfaces:
ModelStateExtensions, net.minecraft.client.resources.model.ModelState

public final class SimpleModelState extends Object implements net.minecraft.client.resources.model.ModelState, ModelStateExtensions
Simple implementation of IModelState via a map and a default value.
  • Field Details

  • Constructor Details

    • SimpleModelState

      public SimpleModelState(com.google.common.collect.ImmutableMap<?,com.mojang.math.Transformation> map)
    • SimpleModelState

      public SimpleModelState(com.mojang.math.Transformation base)
    • SimpleModelState

      public SimpleModelState(com.google.common.collect.ImmutableMap<?,com.mojang.math.Transformation> map, com.mojang.math.Transformation base)
  • Method Details

    • getRotation

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

      public com.mojang.math.Transformation getPartTransformation(Object part)
      Specified by:
      getPartTransformation in interface ModelStateExtensions