Fixed
- Resolved an issue where
getTypeId
could not be accessed due to its private access modifier, enhancing the method's usability. - Addressed a bug causing the goal event to fire twice for EntityJS entities, improving event handling consistency.
Added
- Implemented automatic generation of egg items for entities, streamlining the entity creation process.
- Introduced
.noEggItem()
method, allowing developers to opt-out of automatic egg item generation if needed.
New Features
- Enhanced
addGoalSelectors
andaddGoals
events, now capable of modifying all Mob entities - Introduced
.removeGoal()
,.removeGoals()
, and.removeAllGoals()
methods to bothaddGoalSelectors
andaddGoals
events, allowing the removal of existing goals. - Enhanced
buildBrain()
andbuildBrainProvider()
events which can now modify any entity brain, assuming these entities do not override thebrainProvider
/getBrain
methods in their subclasses - Introduced
getEntity()
method to all goal events, granting access to the mob instance involved in the event