mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Standalones
This commit is contained in:
parent
51d55eed05
commit
79e2bdb587
@ -77,7 +77,7 @@ public class IrisChunkGenerator extends CeilingChunkGenerator implements IrisCon
|
|||||||
@Override
|
@Override
|
||||||
protected void onTick(int ticks)
|
protected void onTick(int ticks)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.volmit.iris.gen.standalone;
|
||||||
|
|
||||||
|
import org.bukkit.block.Biome;
|
||||||
|
import org.bukkit.generator.ChunkGenerator.BiomeGrid;
|
||||||
|
|
||||||
|
import com.volmit.iris.util.BiomeStorage;
|
||||||
|
|
||||||
|
public class StandaloneBiomeGrid implements BiomeGrid
|
||||||
|
{
|
||||||
|
private final BiomeStorage storage;
|
||||||
|
|
||||||
|
public StandaloneBiomeGrid()
|
||||||
|
{
|
||||||
|
storage = new BiomeStorage();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Biome getBiome(int x, int z)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Use GetBiome x, y, z");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Biome getBiome(int x, int y, int z)
|
||||||
|
{
|
||||||
|
return storage.getBiome(x, y, z);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setBiome(int arg0, int arg1, Biome arg2)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Use SetBiome x, y, z, b");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setBiome(int x, int y, int z, Biome b)
|
||||||
|
{
|
||||||
|
storage.setBiome(x, y, z, b);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,81 @@
|
|||||||
|
package com.volmit.iris.gen.standalone;
|
||||||
|
|
||||||
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.block.data.BlockData;
|
||||||
|
import org.bukkit.generator.ChunkGenerator.ChunkData;
|
||||||
|
import org.bukkit.material.MaterialData;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.atomics.AtomicSliverMap;
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
|
public class StandaloneChunkData extends AtomicSliverMap implements ChunkData
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public BlockData getBlockData(int x, int y, int z)
|
||||||
|
{
|
||||||
|
return getSliver(x, z).get(y);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public byte getData(int x, int y, int z)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Use getBlockData");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMaxHeight()
|
||||||
|
{
|
||||||
|
return 256;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Material getType(int x, int y, int z)
|
||||||
|
{
|
||||||
|
return getBlockData(x, y, z).getMaterial();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@Override
|
||||||
|
public MaterialData getTypeAndData(int x, int y, int z)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Use GetBlockData");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setBlock(int x, int y, int z, Material arg3)
|
||||||
|
{
|
||||||
|
setBlock(x, y, z, arg3.createBlockData());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@Override
|
||||||
|
public void setBlock(int arg0, int arg1, int arg2, MaterialData arg3)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Use SetBlock (bd)");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setBlock(int x, int y, int z, BlockData b)
|
||||||
|
{
|
||||||
|
getSliver(x, z).set(y, b);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setRegion(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, Material arg6)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Use SetBlock (bd)");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@Override
|
||||||
|
public void setRegion(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, MaterialData arg6)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Use SetBlock (bd)");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setRegion(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, BlockData arg6)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Use SetBlock (bd)");
|
||||||
|
}
|
||||||
|
}
|
1356
src/main/java/com/volmit/iris/gen/standalone/StandaloneWorld.java
Normal file
1356
src/main/java/com/volmit/iris/gen/standalone/StandaloneWorld.java
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user