Skip to content

Instantly share code, notes, and snippets.

View Phoenix1123's full-sized avatar

Callum Phoenix1123

  • United Kingdom
View GitHub Profile
@Phoenix1123
Phoenix1123 / Multiline.lua
Last active May 11, 2019 12:51
A utility for creating/drawing paragraphs on 2d planes
-- A utilty for drawing paragraphs on 2d planes (derma, vgui/hud etc..)
-- Original file found at https://gist.github.com/Khubajsn/5482298 (2013)
-- Modified/fixed/updated by ParaPhoenix/Jabami/PyroPhoe
-- Feel free to use/modify/republish
--[[
Break up a long string into lines <= the mWidth provided
text -> The text to seperate into lines
font -> The font you will be using to draw the text
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.CreatureSpawnEvent;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@Phoenix1123
Phoenix1123 / Selection.java
Last active June 17, 2016 19:41
Small cuboid Utility I wrote in a few minutes to help some people. NOTE: Does not handle locations from different worlds.
package me.paraphoenix.utils;
import java.util.ArrayList;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
public class Selection {