Skip to content

Instantly share code, notes, and snippets.

View cyberpwnn's full-sized avatar
🚀
Keep Exploring

Dan cyberpwnn

🚀
Keep Exploring
View GitHub Profile
@cyberpwnn
cyberpwnn / PacketUtil.java
Created April 1, 2016 17:30
Titles & Stuff
//This is the actual class you use for sending titles
//This is a cheap / quick wrapper for sending title messages
//This will work on 1.8 and 1.9
//THIS REQUIRES CRAFTBUKKIT 1.8 AND 1.9 IN YOUR CLASSPATH
package com.glacialrush.plugin;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
package com.volmit.wormholes.geometry;
public class CachedMath
{
private static final int precision = 128;
private static final int modulus = 360 * precision;
private static final float[] sin = new float[modulus];
/**
* Fast sin function