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 TypeMethodDescription@NotNull net.minecraft.world.InteractionResultstartDebugging(@NotNull net.minecraft.server.level.ServerPlayer caster, int threadId) Called server-side by the default implementation ofstartDebugging(UseOnContext, int)to start a debug session for this block on the given thread.default @NotNull net.minecraft.world.InteractionResultstartDebugging(@NotNull net.minecraft.world.item.context.UseOnContext context, int threadId) Called server-side byDebuggerItem#useOnto 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 byDebuggerItem#useOnto start a debug session for this block on the given thread.
By default, this just callsstartDebugging(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 ofstartDebugging(UseOnContext, int)to start a debug session for this block on the given thread.
-