- 文字コードをUTF-8に変換
- 「protected 」を「public 」に置換
- インポートの編成
- net.minecraft.src.が直接記述されている場所を取り除く
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
javascript:(function(){var resize="800px";var foreach=function(args,f){Array.prototype.forEach.call(args,f);};var resizeTo=function(elems){foreach(elems,function(elem){elem.style.height=resize;});};var resizeClass=function(name){var elems=document.getElementsByClassName(name);resizeTo(elems);};var hide=function(elems){foreach(elems,function(elem){elem.style.display="none";});};var hideClass=function(name){var elems=document.getElementsByClassName(name);hide(elems);};var hideName=function(name){var elems=document.getElementsByName(name);hide(elems);};resizeClass("ace_editor");resizeClass("ace_gutter");hideClass("gist-header");hideClass("gisthead");hideClass("site-footer-container");hideName("gist[description]");var ev=document.createEvent('Event');ev.initEvent('resize',true,true);window.dispatchEvent(ev);return false;})(); |
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
f = function(x){ | |
if(-7 < x && x < 7){ | |
p = Math.ceil(Math.abs(x) * 10) % 4 | |
d = 10; | |
ds = 1; | |
if(p % 2 == 0){ | |
if(-5 < x && x < 5){ | |
if(p == 0){ | |
d = 5; | |
} |
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
protected Slot addSlotToContainer(Slot par1Slot) | |
{ | |
par1Slot.slotNumber = this.inventorySlots.size(); | |
this.inventorySlots.add(par1Slot); // !? | |
this.inventoryItemStacks.add((Object)null); | |
return par1Slot; | |
} | |
public Slot getSlot(int par1) | |
{ |
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
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 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 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 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 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 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); |
NewerOlder