Record Class NbtShapedRecipe.Serializer.RawShapedRecipe

java.lang.Object
java.lang.Record
pers.saikel0rado1iu.silk.api.registry.gen.data.recipe.NbtShapedRecipe.Serializer.RawShapedRecipe
封闭类:
NbtShapedRecipe.Serializer

protected static record NbtShapedRecipe.Serializer.RawShapedRecipe(String group, net.minecraft.recipe.book.CraftingRecipeCategory category, Map<String,net.minecraft.recipe.Ingredient> key, List<String> pattern, net.minecraft.item.ItemStack result, boolean showNotification) extends Record
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final com.mojang.serialization.Codec<NbtShapedRecipe.Serializer.RawShapedRecipe>
     
    static final com.mojang.serialization.Codec<net.minecraft.item.ItemStack>
     
    static final com.mojang.serialization.Codec<net.minecraft.item.Item>
     
    static final com.mojang.serialization.Codec<net.minecraft.nbt.NbtCompound>
     
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    RawShapedRecipe(String group, net.minecraft.recipe.book.CraftingRecipeCategory category, Map<String,net.minecraft.recipe.Ingredient> key, List<String> pattern, net.minecraft.item.ItemStack result, boolean showNotification)
    创建 RawShapedRecipe 记录的实例。
  • 方法概要

    修饰符和类型
    方法
    说明
    net.minecraft.recipe.book.CraftingRecipeCategory
    返回 category 记录组件的值。
    final boolean
    指示某个其他对象是否“等于”此对象。
    返回 group 记录组件的值。
    final int
    返回此对象的哈希代码值。
    Map<String,net.minecraft.recipe.Ingredient>
    key()
    返回 key 记录组件的值。
    返回 pattern 记录组件的值。
    net.minecraft.item.ItemStack
    返回 result 记录组件的值。
    boolean
    返回 showNotification 记录组件的值。
    final String
    返回此记录的字符串表示形式。

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

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • CRAFTING_RESULT_ITEM

      public static final com.mojang.serialization.Codec<net.minecraft.item.Item> CRAFTING_RESULT_ITEM
    • NBT_CODEC

      public static final com.mojang.serialization.Codec<net.minecraft.nbt.NbtCompound> NBT_CODEC
    • CRAFTING_RESULT

      public static final com.mojang.serialization.Codec<net.minecraft.item.ItemStack> CRAFTING_RESULT
    • CODEC

      public static final com.mojang.serialization.Codec<NbtShapedRecipe.Serializer.RawShapedRecipe> CODEC
  • 构造器详细资料

    • RawShapedRecipe

      protected RawShapedRecipe(String group, net.minecraft.recipe.book.CraftingRecipeCategory category, Map<String,net.minecraft.recipe.Ingredient> key, List<String> pattern, net.minecraft.item.ItemStack result, boolean showNotification)
      创建 RawShapedRecipe 记录的实例。
      参数:
      group - group 记录组件的值
      category - category 记录组件的值
      key - key 记录组件的值
      pattern - pattern 记录组件的值
      result - result 记录组件的值
      showNotification - showNotification 记录组件的值
  • 方法详细资料

    • 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
    • group

      public String group()
      返回 group 记录组件的值。
      返回:
      group 记录组件的值
    • category

      public net.minecraft.recipe.book.CraftingRecipeCategory category()
      返回 category 记录组件的值。
      返回:
      category 记录组件的值
    • key

      public Map<String,net.minecraft.recipe.Ingredient> key()
      返回 key 记录组件的值。
      返回:
      key 记录组件的值
    • pattern

      public List<String> pattern()
      返回 pattern 记录组件的值。
      返回:
      pattern 记录组件的值
    • result

      public net.minecraft.item.ItemStack result()
      返回 result 记录组件的值。
      返回:
      result 记录组件的值
    • showNotification

      public boolean showNotification()
      返回 showNotification 记录组件的值。
      返回:
      showNotification 记录组件的值