Skip to content

Instantly share code, notes, and snippets.

View zeroeightysix's full-sized avatar

Ridan Vandenbergh zeroeightysix

View GitHub Profile
@zeroeightysix
zeroeightysix / BrigadierDsl.kt
Created September 9, 2020 13:48
A small kotlin DSL for brigadier
import com.mojang.brigadier.CommandDispatcher
import com.mojang.brigadier.arguments.*
import com.mojang.brigadier.builder.ArgumentBuilder
import com.mojang.brigadier.builder.LiteralArgumentBuilder
import com.mojang.brigadier.builder.RequiredArgumentBuilder
import com.mojang.brigadier.context.CommandContext
@DslMarker
@Target(AnnotationTarget.TYPE)
annotation class BrigadierDsl
-------------------------------------------------------------------------------
>Log Session: Sunday, February 2, 2020 at 10:10:53 PM Central European Standard Time
>System Info:
Product Version = VisualVM 1.4.3
Operating System = Linux version 5.4.15-arch1-1 running on amd64
Java; VM; Vendor = 11.0.6; OpenJDK 64-Bit Server VM 11.0.6+10; Oracle Corporation
Runtime = OpenJDK Runtime Environment 11.0.6+10
Java Home = /usr/lib/jvm/java-11-openjdk
System Locale; Encoding = en_GB (visualvm); UTF-8
Home Directory = /home/ridan
-------------------------------------------------------------------------------
>Log Session: Saturday, February 1, 2020 at 7:27:32 PM Central European Standard Time
>System Info:
Product Version = VisualVM 1.4.3
Operating System = Linux version 5.4.15-arch1-1 running on amd64
Java; VM; Vendor = 11.0.6; OpenJDK 64-Bit Server VM 11.0.6+10; Oracle Corporation
Runtime = OpenJDK Runtime Environment 11.0.6+10
Java Home = /usr/lib/jvm/java-11-openjdk
System Locale; Encoding = en_GB (visualvm); UTF-8
Home Directory = /home/ridan
-------------------------------------------------------------------------------
>Log Session: Friday, January 31, 2020 3:49:04 PM CET
>System Info:
Product Version = VisualVM 1.4.3
Operating System = Linux version 5.4.15-arch1-1 running on amd64
Java; VM; Vendor = 1.8.0_242; OpenJDK 64-Bit Server VM 25.242-b08; Oracle Corporation
Runtime = OpenJDK Runtime Environment 1.8.0_242-b08
Java Home = /usr/lib/jvm/java-8-openjdk/jre
System Locale; Encoding = en_GB (visualvm); UTF-8
Home Directory = /home/ridan
[exec] sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file
[exec] at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method)
[exec] at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:286)
[exec] at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:673)
[exec] at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:611)
[exec] at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:337)
[exec] at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304)
[exec] at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:156)
[exec] Caused: java.lang.reflect.InvocationTargetException
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
public class MinecraftScreen extends Screen {
private ImGui imgui = ImGui.INSTANCE;
private ImplGL3 implGl3;
private ImplGlfw implGlfw;
private boolean[] showDemoWindow = new boolean[] { false };
public KamiGuiScreen() {