Package net.minecraft.loot
Class FishingPredicate
- java.lang.Object
-
- net.minecraft.loot.FishingPredicate
-
public class FishingPredicate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static FishingPredicate
ANY
private boolean
inOpenWater
-
Constructor Summary
Constructors Modifier Constructor Description private
FishingPredicate(boolean p_i231586_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FishingPredicate
fromJson(com.google.gson.JsonElement p_234639_0_)
static FishingPredicate
inOpenWater(boolean p_234640_0_)
boolean
matches(Entity p_234638_1_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final FishingPredicate ANY
-
inOpenWater
private boolean inOpenWater
-
-
Method Detail
-
inOpenWater
public static FishingPredicate inOpenWater(boolean p_234640_0_)
-
fromJson
public static FishingPredicate fromJson(@Nullable com.google.gson.JsonElement p_234639_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
matches
public boolean matches(Entity p_234638_1_)
-
-