Class StaticPartModel

java.lang.Object
appeng.client.api.model.parts.StaticPartModel
All Implemented Interfaces:
PartModel

public class StaticPartModel extends Object implements PartModel
Tint Index 1
The dark variant color of the cable that this part is attached to.
Tint Index 2
The color of the cable that this part is attached to.
Tint Index 3
The bright variant color of the cable that this part is attached to.
Tint Index 4
A color variant that is between the cable's color and its bright variant.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StaticPartModel(net.minecraft.client.renderer.block.dispatch.BlockStateModelPart model)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    collectParts(net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.model.data.ModelData partModelData, net.minecraft.util.RandomSource random, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> parts)
    Collects model parts of this part model.
    net.minecraft.client.resources.model.sprite.Material.Baked
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface PartModel

    canAttachToStraightCable
  • Constructor Details

    • StaticPartModel

      public StaticPartModel(net.minecraft.client.renderer.block.dispatch.BlockStateModelPart model)
  • Method Details

    • collectParts

      public void collectParts(net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.model.data.ModelData partModelData, net.minecraft.util.RandomSource random, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> parts)
      Description copied from interface: PartModel
      Collects model parts of this part model.
      Specified by:
      collectParts in interface PartModel
      Parameters:
      level - The level the part host is in.
      pos - The position the part host is located at.
      partModelData - Any part model state previously collected from IPart.collectModelData(ModelData.Builder).
    • particleMaterial

      public net.minecraft.client.resources.model.sprite.Material.Baked particleMaterial()
      Specified by:
      particleMaterial in interface PartModel