net.minecraft.advancements.critereon

public record EntityPredicate

bv
net.minecraft.advancements.critereon.EntityPredicate
net.minecraft.class_2048
net.minecraft.predicate.entity.EntityPredicate
net.minecraft.src.C_1147_
net.minecraft.advancements.critereon.CriterionConditionEntity

Field summary

Modifier and TypeField
private final Optional<EntityTypePredicate>
c
entityType
comp_1761
type
f_36551_
private final Optional<DistancePredicate>
d
distanceToPlayer
comp_1762
distance
f_36552_
private final Optional<MovementPredicate>
e
movement
comp_2668
movement
f_336844_
private final EntityPredicate$LocationWrapper
f
location
comp_1763
location
f_36553_
private final Optional<MobEffectsPredicate>
g
effects
comp_1765
effects
f_36554_
private final Optional<NbtPredicate>
h
nbt
comp_1766
nbt
f_36555_
private final Optional<EntityFlagsPredicate>
i
flags
comp_1767
flags
f_36556_
private final Optional<EntityEquipmentPredicate>
j
equipment
comp_1768
equipment
f_36557_
private final Optional<EntitySubPredicate>
k
subPredicate
comp_1769
typeSpecific
f_218773_
private final Optional<Integer>
l
periodicTick
comp_2669
periodicTick
f_337247_
private final Optional<EntityPredicate>
m
vehicle
comp_1770
vehicle
f_36560_
private final Optional<EntityPredicate>
n
passenger
comp_1771
passenger
f_150287_
private final Optional<EntityPredicate>
o
targetedEntity
comp_1772
targetedEntity
f_36561_
private final Optional<String>
p
team
comp_1773
team
f_36562_
private final Optional<SlotsPredicate>
q
slots
comp_2446
slots
f_315910_
public static final com.mojang.serialization.Codec<EntityPredicate>
a
CODEC
field_45746
CODEC
f_291089_
public static final com.mojang.serialization.Codec<ContextAwarePredicate>
b
ADVANCEMENT_CODEC
field_47250
LOOT_CONTEXT_PREDICATE_CODEC
f_303210_

Constructor summary

ModifierConstructor
public (Optional<EntityTypePredicate> distanceToPlayer, Optional<DistancePredicate> movement, Optional<MovementPredicate> location, EntityPredicate$LocationWrapper effects, Optional<MobEffectsPredicate> nbt, Optional<NbtPredicate> flags, Optional<EntityFlagsPredicate> equipment, Optional<EntityEquipmentPredicate> subPredicate, Optional<EntitySubPredicate> periodicTick, Optional<Integer> vehicle, Optional<EntityPredicate> passenger, Optional<EntityPredicate> targetedEntity, Optional<EntityPredicate> team, Optional<String> slots, Optional<SlotsPredicate> arg14)

Method summary

Modifier and TypeMethod
public static ContextAwarePredicate
a(bv$a arg0)
wrap(EntityPredicate$Builder arg0)
method_53134(class_2048$class_2049 arg0)
contextPredicateFromEntityPredicate(EntityPredicate$Builder builder)
m_293222_(C_1147_$C_1149_ p_298584_)
public static Optional<ContextAwarePredicate>
a(Optional<bv> arg0)
wrap(Optional<EntityPredicate> arg0)
method_53137(Optional<class_2048> arg0)
contextPredicateFromEntityPredicate(Optional<EntityPredicate> entityPredicate)
m_295302_(Optional<C_1147_> p_300980_)
public static List<ContextAwarePredicate>
a(bv$a... arg0)
wrap(EntityPredicate$Builder... arg0)
method_53139(class_2048$class_2049... arg0)
contextPredicateFromEntityPredicates(EntityPredicate$Builder... builders)
m_294255_(C_1147_$C_1149_... p_299692_)
public static ContextAwarePredicate
a(bv arg0)
wrap(EntityPredicate arg0)
method_51704(class_2048 arg0)
asLootContextPredicate(EntityPredicate predicate)
m_285787_(C_1147_ p_286570_)
public boolean
a(aqv arg0, bsr arg1)
matches(ServerPlayer arg0, Entity arg1)
method_8914(class_3222 arg0, class_1297 arg1)
test(ServerPlayerEntity player, Entity entity)
m_36611_(C_13_ p_36613_, C_507_ arg1)
public boolean
a(aqu arg0, exc arg1, bsr arg2)
matches(ServerLevel arg0, Vec3 arg1, Entity arg2)
method_8909(class_3218 arg0, class_243 arg1, class_1297 arg2)
test(ServerWorld world, Vec3d pos, Entity entity)
m_36607_(C_12_ p_36609_, C_3046_ p_36610_, C_507_ arg2)
public static LootContext
b(aqv arg0, bsr arg1)
createContext(ServerPlayer arg0, Entity arg1)
method_27802(class_3222 arg0, class_1297 arg1)
createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
m_36616_(C_13_ p_36617_, C_507_ p_36618_)
public Optional<EntityTypePredicate>
a()
entityType()
comp_1761()
type()
f_36551_()
public Optional<DistancePredicate>
b()
distanceToPlayer()
comp_1762()
distance()
f_36552_()
public Optional<MovementPredicate>
c()
movement()
comp_2668()
movement()
f_336844_()
public EntityPredicate$LocationWrapper
d()
location()
comp_1763()
location()
f_36553_()
public Optional<MobEffectsPredicate>
e()
effects()
comp_1765()
effects()
f_36554_()
public Optional<NbtPredicate>
f()
nbt()
comp_1766()
nbt()
f_36555_()
public Optional<EntityFlagsPredicate>
g()
flags()
comp_1767()
flags()
f_36556_()
public Optional<EntityEquipmentPredicate>
h()
equipment()
comp_1768()
equipment()
f_36557_()
public Optional<EntitySubPredicate>
i()
subPredicate()
comp_1769()
typeSpecific()
f_218773_()
public Optional<Integer>
j()
periodicTick()
comp_2669()
periodicTick()
f_337247_()
public Optional<EntityPredicate>
k()
vehicle()
comp_1770()
vehicle()
f_36560_()
public Optional<EntityPredicate>
l()
passenger()
comp_1771()
passenger()
f_150287_()
public Optional<EntityPredicate>
m()
targetedEntity()
comp_1772()
targetedEntity()
f_36561_()
public Optional<String>
n()
team()
comp_1773()
team()
f_36562_()
public Optional<SlotsPredicate>
o()
slots()
comp_2446()
slots()
f_315910_()