Class FishingHookPredicate

java.lang.Object
net.minecraft.predicate.entity.FishingHookPredicate

public class FishingHookPredicate extends Object
Mappings:
Namespace Name
official bp
intermediary net/minecraft/class_4965
named net/minecraft/predicate/entity/FishingHookPredicate
  • Field Details

    • ANY

      public static final FishingHookPredicate ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a:Lbp;
      intermediary field_23137 Lnet/minecraft/class_4965;field_23137:Lnet/minecraft/class_4965;
      named ANY Lnet/minecraft/predicate/entity/FishingHookPredicate;ANY:Lnet/minecraft/predicate/entity/FishingHookPredicate;
    • IN_OPEN_WATER

      private static final String IN_OPEN_WATER
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official b Lbp;b:Ljava/lang/String;
      intermediary field_30854 Lnet/minecraft/class_4965;field_30854:Ljava/lang/String;
      named IN_OPEN_WATER Lnet/minecraft/predicate/entity/FishingHookPredicate;IN_OPEN_WATER:Ljava/lang/String;
    • inOpenWater

      private final boolean inOpenWater
      Mappings:
      Namespace Name Mixin selector
      official c Lbp;c:Z
      intermediary field_23138 Lnet/minecraft/class_4965;field_23138:Z
      named inOpenWater Lnet/minecraft/predicate/entity/FishingHookPredicate;inOpenWater:Z
  • Constructor Details

    • FishingHookPredicate

      private FishingHookPredicate(boolean inOpenWater)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbp;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_4965;<init>(Z)V
      named <init> Lnet/minecraft/predicate/entity/FishingHookPredicate;<init>(Z)V
  • Method Details

    • of

      public static FishingHookPredicate of(boolean inOpenWater)
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a(Z)Lbp;
      intermediary method_26095 Lnet/minecraft/class_4965;method_26095(Z)Lnet/minecraft/class_4965;
      named of Lnet/minecraft/predicate/entity/FishingHookPredicate;of(Z)Lnet/minecraft/predicate/entity/FishingHookPredicate;
    • fromJson

      public static FishingHookPredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a(Lcom/google/gson/JsonElement;)Lbp;
      intermediary method_26094 Lnet/minecraft/class_4965;method_26094(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_4965;
      named fromJson Lnet/minecraft/predicate/entity/FishingHookPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/FishingHookPredicate;
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a()Lcom/google/gson/JsonElement;
      intermediary method_26092 Lnet/minecraft/class_4965;method_26092()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/entity/FishingHookPredicate;toJson()Lcom/google/gson/JsonElement;
    • test

      public boolean test(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a(Latf;)Z
      intermediary method_26093 Lnet/minecraft/class_4965;method_26093(Lnet/minecraft/class_1297;)Z
      named test Lnet/minecraft/predicate/entity/FishingHookPredicate;test(Lnet/minecraft/entity/Entity;)Z