mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 06:55:03 +00:00
IWorld & IPos: Removed getMCBlockPos() to better organize NpcAPI. Removed unnecessary imports.
ITileEntity: Removed unnecessary imports.
This commit is contained in:
1 parent
e96b43be0c
commit
05b84b467c
5 files changed
+1
-28
No files matched your search
@@ -81,7 +81,7 @@ public class ScriptBlockPos implements IPos {
|
||||
}
|
||||
|
||||
public IPos add(IPos pos) {
|
||||
return new ScriptBlockPos(this.blockPos.add(pos.getMCBlockPos()));
|
||||
return new ScriptBlockPos(this.blockPos.add(this.blockPos));
|
||||
}
|
||||
|
||||
public IPos subtract(int x, int y, int z) {
|
||||
@@ -100,10 +100,6 @@ public class ScriptBlockPos implements IPos {
|
||||
return new ScriptBlockPos(this.blockPos.offset(EnumFacing.values()[direction], n));
|
||||
}
|
||||
|
||||
public BlockPos getMCBlockPos() {
|
||||
return this.blockPos;
|
||||
}
|
||||
|
||||
public double[] normalize() {
|
||||
double d = Math.sqrt((double)(this.blockPos.getX() * this.blockPos.getX() + this.blockPos.getY() * this.blockPos.getY() + this.blockPos.getZ() * this.blockPos.getZ()));
|
||||
return new double[]{(double)this.getX() / d, (double)this.getY() / d, (double)this.getZ() / d};
|
||||
|
||||
@@ -760,10 +760,6 @@ public class ScriptWorld implements IWorld {
|
||||
return new ScriptScoreboard();
|
||||
}
|
||||
|
||||
public BlockPos getMCBlockPos(int x, int y, int z){
|
||||
return new BlockPos(x,y,z);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* Expert use only
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
||||
public interface IPos {
|
||||
int getX();
|
||||
|
||||
@@ -140,12 +138,6 @@ public interface IPos {
|
||||
*/
|
||||
double[] normalize();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return An obfuscated MC BlockPos object.
|
||||
*/
|
||||
BlockPos getMCBlockPos();
|
||||
|
||||
/**
|
||||
* Offsets the block by 1 block in the given direction and returns the resulting IPos object
|
||||
*
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import noppes.npcs.scripted.ScriptBlock;
|
||||
import noppes.npcs.scripted.ScriptWorld;
|
||||
|
||||
public interface ITileEntity {
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import net.minecraft.block.BlockLiquid;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.WorldServer;
|
||||
import noppes.npcs.scripted.ScriptBlockPos;
|
||||
import noppes.npcs.scripted.ScriptScoreboard;
|
||||
import noppes.npcs.scripted.interfaces.entity.IEntity;
|
||||
import noppes.npcs.scripted.interfaces.entity.IPlayer;
|
||||
@@ -386,12 +382,6 @@ public interface IWorld {
|
||||
|
||||
ScriptScoreboard getScoreboard();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return An obfuscated MC BlockPos object.
|
||||
*/
|
||||
BlockPos getMCBlockPos(int x, int y, int z);
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* Expert use only
|
||||
|
||||
Reference in new issue
Block a user