Record Class CompositePartModel.Unbaked

java.lang.Object
java.lang.Record
appeng.client.api.model.parts.CompositePartModel.Unbaked
All Implemented Interfaces:
PartModel.Unbaked, net.minecraft.client.resources.model.ResolvableModel
Enclosing class:
CompositePartModel

public static record CompositePartModel.Unbaked(List<PartModel.Unbaked> models) extends Record implements PartModel.Unbaked
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel

    net.minecraft.client.resources.model.ResolvableModel.Resolver
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.Identifier
     
    static final com.mojang.serialization.MapCodec<CompositePartModel.Unbaked>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of a Unbaked record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    bake(net.minecraft.client.resources.model.ModelBaker baker, net.minecraft.client.renderer.block.dispatch.ModelState modelState)
     
    com.mojang.serialization.MapCodec<? extends PartModel.Unbaked>
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the models record component.
    void
    resolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ID

      public static final net.minecraft.resources.Identifier ID
    • MAP_CODEC

      public static final com.mojang.serialization.MapCodec<CompositePartModel.Unbaked> MAP_CODEC
  • Constructor Details

    • Unbaked

      public Unbaked(List<PartModel.Unbaked> models)
      Creates an instance of a Unbaked record class.
      Parameters:
      models - the value for the models record component
  • Method Details

    • codec

      public com.mojang.serialization.MapCodec<? extends PartModel.Unbaked> codec()
      Specified by:
      codec in interface PartModel.Unbaked
    • bake

      public PartModel bake(net.minecraft.client.resources.model.ModelBaker baker, net.minecraft.client.renderer.block.dispatch.ModelState modelState)
      Specified by:
      bake in interface PartModel.Unbaked
    • resolveDependencies

      public void resolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver)
      Specified by:
      resolveDependencies in interface net.minecraft.client.resources.model.ResolvableModel
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • models

      public List<PartModel.Unbaked> models()
      Returns the value of the models record component.
      Returns:
      the value of the models record component