Class EntityPredicate.Builder
java.lang.Object
net.minecraft.advancements.predicates.entity.EntityPredicate.Builder
- Enclosing class:
EntityPredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ImmutableMap.Builder<com.mojang.serialization.Codec<? extends EntitySubPredicate>, EntitySubPredicate> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()components(Map<DataComponentPredicate.Type<?>, DataComponentPredicate> components) components(DataComponentMatchers components) components(DataComponentExactPredicate components) cubeMob(CubeMobPredicate cubeMob) distance(DistancePredicate distanceToPlayer) effects(MobEffectsPredicate.Builder effects) static EntityPredicate.Builderentity()entityType(EntityTypePredicate entityType) equipment(EntityEquipmentPredicate equipment) equipment(EntityEquipmentPredicate.Builder equipment) fishingHook(FishingHookPredicate fishingHook) static EntityPredicate.Builderfrom(EntityPredicate predicate, Predicate<com.mojang.serialization.Codec<? extends EntitySubPredicate>> filter) Neo: create a builder that inherits all sub-predicates from the givenpredicate, that match the givenfilter.lightingBolt(LightningBoltPredicate lightningBolt) located(LocationPredicate.Builder location) movementAffectedBy(LocationPredicate.Builder location) moving(MovementPredicate movement) nbt(NbtPredicate nbt) of(HolderGetter<EntityType<?>> lookup, TagKey<EntityType<?>> entityTypeTag) of(HolderGetter<EntityType<?>> lookup, EntityType<?> entityType) passenger(EntityPredicate.Builder passenger) periodicTick(int period) player(PlayerPredicate player) <T extends EntitySubPredicate>
EntityPredicate.Builderput(com.mojang.serialization.Codec<T> key, T predicate) raider(RaiderPredicate raider) sheep(SheepPredicate sheep) slots(SlotsPredicate slots) steppingOn(LocationPredicate.Builder location) targetedEntity(EntityPredicate.Builder targetedEntity) vehicle(EntityPredicate.Builder vehicle)
-
Field Details
-
parts
private final ImmutableMap.Builder<com.mojang.serialization.Codec<? extends EntitySubPredicate>, EntitySubPredicate> parts
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
entity
-
from
public static EntityPredicate.Builder from(EntityPredicate predicate, Predicate<com.mojang.serialization.Codec<? extends EntitySubPredicate>> filter) Neo: create a builder that inherits all sub-predicates from the givenpredicate, that match the givenfilter. -
put
public <T extends EntitySubPredicate> EntityPredicate.Builder put(com.mojang.serialization.Codec<T> key, T predicate) -
of
-
of
public EntityPredicate.Builder of(HolderGetter<EntityType<?>> lookup, TagKey<EntityType<?>> entityTypeTag) -
entityType
-
distance
-
moving
-
located
-
steppingOn
-
movementAffectedBy
-
effects
-
nbt
-
flags
-
equipment
-
equipment
-
periodicTick
-
vehicle
-
passenger
-
targetedEntity
-
team
-
slots
-
components
-
components
-
components
public EntityPredicate.Builder components(Map<DataComponentPredicate.Type<?>, DataComponentPredicate> components) -
lightingBolt
-
player
-
sheep
-
cubeMob
-
raider
-
fishingHook
-
build
-