Record Class ItemModelFacade.Unbaked

java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.client.model.ItemModelFacade.Unbaked
All Implemented Interfaces:
net.minecraft.client.renderer.item.ItemModel.Unbaked, net.minecraft.client.resources.model.ResolvableModel
Enclosing class:
ItemModelFacade

public static record ItemModelFacade.Unbaked(net.minecraft.resources.ResourceLocation modelEmpty) extends Record implements net.minecraft.client.renderer.item.ItemModel.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 com.mojang.serialization.MapCodec<ItemModelFacade.Unbaked>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Unbaked(net.minecraft.resources.ResourceLocation modelEmpty)
    Creates an instance of a Unbaked record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.item.ItemModel
    bake(net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.resources.ResourceLocation
    Returns the value of the modelEmpty record component.
    void
    resolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver)
     
    final String
    Returns a string representation of this record class.
    com.mojang.serialization.MapCodec<ItemModelFacade.Unbaked>
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • Unbaked

      public Unbaked(net.minecraft.resources.ResourceLocation modelEmpty)
      Creates an instance of a Unbaked record class.
      Parameters:
      modelEmpty - the value for the modelEmpty record component
  • Method Details

    • type

      public com.mojang.serialization.MapCodec<ItemModelFacade.Unbaked> type()
      Specified by:
      type in interface net.minecraft.client.renderer.item.ItemModel.Unbaked
    • bake

      public net.minecraft.client.renderer.item.ItemModel bake(net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext)
      Specified by:
      bake in interface net.minecraft.client.renderer.item.ItemModel.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.
    • modelEmpty

      public net.minecraft.resources.ResourceLocation modelEmpty()
      Returns the value of the modelEmpty record component.
      Returns:
      the value of the modelEmpty record component