This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraftforge.permissions.api | |
import java.util.{ List => JList } | |
import com.google.gson.JsonObject | |
import net.minecraft.tileentity.TileEntity | |
import net.minecraft.dispenser.ILocation | |
import net.minecraft.entity.{ Entity, EntityLiving, player } | |
import player.EntityPlayer | |
import net.minecraft.world.World | |
import net.minecraftforge.common.FakePlayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val oreDictList = OreDictionary.getOreNames | |
for { | |
toolType <- ToolType.values | |
autodetectValues = configurationSettings.getAutodetectBlocksList(toolType) | |
if configurationSettings.getAutodetectBlocksToggle(toolType) | |
oreDictEntry <- oreDictList | |
autodetectValue <- autodetectValues | |
if !autodetectValue.isEmpty() && oreDictEntry.startsWith(autodetectValue) | |
itemStacks = OreDictionary.getOres(oreDictEntry) | |
item <- itemStacks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test | |
{ | |
public static interface C | |
{ | |
public void foo(); | |
} | |
public static class B | |
{ | |
public void foo() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.gradle b/build.gradle | |
index ac38343..0b827eb 100644 | |
--- a/build.gradle | |
+++ b/build.gradle | |
@@ -56,6 +56,12 @@ dependencies { | |
// stupid maven | |
deployerJars "org.apache.maven.wagon:wagon-ssh:2.2" | |
+ | |
+ compile "org.ow2.asm:asm-debug-all:4.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CL: a a | |
CL: b b | |
CL: c c | |
CL: d d | |
CL: e e | |
CL: f f | |
CL: g g | |
CL: h h | |
CL: i i | |
CL: j j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class GatePart[P <: GatePart[P, L], L <: GateLogic[P, L]] { this: P => | |
def getLogic: L | |
def onChange() { | |
getLogic.onChange(this) | |
} | |
} | |
abstract class GateLogic[P <: GatePart[P, L], L <: GateLogic[P, L]] { | |
def onChange(gate: P) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; | |
import cpw.mods.fml.client.registry.RenderingRegistry; | |
import net.minecraftforge.client.model.obj.WavefrontObject; | |
import net.minecraft.block.Block; | |
import net.minecraft.world.IBlockAccess; | |
import net.minecraft.client.renderer.RenderBlocks; | |
import net.minecraft.client.renderer.RenderHelper; | |
import net.minecraft.client.renderer.Tessellator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[warn] /home/rainwarrior/minecraft/sc4/plugin-test/JavaTest.java:1: package <empty> { | |
[warn] object JavaTest extends { | |
[warn] def <init>() = _; | |
[warn] <static> def main(args: scala.Array[String] = _): Unit = _ | |
[warn] }; | |
[warn] class JavaTest extends _root_.java.lang.Object { | |
[warn] import JavaTest._; | |
[warn] def <init>() = _ | |
[warn] } | |
[warn] } source-/home/rainwarrior/minecraft/sc4/plugin-test/JavaTest.java,line-1,offset=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.gradle b/build.gradle | |
index ac38343..0b827eb 100644 | |
--- a/build.gradle | |
+++ b/build.gradle | |
@@ -56,6 +56,12 @@ dependencies { | |
// stupid maven | |
deployerJars "org.apache.maven.wagon:wagon-ssh:2.2" | |
+ | |
+ compile "org.ow2.asm:asm-debug-all:4.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GPL3+ | |
package asmstuff | |
import collection.JavaConversions._ | |
import org.objectweb.asm._ | |
import tree._ | |
import java.nio.file._ | |
import attribute.BasicFileAttributes | |
import java.net.URI |
OlderNewer