Interface DebuggableBlock


public interface DebuggableBlock
An interface for a Block or BlockEntity that can start debugging when right-clicked by a debugger.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.world.InteractionResult
    startDebugging(@NotNull net.minecraft.server.level.ServerPlayer caster, int threadId)
    Called server-side by the default implementation of startDebugging(UseOnContext, int) to start a debug session for this block on the given thread.
    default @NotNull net.minecraft.world.InteractionResult
    startDebugging(@NotNull net.minecraft.world.item.context.UseOnContext context, int threadId)
    Called server-side by DebuggerItem#useOn to start a debug session for this block on the given thread.
  • Method Details

    • startDebugging

      @NotNull default @NotNull net.minecraft.world.InteractionResult startDebugging(@NotNull @NotNull net.minecraft.world.item.context.UseOnContext context, int threadId)
      Called server-side by DebuggerItem#useOn to start a debug session for this block on the given thread.
      By default, this just calls startDebugging(ServerPlayer, int).
    • startDebugging

      @NotNull @NotNull net.minecraft.world.InteractionResult startDebugging(@NotNull @NotNull net.minecraft.server.level.ServerPlayer caster, int threadId)
      Called server-side by the default implementation of startDebugging(UseOnContext, int) to start a debug session for this block on the given thread.