net.minecraft.advancements.critereon

public record EntityPredicate

bw
net.minecraft.advancements.critereon.EntityPredicate
net.minecraft.class_2048
net.minecraft.predicate.entity.EntityPredicate
net.minecraft.advancements.critereon.CriterionConditionEntity

Field summary

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

Constructor summary

ModifierConstructor
public (Optional<EntityTypePredicate> arg0, Optional<DistancePredicate> arg1, Optional<MovementPredicate> arg2, EntityPredicate$LocationWrapper arg3, Optional<MobEffectsPredicate> arg4, Optional<NbtPredicate> arg5, Optional<EntityFlagsPredicate> arg6, Optional<EntityEquipmentPredicate> arg7, Optional<EntitySubPredicate> arg8, Optional<Integer> arg9, Optional<EntityPredicate> arg10, Optional<EntityPredicate> arg11, Optional<EntityPredicate> arg12, Optional<String> arg13, Optional<SlotsPredicate> arg14)

Method summary

Modifier and TypeMethod
public static ContextAwarePredicate
a(bw$a arg0)
wrap(EntityPredicate$Builder arg0)
method_53134(class_2048$class_2049 arg0)
contextPredicateFromEntityPredicate(EntityPredicate$Builder builder)
public static Optional<ContextAwarePredicate>
a(Optional<bw> arg0)
wrap(Optional<EntityPredicate> arg0)
method_53137(Optional<class_2048> arg0)
contextPredicateFromEntityPredicate(Optional<EntityPredicate> entityPredicate)
public static List<ContextAwarePredicate>
a(bw$a... arg0)
wrap(EntityPredicate$Builder... arg0)
method_53139(class_2048$class_2049... arg0)
contextPredicateFromEntityPredicates(EntityPredicate$Builder... builders)
public static ContextAwarePredicate
a(bw arg0)
wrap(EntityPredicate arg0)
method_51704(class_2048 arg0)
asLootContextPredicate(EntityPredicate predicate)
public boolean
a(asi arg0, bvk arg1)
matches(ServerPlayer arg0, Entity arg1)
method_8914(class_3222 arg0, class_1297 arg1)
test(ServerPlayerEntity player, Entity entity)
public boolean
a(ash arg0, fby arg1, bvk 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)
public static LootContext
b(asi arg0, bvk arg1)
createContext(ServerPlayer arg0, Entity arg1)
method_27802(class_3222 arg0, class_1297 arg1)
createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
public Optional<EntityTypePredicate>
a()
entityType()
comp_1761()
type()
public Optional<DistancePredicate>
b()
distanceToPlayer()
comp_1762()
distance()
public Optional<MovementPredicate>
c()
movement()
comp_2668()
movement()
public EntityPredicate$LocationWrapper
d()
location()
comp_1763()
location()
public Optional<MobEffectsPredicate>
e()
effects()
comp_1765()
effects()
public Optional<NbtPredicate>
f()
nbt()
comp_1766()
nbt()
public Optional<EntityFlagsPredicate>
g()
flags()
comp_1767()
flags()
public Optional<EntityEquipmentPredicate>
h()
equipment()
comp_1768()
equipment()
public Optional<EntitySubPredicate>
i()
subPredicate()
comp_1769()
typeSpecific()
public Optional<Integer>
j()
periodicTick()
comp_2669()
periodicTick()
public Optional<EntityPredicate>
k()
vehicle()
comp_1770()
vehicle()
public Optional<EntityPredicate>
l()
passenger()
comp_1771()
passenger()
public Optional<EntityPredicate>
m()
targetedEntity()
comp_1772()
targetedEntity()
public Optional<String>
n()
team()
comp_1773()
team()
public Optional<SlotsPredicate>
o()
slots()
comp_2446()
slots()