diff --git a/TerraForgedAPI/src/main/java/com/terraforged/api/chunk/ChunkAccess.java b/TerraForgedAPI/src/main/java/com/terraforged/api/chunk/ChunkAccess.java new file mode 100644 index 0000000..99281f8 --- /dev/null +++ b/TerraForgedAPI/src/main/java/com/terraforged/api/chunk/ChunkAccess.java @@ -0,0 +1,37 @@ +/* + * + * MIT License + * + * Copyright (c) 2020 TerraForged + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package com.terraforged.api.chunk; + +import net.minecraft.block.BlockState; +import net.minecraft.util.math.BlockPos; +import net.minecraft.world.chunk.IChunk; + +public interface ChunkAccess extends IChunk { + + default BlockState getState(BlockPos pos) { + return getBlockState(pos); + } +} diff --git a/TerraForgedAPI/src/main/java/com/terraforged/api/chunk/ChunkDelegate.java b/TerraForgedAPI/src/main/java/com/terraforged/api/chunk/ChunkDelegate.java index a4fc441..1362d49 100644 --- a/TerraForgedAPI/src/main/java/com/terraforged/api/chunk/ChunkDelegate.java +++ b/TerraForgedAPI/src/main/java/com/terraforged/api/chunk/ChunkDelegate.java @@ -61,7 +61,7 @@ import java.util.function.BiFunction; import java.util.function.Function; import java.util.stream.Stream; -public class ChunkDelegate implements IChunk { +public class ChunkDelegate implements ChunkAccess { private final IChunk chunk; diff --git a/TerraForgedMod b/TerraForgedMod index 7b36c66..e012922 160000 --- a/TerraForgedMod +++ b/TerraForgedMod @@ -1 +1 @@ -Subproject commit 7b36c6610c90356a6c047e789245fd5357fe7d23 +Subproject commit e0129220f77b071cce27bfb37ef8103e1a194230 diff --git a/settings.gradle b/settings.gradle index c4f3e68..5e95ef4 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,7 +1,7 @@ rootProject.name = "TerraForged" include ":Noise2D" -include ":FeatureManager" -include ":TerraForgedCore" -include ":TerraForgedAPI" include ":TerraForgedMod" +include ":TerraForgedAPI" +include ":TerraForgedCore" +include ":FeatureManager" include ":TerraForgedApp" \ No newline at end of file