Class FluidPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.FluidPredicate
-
public class FluidPredicate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static FluidPredicate
ANY
private Fluid
fluid
private StatePropertiesPredicate
properties
private ITag<Fluid>
tag
-
Constructor Summary
Constructors Constructor Description FluidPredicate(ITag<Fluid> p_i225738_1_, Fluid p_i225738_2_, StatePropertiesPredicate p_i225738_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FluidPredicate
fromJson(com.google.gson.JsonElement p_226648_0_)
boolean
matches(ServerWorld p_226649_1_, BlockPos p_226649_2_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final FluidPredicate ANY
-
fluid
@Nullable private final Fluid fluid
-
properties
private final StatePropertiesPredicate properties
-
-
Constructor Detail
-
FluidPredicate
public FluidPredicate(@Nullable ITag<Fluid> p_i225738_1_, @Nullable Fluid p_i225738_2_, StatePropertiesPredicate p_i225738_3_)
-
-
Method Detail
-
matches
public boolean matches(ServerWorld p_226649_1_, BlockPos p_226649_2_)
-
fromJson
public static FluidPredicate fromJson(@Nullable com.google.gson.JsonElement p_226648_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-