public class FishingHookPredicate extends Object
Modifier and Type | Field and Description |
---|---|
static FishingHookPredicate |
ANY |
private boolean |
inOpenWater |
Modifier | Constructor and Description |
---|---|
private |
FishingHookPredicate(boolean inOpenWater) |
Modifier and Type | Method and Description |
---|---|
static FishingHookPredicate |
fromJson(JsonElement json) |
static FishingHookPredicate |
of(boolean inOpenWater) |
boolean |
test(Entity entity) |
JsonElement |
toJson() |
public static final FishingHookPredicate ANY
private boolean inOpenWater
public static FishingHookPredicate of(boolean inOpenWater)
public static FishingHookPredicate fromJson(@Nullable JsonElement json)
public JsonElement toJson()
public boolean test(Entity entity)