Class FishingHookPredicate

java.lang.Object
net.minecraft.predicate.entity.FishingHookPredicate
All Implemented Interfaces:
TypeSpecificPredicate

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

    • ALL

      public static final FishingHookPredicate ALL
      Mappings:
      Namespace Name Mixin selector
      official b Lbt;b:Lbt;
      intermediary field_23137 Lnet/minecraft/class_4965;field_23137:Lnet/minecraft/class_4965;
      named ALL Lnet/minecraft/predicate/entity/FishingHookPredicate;ALL:Lnet/minecraft/predicate/entity/FishingHookPredicate;
    • IN_OPEN_WATER

      private static final String IN_OPEN_WATER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbt;c: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 d Lbt;d: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> Lbt;<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 Lbt;a(Z)Lbt;
      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(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbt;a(Lcom/google/gson/JsonObject;)Lbt;
      intermediary method_26094 Lnet/minecraft/class_4965;method_26094(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_4965;
      named fromJson Lnet/minecraft/predicate/entity/FishingHookPredicate;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/predicate/entity/FishingHookPredicate;
    • typeSpecificToJson

      public JsonObject typeSpecificToJson()
      Specified by:
      typeSpecificToJson in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a()Lcom/google/gson/JsonObject;
      intermediary method_22494 Lnet/minecraft/class_7376;method_22494()Lcom/google/gson/JsonObject;
      named typeSpecificToJson Lnet/minecraft/predicate/entity/TypeSpecificPredicate;typeSpecificToJson()Lcom/google/gson/JsonObject;
    • getDeserializer

      public TypeSpecificPredicate.Deserializer getDeserializer()
      Specified by:
      getDeserializer in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official c Lbp;c()Lbp$a;
      intermediary method_43099 Lnet/minecraft/class_7376;method_43099()Lnet/minecraft/class_7376$class_7377;
      named getDeserializer Lnet/minecraft/predicate/entity/TypeSpecificPredicate;getDeserializer()Lnet/minecraft/predicate/entity/TypeSpecificPredicate$Deserializer;
    • test

      public boolean test(Entity entity, ServerWorld world, @Nullable @Nullable Vec3d pos)
      Specified by:
      test in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a(Lbbn;Lagg;Ldwq;)Z
      intermediary method_22497 Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z
      named test Lnet/minecraft/predicate/entity/TypeSpecificPredicate;test(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z