Added more methods to the wrapper

This commit is contained in:
Leonardo
2021-10-25 22:31:43 +02:00
parent 10cb46c9f9
commit a3e6c09268
6 changed files with 130 additions and 6 deletions
@@ -1,5 +1,27 @@
package com.seibel.lod.wrappers;
import jdk.nashorn.internal.ir.Block;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.chunk.IChunk;
public class ChunkWrapper
{
private IChunk chunk;
public ChunkWrapper(IChunk chunk)
{
this.chunk = chunk;
}
public BlockWrapper getBlock(BlockPosWrapper blockPos)
{
return BlockWrapper.getBlockWrapper(chunk.getBlockState(blockPos.getBlockPos()).getBlock());
}
public int getEmittedBrightness(BlockPosWrapper blockPos)
{
return chunk.getLightEmission(blockPos.getBlockPos());
}
}