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
| package org.lo.d.minecraft.littlemaid; | |
| import java.lang.reflect.Method; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Set; | |
| import com.google.common.collect.Sets; | |
| public class IWantSpatJob { |
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
| package org.lo.d.commons.reflections; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Method; | |
| import java.net.URISyntaxException; | |
| import java.net.URL; | |
| import java.net.URLClassLoader; |
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 static Vec3D[] getBezier2D(double startX, double startZ, | |
| double startVectorX, double startVectorZ, double endX, double endZ, | |
| double endVectorX, double endVectorZ, int vertexFactor) { | |
| Vec3D startPoint = Vec3D.createVector(startX, 0, startZ); | |
| Vec3D startVector = Vec3D.createVector(startX + startVectorX, 0, startZ | |
| + startVectorZ); | |
| Vec3D endPoint = Vec3D.createVector(endX, 0, endZ); | |
| Vec3D endVector = Vec3D.createVector(endX + endVectorX, 0, endZ | |
| + endVectorZ); |
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("獲物がいたぜ!"); | |
| } |
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
| 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
| 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
| 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
| 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
| 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; |
OlderNewer