Class FishingHookPredicate
java.lang.Object
net.minecraft.advancements.critereon.FishingHookPredicate
- All Implemented Interfaces:
EntitySubPredicate
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancements.critereon.EntitySubPredicate
EntitySubPredicate.Type, EntitySubPredicate.Types -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FishingHookPredicateprivate static final Stringprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FishingHookPredicatefromJson(com.google.gson.JsonObject p_219720_) static FishingHookPredicateinOpenWater(boolean p_39767_) booleanmatches(Entity p_219716_, ServerLevel p_219717_, Vec3 p_219718_) com.google.gson.JsonObjecttype()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.advancements.critereon.EntitySubPredicate
serialize
-
Field Details
-
ANY
-
IN_OPEN_WATER_KEY
- See Also:
-
inOpenWater
private final boolean inOpenWater
-
-
Constructor Details
-
FishingHookPredicate
private FishingHookPredicate(boolean p_39760_)
-
-
Method Details
-
inOpenWater
-
fromJson
-
serializeCustomData
public com.google.gson.JsonObject serializeCustomData()- Specified by:
serializeCustomDatain interfaceEntitySubPredicate
-
type
- Specified by:
typein interfaceEntitySubPredicate
-
matches
- Specified by:
matchesin interfaceEntitySubPredicate
-