Class DebugEnvironment

java.lang.Object
gay.object.hexdebug.core.api.debugging.env.DebugEnvironment
Direct Known Subclasses:
BaseCircleDebugEnv, SimplePlayerBasedDebugEnv

public abstract class DebugEnvironment extends Object
Like CastingEnvironment, but for debugging.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DebugEnvironment(@NotNull net.minecraft.server.level.ServerPlayer caster)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.server.level.ServerPlayer
     
    @Nullable DebugStepType
     
    @Nullable at.petrak.hexcasting.api.casting.castables.Action
     
    abstract @NotNull net.minecraft.network.chat.Component
    Returns a display name for this debug session.
    @NotNull UUID
     
    abstract boolean
    For in-world debugees, returns whether the caster is close enough to the debuggee to allow debug-related actions to be performed (eg.
    boolean
     
    void
    postStep(@NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env, @NotNull at.petrak.hexcasting.api.casting.eval.vm.CastingImage image, @Nullable StopReason reason)
    Do whatever you like after each debugger step.
    void
    printDebugMessage(@NotNull net.minecraft.network.chat.Component message)
     
    void
    printDebugMessage(@NotNull net.minecraft.network.chat.Component message, @NotNull OutputCategory category)
     
    void
    printDebugMessage(@NotNull net.minecraft.network.chat.Component message, @NotNull OutputCategory category, boolean withSource)
     
    void
    printDebugMishap(@NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env, at.petrak.hexcasting.api.casting.eval.sideeffects.OperatorSideEffect.DoMishap sideEffect)
     
    abstract void
    restart(int threadId)
    Attempts to restart the debuggee on the given debug thread.
    abstract boolean
    resume(@NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env, @NotNull at.petrak.hexcasting.api.casting.eval.vm.CastingImage image, @NotNull at.petrak.hexcasting.api.casting.eval.ResolvedPatternType resolutionType)
    Attempts to resume execution of the debuggee.
    void
    setLastDebugStepType(@Nullable DebugStepType lastDebugStepType)
     
    void
    setLastEvaluatedAction(@Nullable at.petrak.hexcasting.api.casting.castables.Action lastEvaluatedAction)
     
    abstract void
    Terminates the debuggee.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait