public class FluidPredicate extends Object
| Modifier and Type | Field and Description |
|---|---|
static FluidPredicate |
ANY |
private Fluid |
fluid |
private StatePredicate |
state |
private Tag<Fluid> |
tag |
| Constructor and Description |
|---|
FluidPredicate(Tag<Fluid> tag,
Fluid fluid,
StatePredicate state) |
| Modifier and Type | Method and Description |
|---|---|
static FluidPredicate |
fromJson(com.google.gson.JsonElement json) |
boolean |
test(ServerWorld world,
BlockPos pos) |
com.google.gson.JsonElement |
toJson() |
public static final FluidPredicate ANY
private final StatePredicate state
public boolean test(ServerWorld world, BlockPos pos)
public static FluidPredicate fromJson(@Nullable com.google.gson.JsonElement json)
public com.google.gson.JsonElement toJson()