net.minecraft.advancements.critereon

public record EntityPredicate

bq
net.minecraft.advancements.critereon.EntityPredicate
net.minecraft.class_2048
net.minecraft.unmapped.C_kvkvpjlm
net.minecraft.predicate.entity.EntityPredicate
net.minecraft.predicate.entity.EntityPredicate
net.minecraft.src.C_1147_
net.minecraft.advancements.critereon.CriterionConditionEntity

Field summary

Modifier and TypeField
private final Optional<EntityTypePredicate>
b
entityType
comp_1761
f_xozemqxy
type
type
f_36551_
private final Optional<DistancePredicate>
c
distanceToPlayer
comp_1762
f_tptkhefk
distance
distance
f_36552_
private final Optional<LocationPredicate>
d
location
comp_1763
f_eieyszej
location
location
f_36553_
private final Optional<LocationPredicate>
e
steppingOnLocation
comp_1764
f_lmuipoqi
steppingOn
steppingOn
f_150285_
private final Optional<MobEffectsPredicate>
f
effects
comp_1765
f_scvxyefk
effects
effects
f_36554_
private final Optional<NbtPredicate>
g
nbt
comp_1766
f_bysanlre
nbt
nbt
f_36555_
private final Optional<EntityFlagsPredicate>
h
flags
comp_1767
f_osweyokb
flags
flags
f_36556_
private final Optional<EntityEquipmentPredicate>
i
equipment
comp_1768
f_ycxvlbvr
equipment
equipment
f_36557_
private final Optional<EntitySubPredicate>
j
subPredicate
comp_1769
f_niwouezd
typeSpecific
typeSpecific
f_218773_
private final Optional<EntityPredicate>
k
vehicle
comp_1770
f_yvrkjogt
vehicle
vehicle
f_36560_
private final Optional<EntityPredicate>
l
passenger
comp_1771
f_ifyilwup
passenger
passenger
f_150287_
private final Optional<EntityPredicate>
m
targetedEntity
comp_1772
f_ggbragpd
targetedEntity
targetedEntity
f_36561_
private final Optional<String>
n
team
comp_1773
f_mxeamups
team
team
f_36562_
public static final com.mojang.serialization.Codec<EntityPredicate>
a
CODEC
field_45746
f_krniofyg
CODEC
CODEC
f_291089_

Constructor summary

ModifierConstructor
public (Optional<EntityTypePredicate> type, Optional<DistancePredicate> distance, Optional<LocationPredicate> location, Optional<LocationPredicate> steppingOn, Optional<MobEffectsPredicate> effects, Optional<NbtPredicate> nbt, Optional<EntityFlagsPredicate> flags, Optional<EntityEquipmentPredicate> equipment, Optional<EntitySubPredicate> typeSpecific, Optional<EntityPredicate> vehicle, Optional<EntityPredicate> passenger, Optional<EntityPredicate> targetedEntity, Optional<String> team)

Method summary

Modifier and TypeMethod
public static Optional<ContextAwarePredicate>
a(com.google.gson.JsonObject arg0, String arg1, bg arg2)
fromJson(com.google.gson.JsonObject arg0, String arg1, DeserializationContext arg2)
method_51705(com.google.gson.JsonObject arg0, String arg1, class_5257 arg2)
m_natxrzae(com.google.gson.JsonObject arg0, String arg1, C_gzewtdot arg2)
contextPredicateFromJson(com.google.gson.JsonObject json, String key, AdvancementEntityPredicateDeserializer predicateDeserializer)
m_36614_(com.google.gson.JsonObject p_300195_, String p_297866_, C_723_ p_301262_)
public static List<ContextAwarePredicate>
b(com.google.gson.JsonObject arg0, String arg1, bg arg2)
fromJsonArray(com.google.gson.JsonObject arg0, String arg1, DeserializationContext arg2)
method_51707(com.google.gson.JsonObject arg0, String arg1, class_5257 arg2)
m_zchfsdgz(com.google.gson.JsonObject arg0, String arg1, C_gzewtdot arg2)
contextPredicateArrayFromJson(com.google.gson.JsonObject json, String key, AdvancementEntityPredicateDeserializer predicateDeserializer)
m_285868_(com.google.gson.JsonObject p_286850_, String p_286682_, C_723_ p_286876_)
private static Optional<ContextAwarePredicate>
a(String arg0, bg arg1, com.google.gson.JsonElement arg2)
fromElement(String arg0, DeserializationContext arg1, com.google.gson.JsonElement arg2)
method_51706(String arg0, class_5257 arg1, com.google.gson.JsonElement arg2)
m_opnjebfi(String arg0, C_gzewtdot arg1, com.google.gson.JsonElement arg2)
contextPredicateFromJsonElement(String key, AdvancementEntityPredicateDeserializer predicateDeserializer, com.google.gson.JsonElement json)
m_285915_(String p_286569_, C_723_ p_286821_, com.google.gson.JsonElement p_286582_)
public static ContextAwarePredicate
a(bq$a arg0)
wrap(EntityPredicate$Builder arg0)
method_53134(class_2048$class_2049 arg0)
m_lenpszae(C_kvkvpjlm$C_fnhnavbg arg0)
contextPredicateFromEntityPredicate(EntityPredicate$Builder builder)
m_293222_(C_1147_$C_1149_ p_298584_)
public static Optional<ContextAwarePredicate>
a(Optional<bq> arg0)
wrap(Optional<EntityPredicate> arg0)
method_53137(Optional<class_2048> arg0)
m_qjfpptij(Optional<C_kvkvpjlm> arg0)
contextPredicateFromEntityPredicate(Optional<EntityPredicate> entityPredicate)
m_295302_(Optional<C_1147_> p_300980_)
public static List<ContextAwarePredicate>
a(bq$a... arg0)
wrap(EntityPredicate$Builder... arg0)
method_53139(class_2048$class_2049... arg0)
m_yxtvlcic(C_kvkvpjlm$C_fnhnavbg... arg0)
contextPredicateFromEntityPredicates(EntityPredicate$Builder... builders)
m_294255_(C_1147_$C_1149_... p_299692_)
public static ContextAwarePredicate
a(bq arg0)
wrap(EntityPredicate arg0)
method_51704(class_2048 arg0)
m_wwfhkpji(C_kvkvpjlm arg0)
asLootContextPredicate(EntityPredicate predicate)
m_285787_(C_1147_ p_286570_)
public boolean
a(akr arg0, biq arg1)
matches(ServerPlayer arg0, Entity arg1)
method_8914(class_3222 arg0, class_1297 arg1)
m_txfawcdj(C_mxrobsgg arg0, C_astfners arg1)
test(ServerPlayerEntity player, Entity entity)
test(ServerPlayerEntity player, Entity entity)
m_36611_(C_13_ p_36613_, C_507_ arg1)
public boolean
a(akq arg0, ehn arg1, biq arg2)
matches(ServerLevel arg0, Vec3 arg1, Entity arg2)
method_8909(class_3218 arg0, class_243 arg1, class_1297 arg2)
m_npdomabq(C_bdwnwhiu arg0, C_vgpupfxx arg1, C_astfners arg2)
test(ServerWorld world, Vec3d pos, Entity entity)
test(ServerWorld world, Vec3d pos, Entity entity)
m_36607_(C_12_ p_36609_, C_3046_ p_36610_, C_507_ arg2)
public static Optional<EntityPredicate>
a(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement arg0)
method_8913(com.google.gson.JsonElement arg0)
m_lvpiqxph(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement json)
m_285855_(com.google.gson.JsonElement p_297667_)
public com.google.gson.JsonElement
a()
serializeToJson()
method_8912()
m_cviarbxt()
toJson()
toJson()
m_36606_()
public static LootContext
b(akr arg0, biq arg1)
createContext(ServerPlayer arg0, Entity arg1)
method_27802(class_3222 arg0, class_1297 arg1)
m_sqkvtqxf(C_mxrobsgg arg0, C_astfners arg1)
createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
m_36616_(C_13_ p_36617_, C_507_ p_36618_)
public Optional<EntityTypePredicate>
b()
entityType()
comp_1761()
m_mbellcys()
type()
entityType()
f_36551_()
public Optional<DistancePredicate>
c()
distanceToPlayer()
comp_1762()
m_udgdvtlg()
distance()
distanceToPlayer()
f_36552_()
public Optional<LocationPredicate>
d()
location()
comp_1763()
m_hwupatlc()
location()
location()
f_36553_()
public Optional<LocationPredicate>
e()
steppingOnLocation()
comp_1764()
m_iykufdxb()
steppingOn()
steppingOnLocation()
f_150285_()
public Optional<MobEffectsPredicate>
f()
effects()
comp_1765()
m_zijzmprq()
effects()
effects()
f_36554_()
public Optional<NbtPredicate>
g()
nbt()
comp_1766()
m_qpigtupt()
nbt()
nbt()
f_36555_()
public Optional<EntityFlagsPredicate>
h()
flags()
comp_1767()
m_hmwwicbq()
flags()
flags()
f_36556_()
public Optional<EntityEquipmentPredicate>
i()
equipment()
comp_1768()
m_gvtlizrs()
equipment()
equipment()
f_36557_()
public Optional<EntitySubPredicate>
j()
subPredicate()
comp_1769()
m_jxoqcpks()
typeSpecific()
subPredicate()
f_218773_()
public Optional<EntityPredicate>
k()
vehicle()
comp_1770()
m_kqageqvg()
vehicle()
vehicle()
f_36560_()
public Optional<EntityPredicate>
l()
passenger()
comp_1771()
m_kryapaps()
passenger()
passenger()
f_150287_()
public Optional<EntityPredicate>
m()
targetedEntity()
comp_1772()
m_tcsitkwz()
targetedEntity()
targetedEntity()
f_36561_()
public Optional<String>
n()
team()
comp_1773()
m_xvormuxk()
team()
team()
f_36562_()