File Details
entityjs-0.7.0.jar
- R
- Jul 4, 2026
- 3.35 MB
- 8.8K
- 1.20.1
- Forge + 1
File Name
entityjs-0.7.0.jar
Supported Versions
- 1.20.1
Curse Maven Snippet
Additions
- Added
.override("someMethod()", callback)toevent.createCustom()entities, letting scripts override supported Java entity methods directly. .override()works with public and protected vanilla or modded entity methods when they are safe to override.- Added dynamic override context values like
context.entity,context.args,context.get("arg0"),context.arg0, andcontext.arg1. - Added named override arguments from Parchment mappings when available, so
customBuilder.override()callbacks can use names likecontext.partialTickswhile still keepingarg0,arg1, etc. as fallback - Added
context.superCall()for dynamic overrides, includingcontext.superCall(...args)to call the original method with replacement arguments. - Added
EntityJSUtils.superCall()for supported builder and modify callbacks where acontextobject may not be available. - Added
EntityJSUtils.getCallbackInfo()formodifyEntitycallbacks. - Added callback control helpers on supported contexts:
context.cancel(),context.setReturnValue(value),context.returnValue(), andcontext.superCall(). - Added
setRenderer(context => ...)toevent.createCustom()for custom renderer factories. - Added
setRendererClass(...)toevent.createCustom()for using an existing renderer class. - Added
setModel(context => ...)toevent.createCustom()for custom model factories. - Added support for
event.createCustom()with non-living entities. - Added support for rendering custom non-living entities with GeckoLib or existing renderer classes.
- Added
playStepSound,playMuffledStepSound, andplayCombinationStepSoundsto EntityJS entity builders. - Added
playStepSound,playMuffledStepSound, andplayCombinationStepSoundstoEntityJSEvents.modifyEntity(). - Added fallback overrides for methods often needed on final entity classes:
playSwimSound,doWaterSplashEffect,processFlappingMovement, andcanBeHitByProjectile.
ProbeJS / Typing Improvements
- Added better ProbeJS support for
event.createCustom()builders. - Added ProbeJS suggestions for
.override()method keys. - Added typed override contexts, so
context.entitymatches the custom entity class when possible. - Added typed
setRendererClass("")string suggestions of viable renderer class strings setRendererClass("")now suggests real renderer classes that can actually load and pass EntityJS renderer checks.setRendererClass("some.class.Name")still accepts custom strings even when they are not in the suggestion list.- Improved dedicated server safety for ProbeJS typing generation so client-only renderer classes are not loaded on servers.
- Replaced
constwithletin some ProbeJS typing examples
Changes
- Removed
setModelClass(...). Most Minecraft model classes need constructor arguments, so scripts should usesetModel(context => new MyModel(...))instead. setRendererClass(...)is now the class-based shortcut for existing renderer classes.setModel(...)is now the correct model API for custom models.- Changed
canThrowdefault totrueinProjectileItemBuilder.
Improvements
- Improved busy callback performance by caching faster Rhino callback invocation paths when using any EntityJS script facing callback. (30% performance increase profiled on over 500k test iterations)
- Expanded cached callback handling across GeckoLib, AI behavior helpers, spawn placement predicates, vanilla goals, setup callbacks, and modify callbacks.
- Added callback argument initialization so common entity arguments are ready before server-side logic runs.
- Added callback profiling tools for debugging callback setup, JS calls, super calls, return conversion, and context creation.
- Changed most boolean callbacks to use EntityJS’s new
BooleanCallbackinterface. - Improved wrapped custom entity behavior by defaulting synced values to the original entity values.
Fixes
- Fixed Forge remapping issues caused by methods using
remap = trueincorrectly. - Fixed
PiglinEntityJSnot wiringisConvertingandfinishConversion. - Fixed custom and tameable entity builders missing default movement speed values.
- Fixed
ProjectileAnimatableJSandProjectileEntityJSworld-save errors when summoned without an item.