Skip to content

Instantly share code, notes, and snippets.

View windy1's full-sized avatar
💭
Why do booleans make good finger food? Because they're only a byte 😂

Walker Crouse windy1

💭
Why do booleans make good finger food? Because they're only a byte 😂
View GitHub Profile
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.dalvir.find"
minSdkVersion 15
targetSdkVersion 20
@windy1
windy1 / conversion.yml
Created May 29, 2012 21:08
Minecraft to Spout inventory slot conversion
# Minecraft to Spout inventory slot conversion (inclusive)
Inventory:
held items: 0-9
main inventory: 9-35
boots: 36
pants: 37
lower left crafting: 38
lower right crafting: 39
output: 40
@windy1
windy1 / SomeComponentEvent.java
Created October 6, 2012 00:26
SomeComponentEvent
class ComponentEvent<T extends Component> {
final T component;
ComponentEvent(T component) {
this.component = component;
}
T getComponent() {
return component;
}
@windy1
windy1 / EntityObjectMessage.java
Created October 7, 2012 20:43
EntityObjectMessage
/*
* This file is part of Vanilla.
*
* Copyright (c) 2011-2012, VanillaDev <http://www.spout.org/>
* Vanilla is licensed under the SpoutDev License Version 1.
*
* Vanilla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@windy1
windy1 / ObjectEntityProtocol.java
Created October 9, 2012 23:11
ObjectEntityProtocol
/*
* This file is part of Vanilla.
*
* Copyright (c) 2011-2012, VanillaDev <http://www.spout.org/>
* Vanilla is licensed under the SpoutDev License Version 1.
*
* Vanilla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@windy1
windy1 / CreatureProtocol.java
Created October 9, 2012 23:11
CreatureProtocol
/*
* This file is part of Vanilla.
*
* Copyright (c) 2011-2012, VanillaDev <http://www.spout.org/>
* Vanilla is licensed under the SpoutDev License Version 1.
*
* Vanilla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@windy1
windy1 / BasicEntityProtocol.java
Created October 9, 2012 23:10
BasicEntityProtocol
/*
* This file is part of Vanilla.
*
* Copyright (c) 2011-2012, VanillaDev <http://www.spout.org/>
* Vanilla is licensed under the SpoutDev License Version 1.
*
* Vanilla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@windy1
windy1 / WindowHolder.java
Created November 14, 2012 02:44
WindowHolder
class WindowHolder extends EntityComponent {
final DefaultWindow defaultWindow = new DefaultWindow();
Window activeWindow = defaultWindow;
Window getActiveWindow() {
return activeWindow;
}
DefaultWindow getDefaultWindow() {
return defaultWindow;
@windy1
windy1 / ScreenLoader.java
Created December 4, 2012 00:53
ScreenLoader
/*
* This file is part of Vanilla.
*
* Copyright (c) 2011-2012, VanillaDev <http://www.spout.org/>
* Vanilla is licensed under the SpoutDev License Version 1.
*
* Vanilla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@windy1
windy1 / EntityDeathEvent.java
Created December 9, 2012 01:06
EntityDeathEvent
class EntityDeathEvent extends EntityEvent {
@Getter
@Setter
List<ItemStack> droppedItems;
@Getter
@Setter
int droppedExp;
@Getter
@Setter
String message;