Class FluidPredicate

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

public class FluidPredicate extends Object
Mappings:
Namespace Name
official bt
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 Lbt;a:Lbt;
      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 Tag<Fluid> tag
      Mappings:
      Namespace Name Mixin selector
      official b Lbt;b:Lahl;
      intermediary field_20709 Lnet/minecraft/class_4551;field_20709:Lnet/minecraft/class_3494;
      named tag Lnet/minecraft/predicate/FluidPredicate;tag:Lnet/minecraft/tag/Tag;
    • fluid

      @Nullable private final @Nullable Fluid fluid
      Mappings:
      Namespace Name Mixin selector
      official c Lbt;c:Ldhh;
      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 Lbt;d:Lcw;
      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 Tag<Fluid> tag, @Nullable @Nullable Fluid fluid, StatePredicate state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbt;<init>(Lahl;Ldhh;Lcw;)V
      intermediary <init> Lnet/minecraft/class_4551;<init>(Lnet/minecraft/class_3494;Lnet/minecraft/class_3611;Lnet/minecraft/class_4559;)V
      named <init> Lnet/minecraft/predicate/FluidPredicate;<init>(Lnet/minecraft/tag/Tag;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 Lbt;a(Ladc;Lgh;)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 Lbt;a(Lcom/google/gson/JsonElement;)Lbt;
      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 Lbt;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;