类 NbtPredicate
- java.lang.Object
-
- net.minecraft.predicate.NbtPredicate
-
public class NbtPredicate extends Object
- Mappings:
Namespace Name official cgintermediary net/minecraft/class_2105named net/minecraft/predicate/NbtPredicate
-
-
字段概要
字段 修饰符和类型 字段 说明 static NbtPredicateANYprivate @Nullable CompoundTagnbt
-
构造器概要
构造器 构造器 说明 NbtPredicate(@Nullable CompoundTag nbt)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static CompoundTagentityToNbt(Entity entity)static NbtPredicatefromJson(@Nullable JsonElement json)booleantest(@Nullable Tag element)booleantest(Entity entity)booleantest(ItemStack stack)JsonElementtoJson()
-
-
-
字段详细资料
-
ANY
public static final NbtPredicate ANY
- Mappings:
Namespace Name Mixin selector official aLcg;a:Lcg;intermediary field_9716Lnet/minecraft/class_2105;field_9716:Lnet/minecraft/class_2105;named ANYLnet/minecraft/predicate/NbtPredicate;ANY:Lnet/minecraft/predicate/NbtPredicate;
-
nbt
@Nullable private final @Nullable CompoundTag nbt
- Mappings:
Namespace Name Mixin selector official bLcg;b:Lmv;intermediary field_9715Lnet/minecraft/class_2105;field_9715:Lnet/minecraft/class_2487;named nbtLnet/minecraft/predicate/NbtPredicate;nbt:Lnet/minecraft/nbt/CompoundTag;
-
-
构造器详细资料
-
NbtPredicate
public NbtPredicate(@Nullable @Nullable CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official <init>Lcg;<init>(Lmv;)Vintermediary <init>Lnet/minecraft/class_2105;<init>(Lnet/minecraft/class_2487;)Vnamed <init>Lnet/minecraft/predicate/NbtPredicate;<init>(Lnet/minecraft/nbt/CompoundTag;)V
-
-
方法详细资料
-
test
public boolean test(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official aLcg;a(Lbpr;)Zintermediary method_9074Lnet/minecraft/class_2105;method_9074(Lnet/minecraft/class_1799;)Znamed testLnet/minecraft/predicate/NbtPredicate;test(Lnet/minecraft/item/ItemStack;)Z
-
test
public boolean test(Entity entity)
- Mappings:
Namespace Name Mixin selector official aLcg;a(Lasl;)Zintermediary method_9072Lnet/minecraft/class_2105;method_9072(Lnet/minecraft/class_1297;)Znamed testLnet/minecraft/predicate/NbtPredicate;test(Lnet/minecraft/entity/Entity;)Z
-
test
public boolean test(@Nullable @Nullable Tag element)
- Mappings:
Namespace Name Mixin selector official aLcg;a(Lnn;)Zintermediary method_9077Lnet/minecraft/class_2105;method_9077(Lnet/minecraft/class_2520;)Znamed testLnet/minecraft/predicate/NbtPredicate;test(Lnet/minecraft/nbt/Tag;)Z
-
toJson
public JsonElement toJson()
- Mappings:
Namespace Name Mixin selector official aLcg;a()Lcom/google/gson/JsonElement;intermediary method_9075Lnet/minecraft/class_2105;method_9075()Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/predicate/NbtPredicate;toJson()Lcom/google/gson/JsonElement;
-
fromJson
public static NbtPredicate fromJson(@Nullable @Nullable JsonElement json)
- Mappings:
Namespace Name Mixin selector official aLcg;a(Lcom/google/gson/JsonElement;)Lcg;intermediary method_9073Lnet/minecraft/class_2105;method_9073(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2105;named fromJsonLnet/minecraft/predicate/NbtPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/NbtPredicate;
-
entityToNbt
public static CompoundTag entityToNbt(Entity entity)
- Mappings:
Namespace Name Mixin selector official bLcg;b(Lasl;)Lmv;intermediary method_9076Lnet/minecraft/class_2105;method_9076(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2487;named entityToNbtLnet/minecraft/predicate/NbtPredicate;entityToNbt(Lnet/minecraft/entity/Entity;)Lnet/minecraft/nbt/CompoundTag;
-
-