Class NeoForgeAdvancementProvider.EntityPredicateReplacementHelper
java.lang.Object
net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.EntityPredicateReplacementHelper
- Enclosing class:
NeoForgeAdvancementProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Optional<EntityTypePredicate> private Optional<EntityEquipmentPredicate> private final Map<com.mojang.serialization.Codec<? extends EntitySubPredicate>, EntitySubPredicate> private final EntityPredicate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends EntitySubPredicate>
voidaddSubPredicate(com.mojang.serialization.Codec<T> key, T predicate) booleanclearEquipmentIfMatches(Predicate<EntityEquipmentPredicate> shouldReplace) booleanclearTypeIfMatches(EntityType<?> type) create()
-
Field Details
-
source
-
extra
private final Map<com.mojang.serialization.Codec<? extends EntitySubPredicate>, EntitySubPredicate> extra -
entityType
-
equipment
-
-
Constructor Details
-
EntityPredicateReplacementHelper
-
-
Method Details
-
clearTypeIfMatches
-
clearEquipmentIfMatches
-
addSubPredicate
public <T extends EntitySubPredicate> void addSubPredicate(com.mojang.serialization.Codec<T> key, T predicate) -
create
-