@MethodsReturnNonnullByDefault @ParametersAreNonnullByDefault public abstract class MixinWorld extends java.lang.Object implements ICubicWorldInternal
ICubicWorld interface.ICubicWorldInternal.Client, ICubicWorldInternal.CompatGenerationScope, ICubicWorldInternal.ServerICubicWorld.SurfaceType| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.world.chunk.IChunkProvider |
chunkProvider |
protected int |
fakedMaxHeight |
protected boolean |
findingSpawnPoint |
protected boolean |
isCubicWorld |
boolean |
isRemote |
protected LightingManager |
lightingManager |
protected int |
maxHeight |
protected int |
minHeight |
net.minecraft.profiler.Profiler |
profiler |
net.minecraft.world.WorldProvider |
provider |
java.util.Random |
rand |
protected net.minecraft.world.storage.ISaveHandler |
saveHandler |
protected int |
updateLCG |
protected net.minecraft.world.storage.WorldInfo |
worldInfo |
| Constructor and Description |
|---|
MixinWorld() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canBlockFreezeNoWater(net.minecraft.util.math.BlockPos pos) |
abstract boolean |
canSeeSky(net.minecraft.util.math.BlockPos pos) |
abstract boolean |
canSnowAt(net.minecraft.util.math.BlockPos pos,
boolean checkLight) |
void |
fakeWorldHeight(int height) |
abstract net.minecraft.world.biome.Biome |
getBiome(net.minecraft.util.math.BlockPos pos) |
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) |
ICubeProviderInternal |
getCubeCache()
Returns the
ICubeProvider for this world, or throws NotCubicChunksWorldException
if this is not a CubicChunks world. |
Cube |
getCubeFromBlockCoords(net.minecraft.util.math.BlockPos pos) |
Cube |
getCubeFromCubeCoords(int cubeX,
int cubeY,
int cubeZ) |
abstract net.minecraft.world.DifficultyInstance |
getDifficultyForLocation(net.minecraft.util.math.BlockPos pos) |
int |
getEffectiveHeight(int blockX,
int blockZ) |
abstract net.minecraft.world.GameRules |
getGameRules() |
int |
getHeight()
Some mod's world generation will try to do their work over the whole world height.
|
LightingManager |
getLightingManager()
Returns the
ILightingManager for this world, or throws NotCubicChunksWorldException
if this is not a CubicChunks world. |
int |
getMaxGenerationHeight() |
int |
getMaxHeight()
Returns Y position of block above the top block in the world,
|
int |
getMinGenerationHeight() |
int |
getMinHeight()
Returns Y position of the bottom block in the world
|
abstract net.minecraft.util.math.BlockPos |
getPrecipitationHeight(net.minecraft.util.math.BlockPos pos) |
abstract net.minecraft.world.storage.ISaveHandler |
getSaveHandler() |
protected void |
initCubicWorld(IntRange heightRange,
IntRange generationRange) |
abstract boolean |
isAreaLoaded(net.minecraft.util.math.BlockPos blockpos1,
net.minecraft.util.math.BlockPos blockpos2) |
abstract boolean |
isAreaLoaded(net.minecraft.util.math.BlockPos center,
int radius) |
abstract boolean |
isAreaLoaded(net.minecraft.world.gen.structure.StructureBoundingBox box) |
boolean |
isBlockColumnLoaded(net.minecraft.util.math.BlockPos pos) |
boolean |
isBlockColumnLoaded(net.minecraft.util.math.BlockPos pos,
boolean allowEmpty) |
abstract boolean |
isBlockLoaded(net.minecraft.util.math.BlockPos pos) |
abstract boolean |
isBlockLoaded(net.minecraft.util.math.BlockPos pos,
boolean allowEmpty) |
protected abstract boolean |
isChunkLoaded(int i,
int i1,
boolean allowEmpty) |
boolean |
isCubicWorld() |
abstract boolean |
isOutsideBuildHeight(net.minecraft.util.math.BlockPos pos) |
abstract boolean |
isRaining() |
abstract boolean |
isRainingAt(net.minecraft.util.math.BlockPos position) |
abstract boolean |
isThundering() |
abstract boolean |
isValid(net.minecraft.util.math.BlockPos pos) |
abstract boolean |
setBlockState(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
abstract void |
setLightFor(net.minecraft.world.EnumSkyBlock type,
net.minecraft.util.math.BlockPos pos,
int lightValue) |
abstract boolean |
spawnEntity(net.minecraft.entity.Entity entityIn) |
boolean |
testForCubes(CubePos start,
CubePos end,
java.util.function.Predicate<? super ICube> cubeAllowed)
Returns true iff the given Predicate evaluates to true for given cube and neighbors.
|
void |
tickCubicWorld()
Updates the world
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTopSolidOrLiquidBlockVanillacanBeTopBlock, findTopBlock, findTopBlock, getActualHeight, getCubeFromCubeCoords, getSurfaceForCube, getSurfaceForCube, testForCubes, testForCubesprotected net.minecraft.world.chunk.IChunkProvider chunkProvider
public net.minecraft.world.WorldProvider provider
public java.util.Random rand
public boolean isRemote
public net.minecraft.profiler.Profiler profiler
protected net.minecraft.world.storage.ISaveHandler saveHandler
protected boolean findingSpawnPoint
protected net.minecraft.world.storage.WorldInfo worldInfo
protected int updateLCG
@Nullable protected LightingManager lightingManager
protected boolean isCubicWorld
protected int minHeight
protected int maxHeight
protected int fakedMaxHeight
public abstract net.minecraft.world.storage.ISaveHandler getSaveHandler()
public abstract boolean isAreaLoaded(net.minecraft.util.math.BlockPos blockpos1,
net.minecraft.util.math.BlockPos blockpos2)
public abstract boolean isAreaLoaded(net.minecraft.util.math.BlockPos center,
int radius)
protected abstract boolean isChunkLoaded(int i,
int i1,
boolean allowEmpty)
public abstract boolean isValid(net.minecraft.util.math.BlockPos pos)
public abstract net.minecraft.world.GameRules getGameRules()
public abstract boolean isRaining()
public abstract boolean isThundering()
public abstract boolean isRainingAt(net.minecraft.util.math.BlockPos position)
public abstract net.minecraft.world.DifficultyInstance getDifficultyForLocation(net.minecraft.util.math.BlockPos pos)
public abstract net.minecraft.util.math.BlockPos getPrecipitationHeight(net.minecraft.util.math.BlockPos pos)
public abstract boolean isAreaLoaded(net.minecraft.world.gen.structure.StructureBoundingBox box)
public abstract boolean canBlockFreezeNoWater(net.minecraft.util.math.BlockPos pos)
public abstract boolean setBlockState(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
public abstract boolean canSnowAt(net.minecraft.util.math.BlockPos pos,
boolean checkLight)
public abstract boolean isBlockLoaded(net.minecraft.util.math.BlockPos pos)
public abstract net.minecraft.world.biome.Biome getBiome(net.minecraft.util.math.BlockPos pos)
public abstract boolean isBlockLoaded(net.minecraft.util.math.BlockPos pos,
boolean allowEmpty)
public abstract boolean isOutsideBuildHeight(net.minecraft.util.math.BlockPos pos)
public abstract net.minecraft.world.chunk.Chunk getChunk(net.minecraft.util.math.BlockPos pos)
public abstract boolean canSeeSky(net.minecraft.util.math.BlockPos pos)
public abstract void setLightFor(net.minecraft.world.EnumSkyBlock type,
net.minecraft.util.math.BlockPos pos,
int lightValue)
public abstract boolean spawnEntity(net.minecraft.entity.Entity entityIn)
public boolean isCubicWorld()
isCubicWorld in interface ICubicWorldpublic int getMinHeight()
IMinMaxHeightgetMinHeight in interface IMinMaxHeightpublic int getMaxHeight()
IMinMaxHeightgetMaxHeight in interface IMinMaxHeightpublic int getMinGenerationHeight()
getMinGenerationHeight in interface ICubicWorldpublic int getMaxGenerationHeight()
getMaxGenerationHeight in interface ICubicWorldpublic ICubeProviderInternal getCubeCache()
ICubicWorldInternalICubeProvider for this world, or throws NotCubicChunksWorldException
if this is not a CubicChunks world.getCubeCache in interface ICubicWorldgetCubeCache in interface ICubicWorldInternalpublic LightingManager getLightingManager()
ICubicWorldInternalILightingManager for this world, or throws NotCubicChunksWorldException
if this is not a CubicChunks world.getLightingManager in interface ICubicWorldInternalpublic boolean testForCubes(CubePos start, CubePos end, java.util.function.Predicate<? super ICube> cubeAllowed)
ICubicWorldtestForCubes in interface ICubicWorldstart - start cube positionend - end cube positioncubeAllowed - the test to applypublic Cube getCubeFromCubeCoords(int cubeX, int cubeY, int cubeZ)
getCubeFromCubeCoords in interface ICubicWorldgetCubeFromCubeCoords in interface ICubicWorldInternalpublic Cube getCubeFromBlockCoords(net.minecraft.util.math.BlockPos pos)
getCubeFromBlockCoords in interface ICubicWorldgetCubeFromBlockCoords in interface ICubicWorldInternalpublic int getEffectiveHeight(int blockX,
int blockZ)
getEffectiveHeight in interface ICubicWorldpublic void tickCubicWorld()
ICubicWorldInternaltickCubicWorld in interface ICubicWorldInternalpublic void fakeWorldHeight(int height)
fakeWorldHeight in interface ICubicWorldInternalpublic int getHeight()
public net.minecraft.block.state.IBlockState getBlockState(net.minecraft.util.math.BlockPos pos)
pos - block positionpublic boolean isBlockColumnLoaded(net.minecraft.util.math.BlockPos pos)
isBlockColumnLoaded in interface ICubicWorldpublic boolean isBlockColumnLoaded(net.minecraft.util.math.BlockPos pos,
boolean allowEmpty)
isBlockColumnLoaded in interface ICubicWorld