Skip to content

Instantly share code, notes, and snippets.

View dredhorse's full-sized avatar

Don Redhorse dredhorse

View GitHub Profile
@dredhorse
dredhorse / gist:50e8bc4cf6ae569243574797f81692ec
Created August 29, 2018 09:17
Crafttweaker Bad Local Variable Type in Function
import mods.artisanworktables.builder.RecipeBuilder;
import mods.artisanworktables.builder.Copy;
import crafttweaker.item.IItemStack;
// Blacksmith Worktable
// managing Tools
val BlacksmithRecipe = RecipeBuilder.get("blacksmith");
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
I hereby claim:
* I am dredhorse on github.
* I am dredhorse (https://keybase.io/dredhorse) on keybase.
* I have a public key whose fingerprint is 5A7F BF07 557A 7C4F 420A E52A 88B8 A281 C2EA 5469
To claim this, I am signing this object:
```json
{
@dredhorse
dredhorse / gist:4013405
Created November 4, 2012 20:04 — forked from Afforess/gist:4013360
Death Cause Factory pattern
public enum DeathCause implements DeathCauseFactory {
DROWNING {
public Cause<?> buildCause(Entity victim, Entity killer) {
return new DrowningCause(victim);
}
},
FALLING {
public Cause<?> buildCause(Entity victim, Entity killer) {
//TODO