mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
Move to parallax views
This commit is contained in:
parent
56eb0b8ef1
commit
d29b4e486d
@ -1,5 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
import org.bukkit.block.Biome;
|
import org.bukkit.block.Biome;
|
||||||
import org.bukkit.generator.ChunkGenerator.BiomeGrid;
|
import org.bukkit.generator.ChunkGenerator.BiomeGrid;
|
||||||
|
|
@ -1,5 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.block.Biome;
|
import org.bukkit.block.Biome;
|
||||||
|
|
@ -1,5 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
import org.bukkit.generator.ChunkGenerator.ChunkData;
|
import org.bukkit.generator.ChunkGenerator.ChunkData;
|
||||||
|
|
@ -1,5 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
|
|
@ -1,4 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
|
|
||||||
public class DriftHunkView<T> implements Hunk<T>
|
public class DriftHunkView<T> implements Hunk<T>
|
||||||
{
|
{
|
@ -1,4 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
|
|
||||||
public class InvertedHunkView<T> implements Hunk<T>
|
public class InvertedHunkView<T> implements Hunk<T>
|
||||||
{
|
{
|
@ -0,0 +1,60 @@
|
|||||||
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
|
|
||||||
|
public class ReadOnlyHunk<T> implements Hunk<T> {
|
||||||
|
private final Hunk<T> src;
|
||||||
|
|
||||||
|
public ReadOnlyHunk(Hunk<T> src)
|
||||||
|
{
|
||||||
|
this.src = src;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setRaw(int x, int y, int z, T t)
|
||||||
|
{
|
||||||
|
throw new IllegalStateException("This hunk is read only!");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public T getRaw(int x, int y, int z)
|
||||||
|
{
|
||||||
|
return src.getRaw(x, y, z);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void set(int x1, int y1, int z1, int x2, int y2, int z2, T t)
|
||||||
|
{
|
||||||
|
throw new IllegalStateException("This hunk is read only!");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void fill(T t)
|
||||||
|
{
|
||||||
|
throw new IllegalStateException("This hunk is read only!");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getWidth()
|
||||||
|
{
|
||||||
|
return src.getWidth();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getHeight()
|
||||||
|
{
|
||||||
|
return src.getHeight();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDepth()
|
||||||
|
{
|
||||||
|
return src.getDepth();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Hunk<T> getSource()
|
||||||
|
{
|
||||||
|
return src;
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
|
|
||||||
public class RotatedXHunkView<T> implements Hunk<T>
|
public class RotatedXHunkView<T> implements Hunk<T>
|
||||||
{
|
{
|
@ -1,4 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
|
|
||||||
public class RotatedYHunkView<T> implements Hunk<T>
|
public class RotatedYHunkView<T> implements Hunk<T>
|
||||||
{
|
{
|
@ -1,4 +1,6 @@
|
|||||||
package com.volmit.iris.gen.v2.scaffold.hunk;
|
package com.volmit.iris.gen.v2.scaffold.hunk.view;
|
||||||
|
|
||||||
|
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||||
|
|
||||||
public class RotatedZHunkView<T> implements Hunk<T>
|
public class RotatedZHunkView<T> implements Hunk<T>
|
||||||
{
|
{
|
Loading…
x
Reference in New Issue
Block a user