Class NbtPredicate

java.lang.Object
net.minecraft.predicate.NbtPredicate

public class NbtPredicate extends Object
Mappings:
Namespace Name
official cj
intermediary net/minecraft/class_2105
named net/minecraft/predicate/NbtPredicate
  • Field Details

    • ANY

      public static final NbtPredicate ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lcj;a:Lcj;
      intermediary field_9716 Lnet/minecraft/class_2105;field_9716:Lnet/minecraft/class_2105;
      named ANY Lnet/minecraft/predicate/NbtPredicate;ANY:Lnet/minecraft/predicate/NbtPredicate;
    • nbt

      @Nullable private final @Nullable NbtCompound nbt
      Mappings:
      Namespace Name Mixin selector
      official b Lcj;b:Lna;
      intermediary field_9715 Lnet/minecraft/class_2105;field_9715:Lnet/minecraft/class_2487;
      named nbt Lnet/minecraft/predicate/NbtPredicate;nbt:Lnet/minecraft/nbt/NbtCompound;
  • Constructor Details

    • NbtPredicate

      public NbtPredicate(@Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcj;<init>(Lna;)V
      intermediary <init> Lnet/minecraft/class_2105;<init>(Lnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/predicate/NbtPredicate;<init>(Lnet/minecraft/nbt/NbtCompound;)V
  • Method Details

    • test

      public boolean test(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcj;a(Lbqp;)Z
      intermediary method_9074 Lnet/minecraft/class_2105;method_9074(Lnet/minecraft/class_1799;)Z
      named test Lnet/minecraft/predicate/NbtPredicate;test(Lnet/minecraft/item/ItemStack;)Z
    • test

      public boolean test(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcj;a(Latf;)Z
      intermediary method_9072 Lnet/minecraft/class_2105;method_9072(Lnet/minecraft/class_1297;)Z
      named test Lnet/minecraft/predicate/NbtPredicate;test(Lnet/minecraft/entity/Entity;)Z
    • test

      public boolean test(@Nullable @Nullable NbtElement element)
      Mappings:
      Namespace Name Mixin selector
      official a Lcj;a(Lns;)Z
      intermediary method_9077 Lnet/minecraft/class_2105;method_9077(Lnet/minecraft/class_2520;)Z
      named test Lnet/minecraft/predicate/NbtPredicate;test(Lnet/minecraft/nbt/NbtElement;)Z
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lcj;a()Lcom/google/gson/JsonElement;
      intermediary method_9075 Lnet/minecraft/class_2105;method_9075()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/NbtPredicate;toJson()Lcom/google/gson/JsonElement;
    • fromJson

      public static NbtPredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lcj;a(Lcom/google/gson/JsonElement;)Lcj;
      intermediary method_9073 Lnet/minecraft/class_2105;method_9073(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2105;
      named fromJson Lnet/minecraft/predicate/NbtPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/NbtPredicate;
    • entityToNbt

      public static NbtCompound entityToNbt(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lcj;b(Latf;)Lna;
      intermediary method_9076 Lnet/minecraft/class_2105;method_9076(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2487;
      named entityToNbt Lnet/minecraft/predicate/NbtPredicate;entityToNbt(Lnet/minecraft/entity/Entity;)Lnet/minecraft/nbt/NbtCompound;