Record Class RecipeSchemaData

java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.schema.RecipeSchemaData

public record RecipeSchemaData(Optional<net.minecraft.resources.ResourceLocation> parent, Optional<net.minecraft.resources.ResourceLocation> overrideType, Optional<net.minecraft.resources.ResourceLocation> recipeFactory, Optional<List<RecipeSchemaData.RecipeKeyData>> keys, Optional<List<RecipeSchemaData.ConstructorData>> constructors, Optional<Map<String,RecipeSchemaFunction>> functions, Map<String,com.google.gson.JsonElement> overrideKeys, Optional<Boolean> hidden, List<String> mappings, Optional<List<String>> unique, Optional<List<RecipePostProcessor>> postProcessors, RecipeSchemaData.MergeData merge) extends Record
  • Field Details

  • Constructor Details

  • Method Details

    • mergeKeys

      public boolean mergeKeys()
    • mergeConstructors

      public boolean mergeConstructors()
    • mergeUnique

      public boolean mergeUnique()
    • mergePostProcessors

      public boolean mergePostProcessors()
    • 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.
    • parent

      public Optional<net.minecraft.resources.ResourceLocation> parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • overrideType

      public Optional<net.minecraft.resources.ResourceLocation> overrideType()
      Returns the value of the overrideType record component.
      Returns:
      the value of the overrideType record component
    • recipeFactory

      public Optional<net.minecraft.resources.ResourceLocation> recipeFactory()
      Returns the value of the recipeFactory record component.
      Returns:
      the value of the recipeFactory record component
    • keys

      Returns the value of the keys record component.
      Returns:
      the value of the keys record component
    • constructors

      Returns the value of the constructors record component.
      Returns:
      the value of the constructors record component
    • functions

      public Optional<Map<String,RecipeSchemaFunction>> functions()
      Returns the value of the functions record component.
      Returns:
      the value of the functions record component
    • overrideKeys

      public Map<String,com.google.gson.JsonElement> overrideKeys()
      Returns the value of the overrideKeys record component.
      Returns:
      the value of the overrideKeys record component
    • hidden

      public Optional<Boolean> hidden()
      Returns the value of the hidden record component.
      Returns:
      the value of the hidden record component
    • mappings

      public List<String> mappings()
      Returns the value of the mappings record component.
      Returns:
      the value of the mappings record component
    • unique

      public Optional<List<String>> unique()
      Returns the value of the unique record component.
      Returns:
      the value of the unique record component
    • postProcessors

      public Optional<List<RecipePostProcessor>> postProcessors()
      Returns the value of the postProcessors record component.
      Returns:
      the value of the postProcessors record component
    • merge

      Returns the value of the merge record component.
      Returns:
      the value of the merge record component