Skip to content

Instantly share code, notes, and snippets.

View Alpvax's full-sized avatar

Alpvax Alpvax

  • United Kingdom
View GitHub Profile
@Alpvax
Alpvax / repos.Alpvax.GoProne.subscription.json
Created August 13, 2019 12:02
GoProne API subscription output
{
"subscribed": true,
"ignored": false,
"reason": null,
"created_at": "2019-07-18T14:23:47Z",
"url": "https://api.github.com/repos/Alpvax/GoProne/subscription",
"repository_url": "https://api.github.com/repos/Alpvax/GoProne"
}
@Alpvax
Alpvax / debug.log
Last active July 29, 2019 21:50
forge 1.14.4 dedicated
[29Jul2019 23:38:08.877] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 28.0.14, --fml.mcpVersion, 20190719.225934, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, nogui]
[29Jul2019 23:38:08.881] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 3.0.2+57+a2bc918 starting: java version 1.8.0_222 by Oracle Corporation
[29Jul2019 23:38:08.887] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver]
[29Jul2019 23:38:08.895] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : []
[29Jul2019 23:38:08.902] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [eventbus,object_holder_definalize,runtime_enum_extender,field_redirect_net.minecraft.potion.PotionEffect/Lnet/minecraft/potion/Potion;,accesstransformer,capability_injec
@Alpvax
Alpvax / Attribute.ts
Last active January 23, 2019 19:34
Attribute
export const enum ModifyType {BASE_ADD, BASE_MULTIPLY, STACKING_MULTIPLY};
interface Modifier<T extends ModifyType> {
amount: number;
modType: T;
};
interface ChangeListener {
(attributeInstance: Attribute, oldValue: number): void;
}
@Alpvax
Alpvax / objconsole.js
Last active October 29, 2018 18:30
A template literal tag for formatting templates in console outputs
let objconsole = new Proxy(function(strs, ...args) {
let ret = strs.reduce((a, c, i) => {
if(c) a.concat(c);
if(i < args.length) a.concat(args[i]);
return a;
}, []);
return ret;
}, new Proxy({}, {
get(handler, trapkey) {
if(trapkey === "apply") {
@Alpvax
Alpvax / OpenGuiTask
Created July 7, 2015 12:27
Open GUI on login
@SideOnly(Side.CLIENT)
public class OpenGuiTask implements Runnable {
private String modId;
private int guiId;
public OpenGuiTask(String modId, int guiId) {
this.modId = modId;
this.guiId = guiId;
}
@Alpvax
Alpvax / ItemInvisArmour
Created February 12, 2015 13:47
Example mod (item would be registered as standard, and not rendered when equipped)
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
/**
* @author Alpvax
*
*/
public class ItemInvisArmour extends ItemArmor
{