net.minecraft.predicate

public record FluidPredicate

net.minecraft.advancements.criterion.FluidPredicate
net.minecraft.advancements.criterion.FluidPredicate
net.minecraft.class_4551
net.minecraft.predicate.FluidPredicate

Field summary

Modifier and TypeField
private final Optional<RegistryEntryList<Fluid>>
fluids
fluids
comp_2372
fluids
private final Optional<StatePredicate>
properties
properties
comp_1782
state
public static final com.mojang.serialization.Codec<FluidPredicate>
CODEC
CODEC
field_45753
CODEC

Constructor summary

ModifierConstructor
public (Optional<RegistryEntryList<Fluid>> fluids, Optional<StatePredicate> state)

Method summary

Modifier and TypeMethod
public boolean
matches(ServerLevel level, BlockPos pos)
matches(ServerLevel level, BlockPos pos)
method_22475(class_3218 arg0, class_2338 arg1)
test(ServerWorld world, BlockPos pos)
public Optional<RegistryEntryList<Fluid>>
fluids()
fluids()
comp_2372()
fluids()
public Optional<StatePredicate>
properties()
properties()
comp_1782()
state()