This file contains hidden or 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.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; |
This file contains hidden or 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 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); | |
} |
This file contains hidden or 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
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))); |
This file contains hidden or 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
/** 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 |
This file contains hidden or 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
2 | |
3 | |
2 | |
1 | |
4 | |
1 | |
3 | |
1 | |
2 | |
1 |
This file contains hidden or 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 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")); |
This file contains hidden or 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 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); |
This file contains hidden or 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 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 { |
This file contains hidden or 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 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(); |
This file contains hidden or 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
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")); |
OlderNewer