This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mcp; | |
import javax.annotation.Nonnull; | |
import java.lang.annotation.Documented; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import javax.annotation.meta.TypeQualifierDefault; | |
@Documented |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classMap = {} | |
def mapDescriptor(desc): | |
global classMap | |
newDesc = "(" | |
index = 1 | |
while index < len(desc): | |
if desc[index] == "L": | |
endIndex = index + 1 | |
while desc[endIndex] != ";": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EARTHCOMPUTER'S HACKFIX FOR SPECIALSOURCE FUCKING UP IN 1.13 | |
from zipfile import ZipFile | |
import sys | |
def load_csrg(csrgf): | |
csrg = {} | |
for line in csrgf: | |
parts = line.rstrip().split(" ") | |
if len(parts) > 2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import net.minecraft.command.CommandBase; | |
import net.minecraft.command.CommandException; | |
import net.minecraft.command.ICommandSender; | |
import net.minecraft.command.WrongUsageException; | |
import net.minecraft.server.MinecraftServer; | |
import test.TestRandom.DebugLevel; | |
public class CommandDebugRandom extends CommandBase { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.util.Arrays; | |
import java.util.Random; | |
import java.util.stream.Collectors; | |
public class TestRandom extends Random { | |
private static final long serialVersionUID = 1L; |
NewerOlder