@MethodsReturnNonnullByDefault @ParametersAreNonnullByDefault public abstract class MixinWorld_HeightLimits extends java.lang.Object implements ICubicWorld
ICubicWorld.SurfaceType| Modifier and Type | Field and Description |
|---|---|
boolean |
isRemote |
net.minecraft.world.WorldProvider |
provider |
| Constructor and Description |
|---|
MixinWorld_HeightLimits() |
| Modifier and Type | Method and Description |
|---|---|
abstract net.minecraft.block.state.IBlockState |
getBlockState(net.minecraft.util.math.BlockPos pos) |
abstract net.minecraft.world.chunk.Chunk |
getChunk(net.minecraft.util.math.BlockPos pos) |
int |
getLight(net.minecraft.util.math.BlockPos pos) |
abstract boolean |
isBlockLoaded(net.minecraft.util.math.BlockPos pos) |
abstract boolean |
isBlockLoaded(net.minecraft.util.math.BlockPos blockPos,
boolean allowEmpty) |
protected abstract boolean |
isChunkLoaded(int x,
int z,
boolean allowEmpty) |
boolean |
isOutsideBuildHeight(net.minecraft.util.math.BlockPos pos)
This @Overwrite allows World to "see" blocks outside of 0..255 height range.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanBeTopBlock, findTopBlock, findTopBlock, getActualHeight, getCubeCache, getCubeFromBlockCoords, getCubeFromCubeCoords, getCubeFromCubeCoords, getEffectiveHeight, getMaxGenerationHeight, getMinGenerationHeight, getSurfaceForCube, getSurfaceForCube, isBlockColumnLoaded, isBlockColumnLoaded, isCubicWorld, testForCubes, testForCubes, testForCubesgetMaxHeight, getMinHeightpublic boolean isRemote
public net.minecraft.world.WorldProvider provider
public abstract net.minecraft.world.chunk.Chunk getChunk(net.minecraft.util.math.BlockPos pos)
public abstract net.minecraft.block.state.IBlockState getBlockState(net.minecraft.util.math.BlockPos pos)
public abstract boolean isBlockLoaded(net.minecraft.util.math.BlockPos pos)
public abstract boolean isBlockLoaded(net.minecraft.util.math.BlockPos blockPos,
boolean allowEmpty)
protected abstract boolean isChunkLoaded(int x,
int z,
boolean allowEmpty)
public boolean isOutsideBuildHeight(net.minecraft.util.math.BlockPos pos)
pos - block positionpublic int getLight(net.minecraft.util.math.BlockPos pos)
pos - block positionnWorld.getLight(BlockPos) with method that works outside of 0..255 height range. It would
be possible to fix it using @Redirect and @ModifyConstant but this way is much cleaner, especially for simple
method. A @ModifyConstant wouldn't work because it can't replace comparison to 0. This is because there
is a special instruction to compare something to 0, so the constant is never used.
Note: The getLight method is used in parts of game logic and entity rendering code. Doesn't directly affect block rendering.