Skip to content

Instantly share code, notes, and snippets.

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
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
class Test
{
public static interface C
{
public void foo();
}
public static class B
{
public void foo() {}
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"
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
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) {
}
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;
[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
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"
// GPL3+
package asmstuff
import collection.JavaConversions._
import org.objectweb.asm._
import tree._
import java.nio.file._
import attribute.BasicFileAttributes
import java.net.URI