DebuggableBlock

public interface DebuggableBlock(source)

An interface for a Block or BlockEntity that can start debugging when right-clicked by a debugger.

Functions

Link copied to clipboard
@NotNull()
public abstract @NotNull() InteractionResult startDebugging(@NotNull() @NotNull() ServerPlayer caster, int threadId)
Called server-side by the default implementation of startDebugging to start a debug session for this block on the given thread.
@NotNull()
public @NotNull() InteractionResult startDebugging(@NotNull() @NotNull() UseOnContext context, int threadId)
Called server-side by DebuggerItem#useOn to start a debug session for this block on the given thread.