Skip to content

Instantly share code, notes, and snippets.

View FarisR99's full-sized avatar

Faris FarisR99

  • Goldman Sachs
  • London, UK
View GitHub Profile
@FarisR99
FarisR99 / ItemSerialization.java
Last active August 29, 2015 14:02 — forked from aadnk/ItemSerialization.java
Serialize items and inventories.
package com.comphenix.example;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.lang.reflect.Method;
import java.util.Arrays;
@FarisR99
FarisR99 / Commandcondense.java
Last active August 29, 2015 14:01 — forked from khobbits/condense.java
Made the SimpleRecipe global if required.
package com.earth2me.essentials.commands;
import com.earth2me.essentials.ChargeException;
import com.earth2me.essentials.Trade;
import com.earth2me.essentials.Trade.OverflowType;
import com.earth2me.essentials.User;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;