Skip to content

Instantly share code, notes, and snippets.

package com.tehbeard.forge.schematic.shell;
import net.minecraft.client.Minecraft;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import net.minecraftforge.event.ForgeSubscribe;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.client.FMLClientHandler;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import cpw.mods.fml.common.registry.GameRegistry;
2013-06-17 00:05:46 [INFO] [Minecraft-Client] [CHAT] §E[Rei's Minimap] 4 Waypoints loaded for ftb.escapecraft.com
2013-06-17 00:05:47 [INFO] [STDERR] java.lang.NullPointerException
2013-06-17 00:05:47 [INFO] [STDERR] at net.minecraft.client.renderer.tileentity.TileEntityRenderer.func_76950_a(SourceFile:90)
2013-06-17 00:05:47 [INFO] [STDERR] at net.minecraft.client.renderer.RenderGlobal.func_72713_a(RenderGlobal.java:520)
2013-06-17 00:05:47 [INFO] [STDERR] at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1220)
2013-06-17 00:05:47 [INFO] [STDERR] at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:991)
2013-06-17 00:05:47 [INFO] [STDERR] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:871)
2013-06-17 00:05:47 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:760)
2013-06-17 00:05:47 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
@tehbeard
tehbeard / gist:5573217
Created May 14, 2013 02:29
Player heads with hats in html5
<html>
<head>
<title>Minecraft heads using Canvas 2D</title>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js'></script>
<style>
canvas{
width: 320;
height: 320;
/*border: 2px solid black;*/
}
@tehbeard
tehbeard / mcmod.info
Last active December 17, 2015 06:29
example mcmod.info
[
{
WHATEVER ENTRY WAS HERE BEFORE
}
,
{
"modid": "Oilers",
"name": "Oilers",
"version": "0.1",
"description": "amazing plugin",
<?php
/*
* Minequery PHP
* Copyright (C) 2011 Kramer Campbell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@tehbeard
tehbeard / TestCommandBlockRedstonePlugin.java
Created March 20, 2013 21:09
test plugin for redstone command block
package com.tehbeard.test;
import org.bukkit.block.CommandBlock;
import org.bukkit.command.BlockCommandSender;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
public class TestCommandBlockRedstonePlugin extends JavaPlugin {
@tehbeard
tehbeard / gist:5187841
Created March 18, 2013 15:09
JavaScript file saving.
JSON -> String -> BLOB : http://www.nczonline.net/blog/2012/06/05/working-with-files-in-javascript-part-5-blobs/
BLOB -> Download : https://github.com/eligrey/FileSaver.js
@tehbeard
tehbeard / gist:5187521
Created March 18, 2013 14:27
Getting package at runtime, (even if shaded to another package hopefully)
package foo.bar;
public class TestClass {
public static void main(String[] args){
//Get package at runtime
System.out.println(TestClass.class.getPackage().getName());
}
}
$.fn.ajaxThatForm = function(opts){
this.each(function(i,el){
var formParams = {
action : $(this).attr("action"),
method : $(this).attr("method")
};
$.extend(formParams,opts);
var formData = new FormData();