@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
public class CubePrimer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.state.IBlockState |
DEFAULT_STATE |
| Modifier | Constructor and Description |
|---|---|
|
CubePrimer() |
protected |
CubePrimer(char[] data) |
| Modifier and Type | Method and Description |
|---|---|
static CubePrimer |
createFilled(net.minecraft.block.state.IBlockState state) |
net.minecraft.world.biome.Biome |
getBiome(int localBiomeX,
int localBiomeY,
int localBiomeZ)
Returns biome in a given 4x4x4 block section.
|
net.minecraft.block.state.IBlockState |
getBlockState(int x,
int y,
int z)
Get the block state at the given location
|
boolean |
hasBiomes() |
void |
reset()
Resets this primer to a state as if it were newly constructed.
|
void |
setBiome(int localBiomeX,
int localBiomeY,
int localBiomeZ,
net.minecraft.world.biome.Biome biome)
Sets biome in a given 4x4x4 block section.
|
void |
setBlockState(int x,
int y,
int z,
net.minecraft.block.state.IBlockState state)
Set the block state at the given location
|
public boolean hasBiomes()
public static CubePrimer createFilled(net.minecraft.block.state.IBlockState state)
@Nullable
public net.minecraft.world.biome.Biome getBiome(int localBiomeX,
int localBiomeY,
int localBiomeZ)
Note: in current implementation, internal storage is for 2x16x2 blocks. This will be changed soon due to changes in 1.15.x.
localBiomeX - cube-local X coordinate. One unit is 4 blockslocalBiomeY - cube-local Y coordinate. One unit is 4 blockslocalBiomeZ - cube-local Z coordinate. One unit is 4 blockspublic void setBiome(int localBiomeX,
int localBiomeY,
int localBiomeZ,
net.minecraft.world.biome.Biome biome)
Note: in current implementation, internal storage is for 2x16x2 blocks. This will be changed soon due to changes in 1.15.x.
localBiomeX - cube-local X coordinate. One unit is 4 blockslocalBiomeY - cube-local Y coordinate. One unit is 4 blockslocalBiomeZ - cube-local Z coordinate. One unit is 4 blocksbiome - biome to set in this cube position. After thig method returns, getBiome(int, int, int)
is guaranteed to return this biome for the same supplied input coordinates. Currently it may also
affect the returned value at other coordinates due to internal storage differences.public net.minecraft.block.state.IBlockState getBlockState(int x,
int y,
int z)
x - cube local xy - cube local yz - cube local zpublic void setBlockState(int x,
int y,
int z,
@Nonnull
net.minecraft.block.state.IBlockState state)
x - cube local xy - cube local yz - cube local zstate - the block statepublic void reset()