Package gay.object.hexdebug.core.api
Interface HexDebugCoreAPI
public interface HexDebugCoreAPI
Main API service for hexdebug-core. Access via
Unless otherwise stated, all API methods must be called only from the main server thread.
INSTANCE.
Unless otherwise stated, all API methods must be called only from the main server thread.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcreateDebugThread(@NotNull DebugEnvironment debugEnv, @Nullable Integer threadId) default @Nullable DebugEnvironmentgetDebugEnv(@NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env) default @Nullable DebugEnvironmentgetDebugEnv(@NotNull net.minecraft.server.level.ServerPlayer caster, int threadId) default @Nullable DebugEnvironmentgetDebugEnv(@NotNull net.minecraft.server.level.ServerPlayer caster, @NotNull UUID sessionId) default booleanisSessionDebugging(@NotNull DebugEnvironment debugEnv) default voidprintDebugMessage(@NotNull net.minecraft.server.level.ServerPlayer caster, @NotNull UUID sessionId, @NotNull net.minecraft.network.chat.Component message, @NotNull DebugOutputCategory category, boolean withSource) default voidremoveDebugThread(@NotNull DebugEnvironment debugEnv) Removes a debug thread without terminating it.default voidstartDebuggingIotas(@NotNull DebugEnvironment debugEnv, @NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env, @NotNull List<at.petrak.hexcasting.api.casting.iota.Iota> iotas, @Nullable at.petrak.hexcasting.api.casting.eval.vm.CastingImage image) default voidterminateDebugThread(@NotNull DebugEnvironment debugEnv) Terminates and removes a debug thread.
-
Field Details
-
INSTANCE
-
-
Method Details
-
getDebugEnv
@Contract(pure=true) @Nullable default @Nullable DebugEnvironment getDebugEnv(@NotNull @NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env) -
getDebugEnv
@Contract(pure=true) @Nullable default @Nullable DebugEnvironment getDebugEnv(@NotNull @NotNull net.minecraft.server.level.ServerPlayer caster, @NotNull @NotNull UUID sessionId) -
getDebugEnv
@Contract(pure=true) @Nullable default @Nullable DebugEnvironment getDebugEnv(@NotNull @NotNull net.minecraft.server.level.ServerPlayer caster, int threadId) -
createDebugThread
default void createDebugThread(@NotNull @NotNull DebugEnvironment debugEnv, @Nullable @Nullable Integer threadId) throws IllegalDebugSessionException, IllegalDebugThreadException - Throws:
IllegalDebugSessionException- ifdebugEnvis currently associated with an active debug sessionIllegalDebugThreadException- ifthreadIdis out of range for the player associated withdebugEnv, or currently associated with an active debug session
-
startDebuggingIotas
default void startDebuggingIotas(@NotNull @NotNull DebugEnvironment debugEnv, @NotNull @NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env, @NotNull @NotNull List<at.petrak.hexcasting.api.casting.iota.Iota> iotas, @Nullable @Nullable at.petrak.hexcasting.api.casting.eval.vm.CastingImage image) throws IllegalDebugSessionException - Throws:
IllegalDebugSessionException- if no debug thread is currently associated withdebugEnv, or if the debugger is already executing something
-
removeDebugThread
Removes a debug thread without terminating it. -
terminateDebugThread
Terminates and removes a debug thread. -
printDebugMessage
default void printDebugMessage(@NotNull @NotNull net.minecraft.server.level.ServerPlayer caster, @NotNull @NotNull UUID sessionId, @NotNull @NotNull net.minecraft.network.chat.Component message, @NotNull @NotNull DebugOutputCategory category, boolean withSource) -
isSessionDebugging
@Contract(pure=true) default boolean isSessionDebugging(@NotNull @NotNull DebugEnvironment debugEnv)
-