1.14.3 build fails with error: EntityAITaskEntry cannot be resolved to a type
Closed this issue ยท 2 comments
EntityAITaskEntry cannot be resolved to a type
/bassebombecraft-1.8/src/main/java/bassebombecraft/event/charm/CharmedMob.java
Goals in the GoalSelector (containe dby CreatureEntity) are private:
public class GoalSelector {
...
private final Set<PrioritizedGoal> goals = Sets.newLinkedHashSet();
Solution:
Access private fields using reflection,
https://stackoverflow.com/questions/1196192/how-to-read-the-value-of-a-private-field-from-a-different-class-in-java
Alternate, unused solution: Use an forge access transformer
https://tutorials.darkhax.net/tutorials/access_transformers/
https://www.minecraftforge.net/forum/topic/69257-113how-to-use-access-transformer/
https://github.com/Cadiboo/NoCubes/blob/9e47ebe0924e5f846babd238bb34b7ee0c2b45d7/src/main/resources/META-INF/accesstransformer.cfg
https://github.com/Cadiboo/NoCubes/blob/9e47ebe0924e5f846babd238bb34b7ee0c2b45d7/build.gradle#L42
https://docs.spongepowered.org/5.1.0/it/plugin/internals/access-transformers.html
Closed with commit c5a0bd1.