Package dev.latvian.mods.kubejs.script
Class KubeJSContext
java.lang.Object
dev.latvian.mods.rhino.Context
dev.latvian.mods.kubejs.script.KubeJSContext
- Direct Known Subclasses:
KubeJSServerContext
public class KubeJSContext
extends dev.latvian.mods.rhino.Context
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal KubeJSContextFactoryfinal dev.latvian.mods.rhino.ScriptableFields inherited from class dev.latvian.mods.rhino.Context
CONVERSION_EXACT, CONVERSION_NONE, CONVERSION_TRIVIAL, factory, generateObserverCount, JSTYPE_BOOLEAN, JSTYPE_JAVA_ARRAY, JSTYPE_JAVA_CLASS, JSTYPE_JAVA_OBJECT, JSTYPE_NULL, JSTYPE_NUMBER, JSTYPE_OBJECT, JSTYPE_STRING, JSTYPE_UNDEFINED, lock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()intinternalConversionWeightLast(Object fromObj, dev.latvian.mods.rhino.type.TypeInfo target) protected ObjectinternalJsToJavaLast(Object from, dev.latvian.mods.rhino.type.TypeInfo target) booleandev.latvian.mods.rhino.NativeJavaClassloadJavaClass(String name, boolean error) net.minecraft.core.Registry<?> lookupRegistry(dev.latvian.mods.rhino.type.TypeInfo type, Object from) RegistryType<?> lookupRegistryType(dev.latvian.mods.rhino.type.TypeInfo type, Object from) mapOf(@Nullable Object from, dev.latvian.mods.rhino.type.TypeInfo kTarget, dev.latvian.mods.rhino.type.TypeInfo vTarget) booleanvisibleToScripts(String fullClassName, dev.latvian.mods.rhino.util.ClassVisibilityContext type) dev.latvian.mods.rhino.ScriptablewrapAsJavaObject(dev.latvian.mods.rhino.Scriptable scope, Object javaObject, dev.latvian.mods.rhino.type.TypeInfo target) Methods inherited from class dev.latvian.mods.rhino.Context
addToScope, arrayOf, arrayValueProviderOf, callSync, canConvert, coerceToNumber, compileReader, compileString, createClassLoader, createInterfaceAdapter, defaultObjectToSource, doTopCall, evaluateReader, evaluateString, getApplicationClassLoader, getCachedClassStorage, getConversionWeight, getErrorReporter, getImplementationVersion, getInstructionObserverThreshold, getMaximumInterpreterStackDepth, getRegExp, getSizeRank, getSourcePositionFromStack, getThreadLocal, getTopCallOrThrow, getTopCallScope, getUndefinedValue, hasTopCallScope, initJSON, initSafeStandardObjects, initSafeStandardObjects, initSafeStandardObjects, initStandardObjects, initStandardObjects, initStandardObjects, internalConversionWeight, internalJsToJava, isListLike, isStrictMode, javaToJS, javaToJS, jsToJava, lastStoredScriptable, listOf, newArray, newArray, newClassSerialNumber, newObject, newObject, newObject, observeInstructionCount, optionalListOf, optionalListOf, optionalMapOf, optionalMapOf, putThreadLocal, removeThreadLocal, reportConversionError, reportError, reportError, reportRuntimeError, reportRuntimeError, reportRuntimeError0, reportRuntimeError1, reportRuntimeError2, reportRuntimeError3, reportRuntimeError4, reportWarning, reportWarning, setApplicationClassLoader, setGenerateObserverCount, setInstructionObserverThreshold, setOf, setTopCall, storeScriptable, throwAsScriptRuntimeEx, toBoolean, toDouble, toInteger, toNumber, toObject, toString, wrap, wrap, wrapAny, wrapJavaClass, wrapNewObject
-
Field Details
-
kjsFactory
-
topLevelScope
public final dev.latvian.mods.rhino.Scriptable topLevelScope
-
-
Constructor Details
-
KubeJSContext
-
-
Method Details
-
visibleToScripts
public boolean visibleToScripts(String fullClassName, dev.latvian.mods.rhino.util.ClassVisibilityContext type) - Overrides:
visibleToScriptsin classdev.latvian.mods.rhino.Context
-
getType
-
getConsole
-
getRegistries
-
wrapAsJavaObject
public dev.latvian.mods.rhino.Scriptable wrapAsJavaObject(dev.latvian.mods.rhino.Scriptable scope, Object javaObject, dev.latvian.mods.rhino.type.TypeInfo target) - Overrides:
wrapAsJavaObjectin classdev.latvian.mods.rhino.Context
-
internalConversionWeightLast
public int internalConversionWeightLast(Object fromObj, dev.latvian.mods.rhino.type.TypeInfo target) - Overrides:
internalConversionWeightLastin classdev.latvian.mods.rhino.Context
-
lookupRegistryType
-
lookupRegistry
public net.minecraft.core.Registry<?> lookupRegistry(dev.latvian.mods.rhino.type.TypeInfo type, Object from) -
internalJsToJavaLast
- Overrides:
internalJsToJavaLastin classdev.latvian.mods.rhino.Context
-
loadJavaClass
-
classOf
- Overrides:
classOfin classdev.latvian.mods.rhino.Context
-
getJavaClassCache
-
isMapLike
- Overrides:
isMapLikein classdev.latvian.mods.rhino.Context
-
mapOf
public Object mapOf(@Nullable @Nullable Object from, dev.latvian.mods.rhino.type.TypeInfo kTarget, dev.latvian.mods.rhino.type.TypeInfo vTarget) - Overrides:
mapOfin classdev.latvian.mods.rhino.Context
-