Uses of Record Class
net.minecraft.advancements.critereon.LocationPredicate
Package
Description
-
Uses of LocationPredicate in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LocationPredicate>
LocationPredicate.CODEC
private Optional<LocationPredicate>
EntityPredicate.Builder.location
private final Optional<LocationPredicate>
EntityPredicate.location
The field for thelocation
record component.private final Optional<LocationPredicate>
DistanceTrigger.TriggerInstance.startPosition
private Optional<LocationPredicate>
EntityPredicate.Builder.steppingOnLocation
private final Optional<LocationPredicate>
EntityPredicate.steppingOnLocation
The field for thesteppingOnLocation
record component.Modifier and TypeMethodDescriptionstatic Optional<LocationPredicate>
LocationPredicate.fromJson
(com.google.gson.JsonElement p_52630_) EntityPredicate.location()
Returns the value of thelocation
record component.private static Optional<LocationPredicate>
LocationPredicate.of
(Optional<LocationPredicate.PositionPredicate> p_299175_, Optional<ResourceKey<Biome>> p_298741_, Optional<ResourceKey<Structure>> p_298654_, Optional<ResourceKey<Level>> p_298829_, Optional<Boolean> p_299313_, Optional<LightPredicate> p_299195_, Optional<BlockPredicate> p_299295_, Optional<FluidPredicate> p_298350_) EntityPredicate.steppingOnLocation()
Returns the value of thesteppingOnLocation
record component. -
Uses of LocationPredicate in net.minecraft.world.level.storage.loot.predicates
Modifier and TypeFieldDescriptionprivate final Optional<LocationPredicate>
LocationCheck.predicate
The field for thepredicate
record component.Modifier and TypeMethodDescriptionLocationCheck.predicate()
Returns the value of thepredicate
record component.ModifierConstructorDescriptionLocationCheck
(Optional<LocationPredicate> predicate, BlockPos offset) Creates an instance of aLocationCheck
record class.