Class SafeClassDefiner
java.lang.Object
com.destroystokyo.paper.event.executor.asm.SafeClassDefiner
- All Implemented Interfaces:
ClassDefiner
-
Method Summary
Modifier and TypeMethodDescriptiondefineClass
(@NotNull ClassLoader parentLoader, @NotNull String name, @org.jetbrains.annotations.NotNull byte[] data) Define a classMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.destroystokyo.paper.event.executor.asm.ClassDefiner
isBypassAccessChecks
-
Method Details
-
defineClass
@NotNull public @NotNull Class<?> defineClass(@NotNull @NotNull ClassLoader parentLoader, @NotNull @NotNull String name, @NotNull @org.jetbrains.annotations.NotNull byte[] data) Description copied from interface:ClassDefiner
Define a class- Specified by:
defineClass
in interfaceClassDefiner
- Parameters:
parentLoader
- the parent classloadername
- the name of the classdata
- the class data to load- Returns:
- the defined class
-