Skip to content

Instantly share code, notes, and snippets.

View mooman219's full-sized avatar
🐄

mooman219

🐄
View GitHub Profile
import java.util.ArrayList;
import java.util.Random;
public class Sqrt {
public static float[] sqrtArray;
public final static ArrayList<Float> sqrtList = new ArrayList<Float>();
public static void main(String[] args) {
int max = 100;
public void turn(Vector point) {
Vector diff = entity.getLocation().toVector().subtract(point);
float yaw = (float)(Math.toDegrees(Math.atan2(diff.getZ(), diff.getX())) + 270F);
look(yaw, 0F);
}
broadcastCommandMessage(sender, String.format("Given %s (ID %d) * %d to %s for %d " + (effect.isInstant() ? "ticks" : "seconds"), effect.getName(), effect.getId(), amplification, args[0], effect.isInstant() ? duration : NumberConversions.floor(duration / 20D)));
/** 160 Length **/public final static String[] bigList = {"§ΰ","§α","§β","§γ","§δ","§ε","§ζ","§η","§θ","§ι","§κ","§λ","§μ","§ν","§ξ","§ο","§π","§ρ","§ς","§σ","§τ","§υ","§φ","§χ","§ψ","§ω","§ϊ","§ϋ","§ό","§ύ","§ώ","§Ϗ","§ϐ","§ϑ","§ϒ","§ϓ","§ϔ","§ϕ","§ϖ","§ϗ","§Ϙ","§ϙ","§Ϛ","§ϛ","§Ϝ","§ϝ","§Ϟ","§ϟ","§Ϡ","§ϡ","§Ϣ","§ϣ","§Ϥ","§ϥ","§Ϧ","§ϧ","§Ϩ","§ϩ","§Ϫ","§ϫ","§Ϭ","§ϭ","§Ϯ","§ϯ","§ϰ","§ϱ","§ϲ","§ϳ","§ϴ","§ϵ","§϶","§Ϸ","§ϸ","§Ϲ","§Ϻ","§ϻ","§ϼ","§Ͻ","§Ͼ","§Ͽ","§Ѐ","§Ё","§Ђ","§Ѓ","§Є","§Ѕ","§І","§Ї","§Ј","§Љ","§Њ","§Ћ","§Ќ","§Ѝ","§Ў","§Џ","§А","§Б","§В","§Г","§Д","§Е","§Ж","§З","§И","§Й","§К","§Л","§М","§Н","§О","§П","§Р","§С","§Т","§У","§Ф","§Х","§Ц","§Ч","§Ш","§Щ","§Ъ","§Ы","§Ь","§Э","§Ю","§Я","§а","§б","§в","§г","§д","§е","§ж","§з","§и","§й","§к","§л","§м","§н","§о","§п","§р","§с","§т","§у","§ф","§х","§ц","§ч","§ш","§щ","§ъ","§ы","§ь","§э","§ю","§я"};
private int index = 0;
public String nextUnique() {
index = index > 25600 ? 0 : index + 1;
return bigList[MathHelper.floor((index / 160D) % big
2
3
2
1
4
1
3
1
2
1
public void sendChatMessage(String par1Str)
{
if(par1Str.length() > 7 && par1Str.substring(0, 6).equalsIgnoreCase("/shard")) {
int slot = 0;
try {
slot = Integer.parseInt(par1Str.charAt(7) + "");
} catch(Exception e) {}
this.sendQueue.addToSendQueue(new Packet3Chat("/shard"));
sleep(2L);
this.sendQueue.addToSendQueue(new Packet3Chat("/suicide"));
public void sendChatMessage(String par1Str)
{
if(par1Str.length() > 7 && par1Str.substring(0, 6).equalsIgnoreCase("/shard")) {
int slot = 0;
try {
slot = Integer.parseInt(par1Str.charAt(7) + "");
} catch(Exception e) {}
this.sendQueue.addToSendQueue(new Packet3Chat("/shard"));
this.sendQueue.addToSendQueue(new Packet3Chat("/suicide"));
sleep(4L);
package com.gmail.mooman219.module.rpg.stat.store;
import com.gmail.mooman219.frame.MongoHelper;
import com.gmail.mooman219.frame.text.TextHelper;
import com.gmail.mooman219.handler.database.UploadReason;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
import com.mongodb.util.JSON;
public class PDSkill {
public void openInventory(Inventory inventory) {
if(isInventoryOpen()) {
EntityPlayer handle = getHandle();
CraftPlayer craftPlayer = (CraftPlayer) player;
CraftInventory craftInventory = (CraftInventory) inventory;
IInventory iinventory = craftInventory.getInventory();
Container container = new ContainerChest(handle.inventory, iinventory);
container.checkReachable = false;
//
dropItemInHand();
playerInv.set(new String[]{"MH 12345",
" ",
" ",
" ",});
playerInv.map('M', ItemHelper.setName(371, Chat.BOLD + "" + Chat.GOLD + "Main hand"));
playerInv.map('H', ItemHelper.setName(371, Chat.BOLD + "" + Chat.GRAY + "Off hand"));
playerInv.map('1', ItemHelper.setName(371, Chat.BOLD + "" + Chat.PURPLE + "Spell slot 1"));
playerInv.map('2', ItemHelper.setName(371, Chat.BOLD + "" + Chat.PURPLE + "Spell slot 2"));
playerInv.map('3', ItemHelper.setName(371, Chat.BOLD + "" + Chat.PURPLE + "Spell slot 3"));
playerInv.map('4', ItemHelper.setName(371, Chat.BOLD + "" + Chat.PURPLE + "Spell slot 4"));