- 文字コードをUTF-8に変換
- 「protected 」を「public 」に置換
- インポートの編成
- net.minecraft.src.が直接記述されている場所を取り除く
This file contains hidden or 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
WORKSPACE_LOC/.metadata/.plugins/org.eclipse.jdt.ui.prefsに以下の行を追加 | |
org.eclipse.jdt.ui.typefilter.enabled=com.jcraft.jorbis.Block;cpw.mods.fml.common.Mod.Block;cpw.mods.fml.common.Mod.Item;java.awt.Container;javassist.bytecode.analysis.ControlFlow.Block;javax.swing.Icon;javax.swing.text.html.parser.Entity;org.dom4j.Entity;org.w3c.dom.Entity; |
This file contains hidden or 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 java.util.Iterator; | |
import java.util.List; | |
import java.util.NoSuchElementException; | |
import lombok.AllArgsConstructor; | |
import lombok.Data; | |
import com.google.common.collect.Lists; | |
@AllArgsConstructor(staticName = "of") |
This file contains hidden or 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 java.util.Iterator; | |
import lombok.Value; | |
public class Range<T> implements Iterable<T> { | |
public static class Index { | |
private int value = -1; | |
public int value() { | |
return value; |
This file contains hidden or 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 java.util.Random; | |
public class Names { | |
public static void main(String[] args) { | |
String[] src = new String[] { | |
"━", "┃", "┓", "┛", "┏", "┗", "┳", "┻", "┣", "┫", "╋", | |
}; | |
Random rnd = new Random(); |
This file contains hidden or 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
public void sample() { | |
SafetyGL.safetyGLProcess(new SafetyGL.Processor() { | |
@Override | |
public void process(SafetyGL safetyGL) { | |
Minecraft client = Minecraft.getMinecraft(); | |
client.renderEngine.func_110577_a(Gui.field_110325_k);//普通にテクスチャをバインド① | |
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); | |
safetyGL.pushMatrix(); | |
safetyGL.disable(GL11.GL_DEPTH_TEST); | |
safetyGL.enable(GL11.GL_BLEND); |
This file contains hidden or 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
int id; | |
int thisIdIs; | |
{ | |
id = GL11.glGenTextures(); | |
GL11.glBindTexture(GL11.GL_TEXTURE_2D, id); | |
thisIdIs = GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D); | |
System.out.println(id); | |
System.out.println(thisIdIs); |
This file contains hidden or 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
apply plugin: 'java' | |
apply plugin: 'maven' | |
group = 'net.minecraft' | |
version = '1.6.2.9.10.0.789' | |
sourceCompatibility = 1.7 | |
targetCompatibility = 1.7 | |
sourceSets { | |
main { |
This file contains hidden or 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
List<EntityAITaskEntry> entries = Lists.newArrayList(tasks.taskEntries); | |
for (EntityAITaskEntry entry : entries) { | |
tasks.removeTask(entry.action); | |
} |
This file contains hidden or 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
@Override | |
public void startExecuting() { | |
time = 0; | |
System.out.println("獲物がいたぜ!"); | |
} |