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.minecraft.src; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import net.minecraft.src.AxisAlignedBB; | |
import net.minecraft.src.Block; | |
import net.minecraft.src.Chunk; | |
import net.minecraft.src.ChunkCache; | |
import net.minecraft.src.Config; |
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
//1.4.7 | |
int var11 = par1Block.getBlockTextureFromSideAndMetadata(0, par2); | |
int var12 = (var11 & 15) << 4; | |
int var13 = var11 & 240; | |
double var14 = (double)((float)var12 / 256.0F); | |
double var16 = (double)(((float)var12 + 15.99F) / 256.0F); | |
double var18 = (double)((float)var13 / 256.0F); | |
double var20 = (double)(((float)var13 + 15.99F) / 256.0F); | |
//1.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
/* coords: unrotated world coord, rotation: quantify to 90, start: uncentered world coords for structure start point, size: structure size */ | |
public ChunkCoordinates rotate(ChunkCoordinates coords, double rotation, Vec3 start, Vec3 size) { | |
double centerX = start.xCoord+(size.xCoord/2D); | |
double centerZ = start.zCoord+(size.zCoord/2D); | |
double vecX = coords.posX - centerX + 0.05; //+0.05 fixes the 0 angle distance calculation issue | |
double vecZ = coords.posZ - centerZ + 0.05; | |
double distToCenter = Math.sqrt(vecX * vecX + vecZ * vecZ); | |
double rotYaw = (float)(Math.atan2(vecZ, vecX) * 180.0D / Math.PI) - rotation; | |
double newX = start.xCoord + Math.cos(rotYaw * 0.017453D) * distToCenter; | |
double newZ = start.zCoord + Math.sin(rotYaw * 0.017453D) * distToCenter; |
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 zombiecraft.Client.Blocks; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.renderer.OpenGlHelper; | |
import net.minecraft.client.renderer.Tessellator; | |
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; | |
import net.minecraft.tileentity.TileEntity; | |
import org.lwjgl.opengl.GL11; |
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 initBTTemplate() { | |
this.btSenses = new SelectorConcurrent(null); | |
this.btSenses.add(new SenseEnvironment(this.btSenses, this.blackboard)); | |
SelectorSequence selTop = new SelectorSequence(null); | |
this.btAI = selTop; | |
selTop.add(new CoroAI.bt.nodes.Hunt(selTop, this.entInt, this.blackboard, 16F)); | |
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
Problem signature: | |
Problem Event Name: APPCRASH | |
Application Name: sanic - gotta go at speed.exe | |
Application Version: 1.0.0.0 | |
Application Timestamp: 53246098 | |
Fault Module Name: KERNELBASE.dll | |
Fault Module Version: 6.1.7600.16385 | |
Fault Module Timestamp: 4a5bdbdf | |
Exception Code: e0434352 | |
Exception Offset: 0000b727 |
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
float var3 = MathHelper.cos(var12.rotationYaw * (float)Math.PI / 180.0F); | |
float var4 = MathHelper.sin(var12.rotationYaw * (float)Math.PI / 180.0F); | |
float var5 = -var4 * MathHelper.sin(var12.rotationPitch * (float)Math.PI / 180.0F); | |
float var6 = var3 * MathHelper.sin(var12.rotationPitch * (float)Math.PI / 180.0F); | |
float var7 = MathHelper.cos(var12.rotationPitch * (float)Math.PI / 180.0F); | |
var12.renderParticle(var10, var2, var3, var7, var4, var5, var6); |
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 combat.block; | |
import combat.location.StructureObject; | |
import combat.location.town.building.BuildingCommand; | |
import combat.registry.StructureMapping; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.tileentity.TileEntity; | |
import net.minecraft.util.ChunkCoordinates; |
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 renderParticle(Tessellator par1Tessellator, float par2, float par3, float par4, float par5, float par6, float par7) | |
{ | |
par3 = MathHelper.cos(rotationYaw * (float)Math.PI / 180.0F); | |
par5 = MathHelper.sin(rotationYaw * (float)Math.PI / 180.0F); | |
par6 = -par5 * MathHelper.sin(rotationPitch * (float)Math.PI / 180.0F); | |
par7 = par3 * MathHelper.sin(rotationPitch * (float)Math.PI / 180.0F); | |
par4 = MathHelper.cos(rotationPitch * (float)Math.PI / 180.0F); |
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
float radius = 5F; | |
int lats = 10; | |
int longs = 10; | |
//quad based Icosahedron | |
int i, j; | |
for (i = 0; i <= lats; i++) { | |
double lat0 = Math.PI * (-0.5D + (double) (i - 1) / lats); | |
double z0 = Math.sin(lat0); | |
double zr0 = Math.cos(lat0); |
OlderNewer