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 bs
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 Lbs;b:Lbs;
      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 Lbs;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 Lbs;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> Lbs;<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 Lbs;a(Z)Lbs;
      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 Lbs;a(Lcom/google/gson/JsonObject;)Lbs;
      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 Lbo;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 Lbo;c()Lbo$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 Lbo;a(Lbfh;Laip;Lede;)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