Record Class ModExtremeSmithingRecipeBuilder.Result

java.lang.Object
java.lang.Record
committee.nova.mods.avaritia.init.data.provider.recipe.ModExtremeSmithingRecipeBuilder.Result
所有已实现的接口:
net.minecraft.data.recipes.FinishedRecipe
封闭类:
ModExtremeSmithingRecipeBuilder

public static record ModExtremeSmithingRecipeBuilder.Result(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient additions, net.minecraft.world.item.Item result, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId) extends Record implements net.minecraft.data.recipes.FinishedRecipe
  • 构造器概要

    构造器
    构造器
    说明
    Result(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient additions, net.minecraft.world.item.Item result, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
    创建 Result 记录的实例。
  • 方法概要

    修饰符和类型
    方法
    说明
    net.minecraft.world.item.crafting.Ingredient
    返回 additions 记录组件的值。
    net.minecraft.advancements.Advancement.Builder
    返回 advancement 记录组件的值。
    net.minecraft.resources.ResourceLocation
    返回 advancementId 记录组件的值。
    net.minecraft.world.item.crafting.Ingredient
    返回 base 记录组件的值。
    final boolean
    指示某个其他对象是否“等于”此对象。
    net.minecraft.resources.ResourceLocation
     
    @NotNull net.minecraft.resources.ResourceLocation
     
    @NotNull net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    final int
    返回此对象的哈希代码值。
    net.minecraft.resources.ResourceLocation
    id()
    返回 id 记录组件的值。
    net.minecraft.world.item.Item
    返回 result 记录组件的值。
    @NotNull com.google.gson.JsonObject
     
    void
    serializeRecipeData(com.google.gson.JsonObject pJson)
     
    net.minecraft.world.item.crafting.Ingredient
    返回 template 记录组件的值。
    final String
    返回此记录的字符串表示形式。

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 net.minecraft.data.recipes.FinishedRecipe

    serializeRecipe
  • 构造器详细资料

    • Result

      public Result(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient additions, net.minecraft.world.item.Item result, net.minecraft.advancements.Advancement.Builder advancement, net.minecraft.resources.ResourceLocation advancementId)
      创建 Result 记录的实例。
      参数:
      id - id 记录组件的值
      template - template 记录组件的值
      base - base 记录组件的值
      additions - additions 记录组件的值
      result - result 记录组件的值
      advancement - advancement 记录组件的值
      advancementId - advancementId 记录组件的值
  • 方法详细资料

    • serializeRecipeData

      public void serializeRecipeData(com.google.gson.JsonObject pJson)
      指定者:
      serializeRecipeData 在接口中 net.minecraft.data.recipes.FinishedRecipe
    • getId

      @NotNull public @NotNull net.minecraft.resources.ResourceLocation getId()
      指定者:
      getId 在接口中 net.minecraft.data.recipes.FinishedRecipe
    • getType

      @NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<?> getType()
      指定者:
      getType 在接口中 net.minecraft.data.recipes.FinishedRecipe
    • serializeAdvancement

      @NotNull public @NotNull com.google.gson.JsonObject serializeAdvancement()
      指定者:
      serializeAdvancement 在接口中 net.minecraft.data.recipes.FinishedRecipe
    • getAdvancementId

      @Nullable public net.minecraft.resources.ResourceLocation getAdvancementId()
      指定者:
      getAdvancementId 在接口中 net.minecraft.data.recipes.FinishedRecipe
    • toString

      public final String toString()
      返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用 Objects::equals(Object,Object) 进行比较。
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • id

      public net.minecraft.resources.ResourceLocation id()
      返回 id 记录组件的值。
      返回:
      id 记录组件的值
    • template

      public net.minecraft.world.item.crafting.Ingredient template()
      返回 template 记录组件的值。
      返回:
      template 记录组件的值
    • base

      public net.minecraft.world.item.crafting.Ingredient base()
      返回 base 记录组件的值。
      返回:
      base 记录组件的值
    • additions

      public net.minecraft.world.item.crafting.Ingredient additions()
      返回 additions 记录组件的值。
      返回:
      additions 记录组件的值
    • result

      public net.minecraft.world.item.Item result()
      返回 result 记录组件的值。
      返回:
      result 记录组件的值
    • advancement

      public net.minecraft.advancements.Advancement.Builder advancement()
      返回 advancement 记录组件的值。
      返回:
      advancement 记录组件的值
    • advancementId

      public net.minecraft.resources.ResourceLocation advancementId()
      返回 advancementId 记录组件的值。
      返回:
      advancementId 记录组件的值