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
public class DIJavaPlugin extends JavaPlugin { | |
public void onEnable() { | |
getServer().getPluginManager().registerEvents(new Child(this), this); | |
} | |
} class Child implements Listener { | |
private final JavaPlugin parentPlugin; | |
public Child(JavaPlugin pl) { | |
parentPlugin = pl; |
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
public class LocationStore { | |
private static final HashMap<UUID, Location> SPECTATOR_POS = new HashMap<>(); | |
public static Location getLoc(Player player) { | |
return SPECTATOR_POS.get(player.getUniqueId()); | |
} | |
public static void setLoc(Player player) { |
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
/** | |
* Guesses the inner classes from class nodes | |
*/ | |
public void fixInnerClasses() { | |
Map<String, InnerClassNode> splitInner = new HashMap<>(); | |
Set<String> enums = new HashSet<>(); | |
Map<String, List<InnerClassNode>> parents = new HashMap<>(); | |
Map<String, ClassNode> classNodes = new HashMap<>(); |
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 de.geolykt.moremusic; | |
import java.lang.reflect.Method; | |
import org.jetbrains.annotations.NotNull; | |
import org.jetbrains.annotations.Nullable; | |
import org.objectweb.asm.Opcodes; | |
import org.objectweb.asm.tree.AbstractInsnNode; | |
import org.objectweb.asm.tree.ClassNode; | |
import org.objectweb.asm.tree.InsnList; |
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
DEFINE PUBLIC S()Ljava/lang/String; | |
A: | |
LDC "" | |
ASTORE 1 | |
ALOAD this | |
INVOKEVIRTUAL snoddasmannen/galimulator/Empire.getName()Ljava/lang/String; | |
LDC " " | |
INVOKEVIRTUAL java/lang/String.split(Ljava/lang/String;)[Ljava/lang/String; | |
ASTORE 2 // save Array | |
ALOAD 2 // obtain array length |
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
/** | |
* Guesses anonymous inner classes by checking whether they have a synthetic field and if they | |
* do whether they are referenced only by a single "parent" class. | |
* Note: this method is VERY aggressive when it comes to adding inner classes, sometimes it adds | |
* inner classes on stuff where it wouldn't belong. This means that useage of this method should | |
* be done wiseley. This method will do some damage even if it does no good. | |
* | |
* @param doLog whether to perfom any logging via System.out | |
*/ |
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 de.geolykt.galimp.prototype.server; | |
import java.nio.ByteBuffer; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import de.geolykt.galimp.prototype.Side; | |
import de.geolykt.galimp.prototype.common.PacketProccessor; | |
import de.geolykt.galimp.prototype.server.packets.processing.JoinPacketProcessor; |
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
export JAVA_HOME=`alternatives --display java | grep "link currently points to" | tr ' ' '\n' | grep -o -P "[\\/].+" | sed -e "s/bin\/java//"` |
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
WARN: Method parseOptions ([Ljava/lang/String;)[Ljava/lang/String; in class org/junit/runner/JUnitCommandLineParseResult couldn't be decompiled. | |
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 | |
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) | |
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) | |
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) | |
at java.base/java.util.Objects.checkIndex(Objects.java:359) | |
at java.base/java.util.ArrayList.get(ArrayList.java:427) | |
at org.jetbrains.java.decompiler.modules.decompiler.InlineSingleBlockHelper.inlineBlock(InlineSingleBlockHelper.java:50) | |
at org.jetbrains.java.decompiler.modules.decompiler.InlineSingleBlockHelper.inlineSingleBlocksRec(InlineSingleBlockHelper.java:37) | |
at org.jetbrains.java.decompiler.modules.decompiler.InlineSingleBlockHelper.inlineSingleBlocksRec(InlineSingleBlockHelper.java:29) |
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
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.Graphics2D; | |
import java.awt.font.GlyphVector; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import javax.imageio.ImageIO; | |
public class CoordinatesProcessor { |
OlderNewer