Replaced com.mojang.util.MathHelper

Replaced com.mojang.util.MathHelper with net.PeytonPlayz585.math.MathHelper
This commit is contained in:
PeytonPlayz595 2023-07-11 19:59:33 -04:00
parent b1c7e93b97
commit 2e62e9b969
27 changed files with 26 additions and 56 deletions

View File

@ -9,7 +9,7 @@ import com.mojang.minecraft.model.Vec3D;
import com.mojang.minecraft.net.PositionUpdate;
import com.mojang.minecraft.phys.AABB;
import com.mojang.minecraft.render.TextureManager;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import java.io.Serializable;
import java.util.ArrayList;

View File

@ -28,7 +28,7 @@ import com.mojang.minecraft.render.Renderer;
import com.mojang.minecraft.render.texture.TextureFX;
import com.mojang.minecraft.render.texture.TextureLavaFX;
import com.mojang.minecraft.render.texture.TextureWaterFX;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import net.lax1dude.eaglercraft.GLAllocation;

View File

@ -10,7 +10,7 @@ import com.mojang.minecraft.level.tile.Block;
import com.mojang.minecraft.player.Inventory;
import com.mojang.minecraft.render.ShapeRenderer;
import com.mojang.minecraft.render.TextureManager;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

View File

@ -6,7 +6,7 @@ import com.mojang.minecraft.phys.AABB;
import com.mojang.minecraft.player.Player;
import com.mojang.minecraft.render.ShapeRenderer;
import com.mojang.minecraft.render.TextureManager;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import java.util.List;
import org.lwjgl.opengl.GL11;

View File

@ -5,7 +5,7 @@ import com.mojang.minecraft.level.Level;
import com.mojang.minecraft.level.tile.Block;
import com.mojang.minecraft.player.Player;
import com.mojang.minecraft.render.TextureManager;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import org.lwjgl.opengl.GL11;
public class Item extends Entity

View File

@ -8,7 +8,7 @@ import com.mojang.minecraft.particle.TerrainParticle;
import com.mojang.minecraft.player.Player;
import com.mojang.minecraft.render.ShapeRenderer;
import com.mojang.minecraft.render.TextureManager;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import java.util.Random;
import org.lwjgl.opengl.GL11;

View File

@ -11,7 +11,7 @@ import com.mojang.minecraft.model.Vec3D;
import com.mojang.minecraft.particle.ParticleManager;
import com.mojang.minecraft.phys.AABB;
import com.mojang.minecraft.render.LevelRenderer;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;

View File

@ -5,7 +5,7 @@ import com.mojang.minecraft.level.Level;
import com.mojang.minecraft.level.generator.noise.CombinedNoise;
import com.mojang.minecraft.level.generator.noise.OctaveNoise;
import com.mojang.minecraft.level.tile.Block;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import java.util.ArrayList;
import java.util.Random;

View File

@ -3,7 +3,7 @@ package com.mojang.minecraft.level.tile;
import com.mojang.minecraft.level.Level;
import com.mojang.minecraft.phys.AABB;
import com.mojang.minecraft.render.ShapeRenderer;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import java.util.Random;

View File

@ -5,7 +5,7 @@ import com.mojang.minecraft.level.tile.Block;
import com.mojang.minecraft.mob.Creeper;
import com.mojang.minecraft.mob.ai.BasicAttackAI;
import com.mojang.minecraft.particle.TerrainParticle;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
final class Creeper$1 extends BasicAttackAI {

View File

@ -3,7 +3,7 @@ package com.mojang.minecraft.mob;
import com.mojang.minecraft.level.Level;
import com.mojang.minecraft.mob.Creeper$1;
import com.mojang.minecraft.mob.Mob;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public class Creeper extends Mob {

View File

@ -6,7 +6,7 @@ import com.mojang.minecraft.mob.ai.AI;
import com.mojang.minecraft.mob.ai.BasicAI;
import com.mojang.minecraft.model.ModelManager;
import com.mojang.minecraft.render.TextureManager;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import org.lwjgl.opengl.GL11;
public class Mob extends Entity {

View File

@ -3,7 +3,7 @@ package com.mojang.minecraft.mob;
import com.mojang.minecraft.level.tile.Block;
import com.mojang.minecraft.mob.Sheep;
import com.mojang.minecraft.mob.ai.BasicAI;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
final class Sheep$1 extends BasicAI {

View File

@ -4,7 +4,7 @@ import com.mojang.minecraft.Entity;
import com.mojang.minecraft.item.Arrow;
import com.mojang.minecraft.mob.ai.BasicAI;
import com.mojang.minecraft.model.Vec3D;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public class BasicAttackAI extends BasicAI {

View File

@ -2,7 +2,7 @@ package com.mojang.minecraft.model;
import com.mojang.minecraft.model.Model;
import com.mojang.minecraft.model.ModelPart;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public class AnimalModel extends Model {

View File

@ -2,7 +2,7 @@ package com.mojang.minecraft.model;
import com.mojang.minecraft.model.Model;
import com.mojang.minecraft.model.ModelPart;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public final class CreeperModel extends Model {

View File

@ -2,7 +2,7 @@ package com.mojang.minecraft.model;
import com.mojang.minecraft.model.Model;
import com.mojang.minecraft.model.ModelPart;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public class HumanoidModel extends Model {

View File

@ -2,7 +2,7 @@ package com.mojang.minecraft.model;
import com.mojang.minecraft.model.Model;
import com.mojang.minecraft.model.ModelPart;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public final class SpiderModel extends Model {

View File

@ -1,6 +1,6 @@
package com.mojang.minecraft.model;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public final class Vec3D {

View File

@ -1,7 +1,7 @@
package com.mojang.minecraft.model;
import com.mojang.minecraft.model.HumanoidModel;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public class ZombieModel extends HumanoidModel {

View File

@ -3,7 +3,7 @@ package com.mojang.minecraft.particle;
import com.mojang.minecraft.Entity;
import com.mojang.minecraft.level.Level;
import com.mojang.minecraft.render.ShapeRenderer;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public class Particle extends Entity {

View File

@ -8,7 +8,7 @@ import com.mojang.minecraft.player.InputHandler;
import com.mojang.minecraft.player.Inventory;
import com.mojang.minecraft.player.Player$1;
import com.mojang.minecraft.render.TextureManager;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import java.awt.image.BufferedImage;
import java.util.List;
import org.lwjgl.opengl.GL11;

View File

@ -5,7 +5,7 @@ import com.mojang.minecraft.level.tile.Block;
import com.mojang.minecraft.player.Player;
import com.mojang.minecraft.render.Frustrum;
import com.mojang.minecraft.render.ShapeRenderer;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import org.lwjgl.opengl.GL11;
public final class Chunk {

View File

@ -1,7 +1,7 @@
package com.mojang.minecraft.render;
import com.mojang.minecraft.render.Frustrum;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import net.lax1dude.eaglercraft.GLAllocation;

View File

@ -8,7 +8,7 @@ import com.mojang.minecraft.level.tile.Block;
import com.mojang.minecraft.model.Vec3D;
import com.mojang.minecraft.player.Player;
import com.mojang.minecraft.render.HeldBlock;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
import net.lax1dude.eaglercraft.GLAllocation;

View File

@ -2,7 +2,7 @@ package com.mojang.minecraft.render.texture;
import com.mojang.minecraft.level.tile.Block;
import com.mojang.minecraft.render.texture.TextureFX;
import com.mojang.util.MathHelper;
import net.PeytonPlayz585.math.MathHelper;
public final class TextureLavaFX extends TextureFX {

View File

@ -1,30 +0,0 @@
package com.mojang.util;
public final class MathHelper {
private static float[] SIN_TABLE = new float[4096];
public static final float sin(float var0) {
return SIN_TABLE[(int)(var0 * 651.8986F) & 4095];
}
public static final float cos(float var0) {
return SIN_TABLE[(int)((var0 + ((float)Math.PI / 2F)) * 651.8986F) & 4095];
}
public static final float sqrt(float var0) {
return (float)Math.sqrt((double)var0);
}
static {
for (int j = 0; j < 4096; ++j) {
SIN_TABLE[j] = (float)Math.sin((double)(((float)j + 0.5F) / 4096.0F * ((float)Math.PI * 2F)));
}
for (int l = 0; l < 360; l += 90) {
SIN_TABLE[(int)((float)l * 11.377778F) & 4095] = (float)Math.sin((double)((float)l * 0.017453292F));
}
}
}