mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 15:08:29 +01:00
Made Chunk#setBlockData public
This commit is contained in:
parent
abbb2fde01
commit
d03354fe24
@ -160,7 +160,7 @@ public abstract class Chunk implements Viewable, DataContainer {
|
||||
* @param index the block index
|
||||
* @return the {@link Data} at the block index, null if none
|
||||
*/
|
||||
protected abstract Data getBlockData(int index);
|
||||
public abstract Data getBlockData(int index);
|
||||
|
||||
/**
|
||||
* Set the {@link Data} at a position
|
||||
|
@ -176,7 +176,7 @@ public class DynamicChunk extends Chunk {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Data getBlockData(int index) {
|
||||
public Data getBlockData(int index) {
|
||||
return blocksData.get(index);
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ public class StaticChunk extends Chunk {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Data getBlockData(int index) {
|
||||
public Data getBlockData(int index) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user