Package net.citizensnpcs.api.scripting
Interface ContextProvider
- All Known Implementing Classes:
EventRegistrar
,ObjectProvider
public interface ContextProvider
Provides useful objects or methods to an instance of
Script
. It should be run just before the script is
evaluated, to ensure that the root level of the script can access the provided functions.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Provides context to a script, such as viaScript.setAttribute(String, Object)
.
-
Method Details
-
provide
Provides context to a script, such as viaScript.setAttribute(String, Object)
.- Parameters:
script
- The script to provide context to.
-