Removed the sonatype snapshots repo from the Paper module as adventure is properly released now.
Changes
Updated the default BukkitScriptEvent#getContext impl to use modern switch expressions.
ScriptEventRegistrty now uses the new EntityHelper#getEnters/ExistsVehicleEventImpl methods.
EntityEnters/ExistsVehicleScriptEvent now have a fire method for their impls instead of a listener, and don't store the event anymore (doesn't look like it was used either way?).
Additions
EntityHelper#getEnters/ExistsVehicleEventImpl - to get the version-specific listener impls for these events.
EntityHelper$EntityEnters/ExistsVehicleScriptEventImpl - default impls with the 1.20+ API.
EntityEnters/ExistsVehicleScriptEvent#getName like in the good old days™️ - didn't want to adjust the whole notNameParts logic for a temporary patch, so just implemented these manually for now.
Removals
sonatype
snapshots repo from the Paper module as adventure is properly released now.Changes
BukkitScriptEvent#getContext
impl to use modern switch expressions.ScriptEventRegistrty
now uses the newEntityHelper#getEnters/ExistsVehicleEventImpl
methods.EntityEnters/ExistsVehicleScriptEvent
now have afire
method for their impls instead of a listener, and don't store the event anymore (doesn't look like it was used either way?).Additions
EntityHelper#getEnters/ExistsVehicleEventImpl
- to get the version-specific listener impls for these events.EntityHelper$EntityEnters/ExistsVehicleScriptEventImpl
- default impls with the 1.20+ API.EntityEnters/ExistsVehicleScriptEvent#getName
like in the good old days™️ - didn't want to adjust the wholenotNameParts
logic for a temporary patch, so just implemented these manually for now.