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(JsonElement json) |
boolean |
test(ServerWorld world,
BlockPos pos) |
JsonElement |
toJson() |
public static final FluidPredicate ANY
private final StatePredicate state
public boolean test(ServerWorld world, BlockPos pos)
public static FluidPredicate fromJson(@Nullable JsonElement json)
public JsonElement toJson()