Skip to content

Instantly share code, notes, and snippets.

View gabizou's full-sized avatar

Gabriel Harris-Rouquette gabizou

View GitHub Profile
allprojects {
afterEvaluate {
def versions = [
'1.6' : "/opt/java6/jre/lib/"
]
// convert map to classpaths
versions = versions.collectEntries { key, value ->
def path = new File(value)
value = path.listFiles().findAll { it.getPath().endsWith(".jar") }
interface ItemType
{
int getMaxDamage();
}
class net.minecraft.src.Item
{
...
@gabizou
gabizou / ChangeBlockEvent.java
Last active September 23, 2015 07:06 — forked from bloodmc/ChangeBlockEvent.java
ChangeBlockEvent
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@gabizou
gabizou / 0_reuse_code.js
Created November 4, 2015 00:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am gabizou on github.
  • I am gabizou (https://keybase.io/gabizou) on keybase.
  • I have a public key whose fingerprint is 3A3D BB89 90E2 D359 7527 FE96 4F49 A721 4D62 0E56

To claim this, I am signing this object:

package org.spongepowered.cookbook.plugin;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.collect.ImmutableSet;
import org.spongepowered.api.registry.AdditionalCatalogRegistryModule;
import java.util.Collection;
import java.util.HashMap;

Keybase proof

I hereby claim:

  • I am gabizou on github.
  • I am gabizou (https://keybase.io/gabizou) on keybase.
  • I have a public key ASBWUdFtnM2GOWrqLqb32EwiDRVNYz_0lSd35QkmQ5u8kwo

To claim this, I am signing this object:

package com.voxelplugineering.voxelsniper.brush.mask;
import com.voxelplugineering.voxelsniper.brush.Brush;
import com.voxelplugineering.voxelsniper.brush.BrushInfo;
import com.voxelplugineering.voxelsniper.brush.BrushKeys;
import com.voxelplugineering.voxelsniper.brush.BrushParam;
import com.voxelplugineering.voxelsniper.brush.BrushPartType;
import com.voxelplugineering.voxelsniper.brush.BrushVars;
import com.voxelplugineering.voxelsniper.brush.ExecutionResult;
import com.voxelplugineering.voxelsniper.config.VoxelSniperConfiguration;

PhaseTracker

Current state is still in development

#####Preface By this point, you should already understand the object structure and concept of Causes and EventContexts. If you have not, do consider reading that aspect prior to reading this section as this section is about the implementation that powers creating these objects for all events.

[20:05:00] [main/DEBUG] [mixin]: Preparing mixins.customnpcsbridge.json (2)
[20:05:00] [main/TRACE] [mixin]: Catching
java.lang.ClassNotFoundException: The specified class 'noppes.npcs.controllers.data.Availability' was not found
at org.spongepowered.asm.service.mojang.MixinServiceLaunchWrapper.getClassBytes(MixinServiceLaunchWrapper.java:357) ~[spongeforge-1.12.2-2768-7.1.5.jar:1.12.2-2768-7.1.5]
at org.spongepowered.asm.service.mojang.MixinServiceLaunchWrapper.getClassNode(MixinServiceLaunchWrapper.java:432) ~[spongeforge-1.12.2-2768-7.1.5.jar:1.12.2-2768-7.1.5]
at org.spongepowered.asm.mixin.transformer.ClassInfo.forName(ClassInfo.java:1676) [spongeforge-1.12.2-2768-7.1.5.jar:1.12.2-2768-7.1.5]
at org.spongepowered.asm.mixin.transformer.MixinInfo.getTarget(MixinInfo.java:908) [spongeforge-1.12.2-2768-7.1.5.jar:1.12.2-2768-7.1.5]
at org.spongepowered.asm.mixin.transformer.MixinInfo.readTargets(MixinInfo.java:891) [spongeforge-1.12.2-2768-7.1.5.jar:1.12.2-2768-7.1.5]
at org.spongepowered.asm.mixin.tra