@MethodsReturnNonnullByDefault @ParametersAreNonnullByDefault public abstract class MixinWorldServer extends MixinWorld implements ICubicWorldInternal.Server
ICubicWorldServer interface.ICubicWorldInternal.Client, ICubicWorldInternal.CompatGenerationScope, ICubicWorldInternal.ServerICubicWorld.SurfaceType| Modifier and Type | Field and Description |
|---|---|
boolean |
disableLevelSaving |
chunkProvider, fakedMaxHeight, findingSpawnPoint, isCubicWorld, isRemote, lightingManager, maxHeight, minHeight, profiler, provider, rand, saveHandler, updateLCG, worldInfo| Constructor and Description |
|---|
MixinWorldServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addForcedCube(ICube cube) |
abstract boolean |
addWeatherEffect(net.minecraft.entity.Entity entityIn) |
ICubicWorldInternal.CompatGenerationScope |
doCompatibilityGeneration() |
void |
forceChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
CubicChunks equivalent of
ForgeChunkManager.forceChunk(ForgeChunkManager.Ticket, ChunkPos). |
CubeProviderServer |
getCubeCache()
Returns the
ICubeProvider for this world, or throws NotCubicChunksWorldException
if this is not a CubicChunks world. |
ICubeGenerator |
getCubeGenerator() |
XZMap<IColumn> |
getForcedColumns() |
XYZMap<ICube> |
getForcedCubes() |
abstract net.minecraft.server.management.PlayerChunkMap |
getPlayerChunkMap() |
CubeSplitTickSet |
getScheduledTicks() |
SpawnCubes |
getSpawnArea() |
CubeSplitTickList |
getThisTickScheduledTicks() |
VanillaNetworkHandler |
getVanillaNetworkHandler() |
void |
initCubicWorldServer(IntRange heightRange,
IntRange generationRange)
Initializes the world to be a CubicChunks world.
|
boolean |
isCompatGenerationScope() |
protected abstract void |
playerCheckLight() |
void |
removeForcedCube(ICube cube) |
void |
reorderChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
CubicChunks equivalent of
ForgeChunkManager.reorderChunk(ForgeChunkManager.Ticket, ChunkPos)
Can accept tickets from different worlds. |
void |
setSpawnArea(SpawnCubes spawn) |
abstract boolean |
spawnEntity(net.minecraft.entity.Entity entityIn) |
void |
tickCubicWorld()
Updates the world
|
void |
unforceChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
CubicChunks equivalent of
ForgeChunkManager.unforceChunk(ForgeChunkManager.Ticket, ChunkPos)
Can accept tickets from different worlds. |
void |
unloadOldCubes()
Unloads or schedules unloading of no longer needed chunks from the world.
|
canBlockFreezeNoWater, canSeeSky, canSnowAt, fakeWorldHeight, getBiome, getBlockState, getChunk, getCubeFromBlockCoords, getCubeFromCubeCoords, getDifficultyForLocation, getEffectiveHeight, getGameRules, getHeight, getLightingManager, getMaxGenerationHeight, getMaxHeight, getMinGenerationHeight, getMinHeight, getPrecipitationHeight, getSaveHandler, initCubicWorld, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockColumnLoaded, isBlockColumnLoaded, isBlockLoaded, isBlockLoaded, isChunkLoaded, isCubicWorld, isOutsideBuildHeight, isRaining, isRainingAt, isThundering, isValid, setBlockState, setLightFor, testForCubesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfakeWorldHeight, getCubeFromBlockCoords, getCubeFromCubeCoords, getLightingManager, getTopSolidOrLiquidBlockVanillacanBeTopBlock, findTopBlock, findTopBlock, getActualHeight, getCubeFromCubeCoords, getEffectiveHeight, getMaxGenerationHeight, getMinGenerationHeight, getSurfaceForCube, getSurfaceForCube, isBlockColumnLoaded, isBlockColumnLoaded, isCubicWorld, testForCubes, testForCubes, testForCubesgetMaxHeight, getMinHeightprotected abstract void playerCheckLight()
public abstract boolean spawnEntity(net.minecraft.entity.Entity entityIn)
public abstract boolean addWeatherEffect(net.minecraft.entity.Entity entityIn)
public abstract net.minecraft.server.management.PlayerChunkMap getPlayerChunkMap()
public void initCubicWorldServer(IntRange heightRange, IntRange generationRange)
ICubicWorldInternal.ServerinitCubicWorldServer in interface ICubicWorldInternal.ServerheightRange - world height rangegenerationRange - expected height range for world generation. Maximum Y should be above 0.public VanillaNetworkHandler getVanillaNetworkHandler()
getVanillaNetworkHandler in interface ICubicWorldInternal.Serverpublic void setSpawnArea(SpawnCubes spawn)
setSpawnArea in interface ICubicWorldInternal.Serverpublic SpawnCubes getSpawnArea()
getSpawnArea in interface ICubicWorldInternal.Serverpublic CubeSplitTickSet getScheduledTicks()
getScheduledTicks in interface ICubicWorldInternal.Serverpublic CubeSplitTickList getThisTickScheduledTicks()
getThisTickScheduledTicks in interface ICubicWorldInternal.Serverpublic void tickCubicWorld()
ICubicWorldInternaltickCubicWorld in interface ICubicWorldInternaltickCubicWorld in class MixinWorldpublic CubeProviderServer getCubeCache()
ICubicWorldInternalICubeProvider for this world, or throws NotCubicChunksWorldException
if this is not a CubicChunks world.getCubeCache in interface ICubicWorldgetCubeCache in interface ICubicWorldServergetCubeCache in interface ICubicWorldInternalgetCubeCache in interface ICubicWorldInternal.ServergetCubeCache in class MixinWorldpublic ICubeGenerator getCubeGenerator()
getCubeGenerator in interface ICubicWorldServerpublic void removeForcedCube(ICube cube)
removeForcedCube in interface ICubicWorldInternal.Serverpublic void addForcedCube(ICube cube)
addForcedCube in interface ICubicWorldInternal.Serverpublic XYZMap<ICube> getForcedCubes()
getForcedCubes in interface ICubicWorldInternal.Serverpublic XZMap<IColumn> getForcedColumns()
getForcedColumns in interface ICubicWorldInternal.Serverpublic void unloadOldCubes()
ICubicWorldServerunloadOldCubes in interface ICubicWorldServerpublic void forceChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
ForgeChunkManager.forceChunk(ForgeChunkManager.Ticket, ChunkPos).
Can accept tickets from different worlds.forceChunk in interface ICubicWorldServerticket - ForgeChunkManager ticketchunk - position of the cube to force loadpublic void reorderChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
ForgeChunkManager.reorderChunk(ForgeChunkManager.Ticket, ChunkPos)
Can accept tickets from different worlds.reorderChunk in interface ICubicWorldServerticket - ForgeChunkManager ticketchunk - position of the cube to reorderpublic void unforceChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
ForgeChunkManager.unforceChunk(ForgeChunkManager.Ticket, ChunkPos)
Can accept tickets from different worlds.unforceChunk in interface ICubicWorldServerticket - ForgeChunkManager ticketchunk - position of the cube to unforcepublic ICubicWorldInternal.CompatGenerationScope doCompatibilityGeneration()
doCompatibilityGeneration in interface ICubicWorldInternal.Serverpublic boolean isCompatGenerationScope()
isCompatGenerationScope in interface ICubicWorldInternal.Server