Class FluidPredicate

java.lang.Object
net.minecraft.predicate.FluidPredicate

public class FluidPredicate extends Object
Mappings:
Namespace Name
official bv
intermediary net/minecraft/class_4551
named net/minecraft/predicate/FluidPredicate
  • Field Details

    • ANY

      public static final FluidPredicate ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lbv;a:Lbv;
      intermediary field_20708 Lnet/minecraft/class_4551;field_20708:Lnet/minecraft/class_4551;
      named ANY Lnet/minecraft/predicate/FluidPredicate;ANY:Lnet/minecraft/predicate/FluidPredicate;
    • tag

      @Nullable private final @Nullable TagKey<Fluid> tag
      Mappings:
      Namespace Name Mixin selector
      official b Lbv;b:Lakh;
      intermediary field_20709 Lnet/minecraft/class_4551;field_20709:Lnet/minecraft/class_6862;
      named tag Lnet/minecraft/predicate/FluidPredicate;tag:Lnet/minecraft/tag/TagKey;
    • fluid

      @Nullable private final @Nullable Fluid fluid
      Mappings:
      Namespace Name Mixin selector
      official c Lbv;c:Ldow;
      intermediary field_20710 Lnet/minecraft/class_4551;field_20710:Lnet/minecraft/class_3611;
      named fluid Lnet/minecraft/predicate/FluidPredicate;fluid:Lnet/minecraft/fluid/Fluid;
    • state

      private final StatePredicate state
      Mappings:
      Namespace Name Mixin selector
      official d Lbv;d:Lcz;
      intermediary field_20711 Lnet/minecraft/class_4551;field_20711:Lnet/minecraft/class_4559;
      named state Lnet/minecraft/predicate/FluidPredicate;state:Lnet/minecraft/predicate/StatePredicate;
  • Constructor Details

    • FluidPredicate

      public FluidPredicate(@Nullable @Nullable TagKey<Fluid> tag, @Nullable @Nullable Fluid fluid, StatePredicate state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbv;<init>(Lakh;Ldow;Lcz;)V
      intermediary <init> Lnet/minecraft/class_4551;<init>(Lnet/minecraft/class_6862;Lnet/minecraft/class_3611;Lnet/minecraft/class_4559;)V
      named <init> Lnet/minecraft/predicate/FluidPredicate;<init>(Lnet/minecraft/tag/TagKey;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/predicate/StatePredicate;)V
  • Method Details

    • test

      public boolean test(ServerWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbv;a(Lafo;Lgt;)Z
      intermediary method_22475 Lnet/minecraft/class_4551;method_22475(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
      named test Lnet/minecraft/predicate/FluidPredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
    • fromJson

      public static FluidPredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbv;a(Lcom/google/gson/JsonElement;)Lbv;
      intermediary method_22474 Lnet/minecraft/class_4551;method_22474(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_4551;
      named fromJson Lnet/minecraft/predicate/FluidPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/FluidPredicate;
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbv;a()Lcom/google/gson/JsonElement;
      intermediary method_22473 Lnet/minecraft/class_4551;method_22473()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/FluidPredicate;toJson()Lcom/google/gson/JsonElement;