类 ItemPredicate
java.lang.Object
net.minecraft.advancements.critereon.ItemPredicate
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final ItemPredicate
private final MinMaxBounds.Ints
private static final Map<ResourceLocation,
Function<com.google.gson.JsonObject, ItemPredicate>> private final MinMaxBounds.Ints
private final EnchantmentPredicate[]
private final NbtPredicate
private final Potion
private final EnchantmentPredicate[]
private static final Map<ResourceLocation,
Function<com.google.gson.JsonObject, ItemPredicate>> -
构造器概要
构造器构造器说明ItemPredicate
(TagKey<Item> pTag, Set<Item> pItems, MinMaxBounds.Ints pCount, MinMaxBounds.Ints pDurability, EnchantmentPredicate[] pEnchantments, EnchantmentPredicate[] pStoredEnchantments, Potion pPotion, NbtPredicate pNbt) -
方法概要
修饰符和类型方法说明static ItemPredicate
fromJson
(com.google.gson.JsonElement pJson) static ItemPredicate[]
fromJsonArray
(com.google.gson.JsonElement pJson) static Map<ResourceLocation,
Function<com.google.gson.JsonObject, ItemPredicate>> boolean
static void
register
(ResourceLocation name, Function<com.google.gson.JsonObject, ItemPredicate> deserializer) com.google.gson.JsonElement
-
字段详细资料
-
custom_predicates
private static final Map<ResourceLocation,Function<com.google.gson.JsonObject, custom_predicatesItemPredicate>> -
unmod_predicates
private static final Map<ResourceLocation,Function<com.google.gson.JsonObject, unmod_predicatesItemPredicate>> -
ANY
-
tag
-
items
-
count
-
durability
-
enchantments
-
storedEnchantments
-
potion
-
nbt
-
-
构造器详细资料
-
ItemPredicate
public ItemPredicate() -
ItemPredicate
public ItemPredicate(@Nullable TagKey<Item> pTag, @Nullable Set<Item> pItems, MinMaxBounds.Ints pCount, MinMaxBounds.Ints pDurability, EnchantmentPredicate[] pEnchantments, EnchantmentPredicate[] pStoredEnchantments, @Nullable Potion pPotion, NbtPredicate pNbt)
-
-
方法详细资料
-
matches
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
fromJsonArray
-
register
public static void register(ResourceLocation name, Function<com.google.gson.JsonObject, ItemPredicate> deserializer) -
getPredicates
public static Map<ResourceLocation,Function<com.google.gson.JsonObject, getPredicates()ItemPredicate>>
-