net.minecraft.advancements.critereon

public record LocationPredicate

cj
net.minecraft.advancements.critereon.LocationPredicate
net.minecraft.class_2090
net.minecraft.predicate.entity.LocationPredicate
net.minecraft.src.C_1761_
net.minecraft.advancements.critereon.CriterionConditionLocation

Field summary

Modifier and TypeField
private final Optional<LocationPredicate$PositionPredicate>
b
position
comp_1794
position
f_290578_
private final Optional<ResourceKey<Biome>>
c
biome
comp_1795
biome
f_52597_
private final Optional<ResourceKey<Structure>>
d
structure
comp_1796
structure
f_220588_
private final Optional<ResourceKey<Level>>
e
dimension
comp_1797
dimension
f_52599_
private final Optional<Boolean>
f
smokey
comp_1798
smokey
f_52600_
private final Optional<LightPredicate>
g
light
comp_1799
light
f_52601_
private final Optional<BlockPredicate>
h
block
comp_1800
block
f_52602_
private final Optional<FluidPredicate>
i
fluid
comp_1801
fluid
f_52603_
public static final com.mojang.serialization.Codec<LocationPredicate>
a
CODEC
field_45760
CODEC
f_291013_

Constructor summary

ModifierConstructor
public (Optional<LocationPredicate$PositionPredicate> f_52597_, Optional<ResourceKey<Biome>> f_220588_, Optional<ResourceKey<Structure>> f_52599_, Optional<ResourceKey<Level>> f_52600_, Optional<Boolean> f_52601_, Optional<LightPredicate> f_52602_, Optional<BlockPredicate> f_52603_, Optional<FluidPredicate> arg7)

Method summary

Modifier and TypeMethod
private static Optional<LocationPredicate>
a(Optional<cj$b> arg0, Optional<aev<cqt>> arg1, Optional<aev<dvi>> arg2, Optional<aev<cpv>> arg3, Optional<Boolean> arg4, Optional<cg> arg5, Optional<av> arg6, Optional<bx> arg7)
of(Optional<LocationPredicate$PositionPredicate> arg0, Optional<ResourceKey<Biome>> arg1, Optional<ResourceKey<Structure>> arg2, Optional<ResourceKey<Level>> arg3, Optional<Boolean> arg4, Optional<LightPredicate> arg5, Optional<BlockPredicate> arg6, Optional<FluidPredicate> arg7)
method_53179(Optional<class_2090$class_8747> arg0, Optional<class_5321<class_1959>> arg1, Optional<class_5321<class_3195>> arg2, Optional<class_5321<class_1937>> arg3, Optional<Boolean> arg4, Optional<class_4552> arg5, Optional<class_4550> arg6, Optional<class_4551> arg7)
create(Optional<LocationPredicate$PositionRange> position, Optional<RegistryKey<Biome>> biome, Optional<RegistryKey<Structure>> structure, Optional<RegistryKey<World>> dimension, Optional<Boolean> smokey, Optional<LightPredicate> light, Optional<BlockPredicate> block, Optional<FluidPredicate> fluid)
m_293490_(Optional<C_1761_$C_290300_> p_298583_, Optional<C_5264_<C_1629_>> p_299235_, Optional<C_5264_<C_213164_>> p_300788_, Optional<C_5264_<C_1596_>> p_299843_, Optional<Boolean> p_299039_, Optional<C_1722_> p_297467_, Optional<C_411_> p_298254_, Optional<C_1356_> p_297912_)
public boolean
a(akq arg0, double arg1, double arg2, double arg3)
matches(ServerLevel arg0, double arg1, double arg2, double arg3)
method_9018(class_3218 arg0, double arg1, double arg2, double arg3)
test(ServerWorld world, double x, double y, double z)
m_52617_(C_12_ p_52619_, double p_52620_, double arg2, double arg3)
public com.google.gson.JsonElement
a()
serializeToJson()
method_9019()
toJson()
m_52616_()
public static Optional<LocationPredicate>
a(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement arg0)
method_9021(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement json)
m_52629_(com.google.gson.JsonElement p_52630_)
public Optional<LocationPredicate$PositionPredicate>
b()
position()
comp_1794()
position()
f_290578_()
public Optional<ResourceKey<Biome>>
c()
biome()
comp_1795()
biome()
f_52597_()
public Optional<ResourceKey<Structure>>
d()
structure()
comp_1796()
structure()
f_220588_()
public Optional<ResourceKey<Level>>
e()
dimension()
comp_1797()
dimension()
f_52599_()
public Optional<Boolean>
f()
smokey()
comp_1798()
smokey()
f_52600_()
public Optional<LightPredicate>
g()
light()
comp_1799()
light()
f_52601_()
public Optional<BlockPredicate>
h()
block()
comp_1800()
block()
f_52602_()
public Optional<FluidPredicate>
i()
fluid()
comp_1801()
fluid()
f_52603_()