Class ModelPartUtils

java.lang.Object
net.lcc.sollib.api.client.model.entity.ModelPartUtils

public class ModelPartUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SolLogger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.client.model.geom.ModelPart>
    collectAllModelParts(net.minecraft.client.model.geom.builders.LayerDefinition texturedData)
     
    static @Nullable net.minecraft.client.model.geom.ModelPart
    getPart(String partName, List<net.minecraft.client.model.geom.ModelPart> parts)
     
    static @Nullable net.minecraft.client.model.geom.ModelPart
    getPart(org.apache.commons.lang3.tuple.Triple<Float,Float,Float> partSize, List<net.minecraft.client.model.geom.ModelPart> parts)
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • ModelPartUtils

      public ModelPartUtils()
  • Method Details

    • collectAllModelParts

      public static List<net.minecraft.client.model.geom.ModelPart> collectAllModelParts(net.minecraft.client.model.geom.builders.LayerDefinition texturedData)
      Parameters:
      texturedData - LayerDefinition to extract model parts from
      Returns:
      List<ModelPart>
      Since:
      1.0
    • getPart

      @Nullable public static @Nullable net.minecraft.client.model.geom.ModelPart getPart(org.apache.commons.lang3.tuple.Triple<Float,Float,Float> partSize, List<net.minecraft.client.model.geom.ModelPart> parts)
      Parameters:
      partSize - Estimate size of required model part to look up for
      parts - List of model parts to look into
      Returns:
      ModelPart
      Throws:
      NullPointerException - in cases of absence of looking part, method may return null
      Since:
      1.0
    • getPart

      @Nullable public static @Nullable net.minecraft.client.model.geom.ModelPart getPart(String partName, List<net.minecraft.client.model.geom.ModelPart> parts)
      Parameters:
      partName - Estimate name of required model part to look up for
      parts - List of model parts to look into
      Returns:
      ModelPart
      Throws:
      NullPointerException - in cases of absence of looking part, method may return null
      Since:
      1.0