From d03354fe24c757a24aa548d14526bf4fdcc081b3 Mon Sep 17 00:00:00 2001 From: themode Date: Tue, 6 Oct 2020 07:54:19 +0200 Subject: [PATCH] Made Chunk#setBlockData public --- src/main/java/net/minestom/server/instance/Chunk.java | 2 +- src/main/java/net/minestom/server/instance/DynamicChunk.java | 2 +- src/main/java/net/minestom/server/instance/StaticChunk.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/minestom/server/instance/Chunk.java b/src/main/java/net/minestom/server/instance/Chunk.java index 071ce0358..94800b716 100644 --- a/src/main/java/net/minestom/server/instance/Chunk.java +++ b/src/main/java/net/minestom/server/instance/Chunk.java @@ -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 diff --git a/src/main/java/net/minestom/server/instance/DynamicChunk.java b/src/main/java/net/minestom/server/instance/DynamicChunk.java index 35b249cdb..cc3b0ec2f 100644 --- a/src/main/java/net/minestom/server/instance/DynamicChunk.java +++ b/src/main/java/net/minestom/server/instance/DynamicChunk.java @@ -176,7 +176,7 @@ public class DynamicChunk extends Chunk { } @Override - protected Data getBlockData(int index) { + public Data getBlockData(int index) { return blocksData.get(index); } diff --git a/src/main/java/net/minestom/server/instance/StaticChunk.java b/src/main/java/net/minestom/server/instance/StaticChunk.java index 40f66bd20..de6a0a46b 100644 --- a/src/main/java/net/minestom/server/instance/StaticChunk.java +++ b/src/main/java/net/minestom/server/instance/StaticChunk.java @@ -53,7 +53,7 @@ public class StaticChunk extends Chunk { } @Override - protected Data getBlockData(int index) { + public Data getBlockData(int index) { return null; }