9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 11:39:07 +00:00
This commit is contained in:
Daniel Mills
2021-07-27 14:45:19 -04:00
parent 9a7dcc8c1a
commit d7cda90acd
64 changed files with 238 additions and 380 deletions

View File

@@ -100,9 +100,8 @@ public class NibbleArray implements Writable {
}
}
public byte get(int x, int y, int z)
{
return get(index(x,y,z));
public byte get(int x, int y, int z) {
return get(index(x, y, z));
}
public int index(int x, int y, int z) {
@@ -111,9 +110,8 @@ public class NibbleArray implements Writable {
private transient int bitIndex, byteIndex, bitInByte;
public void set(int x, int y, int z, int nibble)
{
set(index(x,y,z), nibble);
public void set(int x, int y, int z, int nibble) {
set(index(x, y, z), nibble);
}
public void set(int index, int nibble) {

View File

@@ -323,9 +323,7 @@ public class IO {
public static void writeAll(File f, Object c) throws IOException {
try {
f.getParentFile().mkdirs();
}
catch(Throwable ignored)
{
} catch (Throwable ignored) {
}

View File

@@ -92,13 +92,12 @@ public class BlockPosition {
return var3;
}
public Block toBlock(World world)
{
return world.getBlockAt(x,y,z);
public Block toBlock(World world) {
return world.getBlockAt(x, y, z);
}
public BlockPosition add(int x, int y, int z) {
return new BlockPosition(x,y,z);
return new BlockPosition(x, y, z);
}
public void min(BlockPosition i) {

View File

@@ -18,11 +18,6 @@
package com.volmit.iris.util.math;
import com.volmit.iris.engine.object.IrisBiomePaletteLayer;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.block.Block;
public class Position2 {
private int x;
private int z;