Skip to content

Instantly share code, notes, and snippets.

View Konicai's full-sized avatar
🌺

Konicai

🌺
  • Canada
  • 14:25 (UTC -06:00)
View GitHub Profile
@Konicai
Konicai / DebugFlag.java
Last active August 25, 2024 02:55
debug configuration
/*
* Copyright (c) 2024 GeyserMC. http://geysermc.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@Konicai
Konicai / build.gradle.kts
Created July 31, 2024 22:40
Minecraft Decompilation & Deobfuscation with Vanilla Gradle
import org.spongepowered.gradle.vanilla.repository.MinecraftPlatform
import java.nio.file.Files
import java.nio.file.Path
import java.util.zip.ZipFile
plugins {
java
id("org.spongepowered.gradle.vanilla") version "0.2.1-SNAPSHOT"
}
private static AnnotatedType elementType(final AnnotatedType containerType) {
if (!(containerType instanceof AnnotatedParameterizedType)) {
throw new IllegalArgumentException("raw types unsupported");
}
return ((AnnotatedParameterizedType) containerType).getAnnotatedActualTypeArguments()[0];
}
private static Type listType(AnnotatedType elementType) {
return TypeFactory.parameterizedClass(List.class, elementType.getType());
}
task<Exec>("runGeyser") {
println("current directory: ${File("").absoluteFile.name}")
val geyser = "geyser/Geyser-Standalone.jar"
val file = File(geyser)
if (file.exists()) {
val joiner = StringJoiner(" ")
for (mapping in File("mappings").listFiles()!!) {
val name = mapping.name
package dev.kejona.crossplatforms.serialize;
import io.leangen.geantyref.GenericTypeReflector;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.spongepowered.configurate.objectmapping.meta.Constraint;
import org.spongepowered.configurate.objectmapping.meta.PostProcessor;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
package dev.projectg.crossplatforms;
import io.leangen.geantyref.TypeToken;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.spongepowered.configurate.ConfigurateException;
import org.spongepowered.configurate.ConfigurationNode;
import org.spongepowered.configurate.serialize.SerializationException;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Konicai
Konicai / globalApiEndpoints.md
Last active February 16, 2023 05:37
Global API Endpoints (GeyserMC)

You should read this instead now: https://api.geysermc.org/docs

gamertag = Xbox gamertag
xuid = Xbox XUID in decimal format
uuid = Java Edition UUID with or without dashes
username = An Xbox gamertag or Java Edition username

| Endpoint | GET |

@Konicai
Konicai / GeyserStandaloneUpdater.sh
Last active August 12, 2021 00:07
An informative bash script to update Geyser Standalone
#!/bin/bash
# April 2021 - Updates Geyser Standalone.
# Dependencies: unzip, and curl or wget.
# Run geyser after the update check (true).
runGeyser='true'
# Prompt to update (false).
updatePrompt='false'
# If you've renamed Geyser.jar to something else, you must update this value.
localJar='Geyser.jar'