Skip to content

Instantly share code, notes, and snippets.

View TitleGen.java
package info.loenwind.foo;
import java.util.Random;
public class TitleGen {
// When a possessed pair of jeans begins to kill the staff of a trendy clothing store, it is up to Libby, an idealistic young salesclerk, to stop its bloody
// rampage.
static final String sentence = "When a %1$s %2$s begins to %3$s the %4$s of a %5$s %6$s, it is up to %7$s, a %8$s %9$s %10$s, to %11$s its %12$s %13$s.";
View IFluidHandler.java
package net.minecraftforge.fluids.capability;
import net.minecraftforge.fluids.*;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public interface IFluidHandler
{
int getSlots();
@HenryLoenwind
HenryLoenwind / unobf.pl
Created Sep 5, 2018
Minecraft Stack Trace Deobfuscator
View unobf.pl
#!/usr/bin/perl
use strict;
use warnings;
our $mapping = {};
while (my $line = <DATA>) {
my ($searge, $name, undef) = split /,/, $line;
if (defined $searge and defined $name) {
$mapping->{$searge} = $name;
View ConcurrentIterator.java
package test;
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
public class ConcurrentIterator<E> implements Iterator<E> {
View rename.pl
#!/usr/bin/perl
use strict;
use warnings;
use File::Find;
our $DOMAIN = 'enderio:';
our $dryrun = 1;
unless (@ARGV) {
View gist:93348a2656415eecc7ddfd25a84e73d1
L1
LINENUMBER 28 L1
LDC "UNKNOWN"
ASTORE 2
L2
LINENUMBER 30 L2
ALOAD 1: computer
IFNULL L3
L4
LINENUMBER 31 L4
View EventWrenchAction.java
package tmp;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;