Class VirtualRenderWorld
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
net.minecraft.world.level.Level
com.jozufozu.flywheel.core.virtual.VirtualRenderWorld
- All Implemented Interfaces:
FlywheelWorld,AutoCloseable,net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource,net.minecraft.world.level.BlockAndTintGetter,net.minecraft.world.level.BlockGetter,net.minecraft.world.level.CollisionGetter,net.minecraft.world.level.CommonLevelAccessor,net.minecraft.world.level.EntityGetter,net.minecraft.world.level.LevelAccessor,net.minecraft.world.level.LevelHeightAccessor,net.minecraft.world.level.LevelReader,net.minecraft.world.level.LevelSimulatedReader,net.minecraft.world.level.LevelSimulatedRW,net.minecraft.world.level.LevelTimeAccess,net.minecraft.world.level.LevelWriter,net.minecraftforge.client.extensions.IForgeBlockAndTintGetter,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.Level>,net.minecraftforge.common.extensions.IForgeBlockGetter,net.minecraftforge.common.extensions.IForgeLevel
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity> protected final net.minecraft.core.Vec3ifinal Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> protected final VirtualChunkSourceprotected final net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>protected final intprotected final net.minecraft.world.level.Levelprotected final net.minecraft.world.level.lighting.LevelLightEngineprotected final intfinal Set<net.minecraft.core.SectionPos>Fields inherited from class net.minecraft.world.level.Level
addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, neighborUpdater, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAY -
Constructor Summary
ConstructorsConstructorDescriptionVirtualRenderWorld(net.minecraft.world.level.Level level) VirtualRenderWorld(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i biomeOffset) VirtualRenderWorld(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i biomeOffset, int height, int minBuildHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddestroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) voidgameEvent(net.minecraft.world.entity.Entity pEntity, net.minecraft.world.level.gameevent.GameEvent pEvent, net.minecraft.core.BlockPos pPos) voidgameEvent(net.minecraft.world.level.gameevent.GameEvent p_220404_, net.minecraft.world.phys.Vec3 p_220405_, net.minecraft.world.level.gameevent.GameEvent.Context p_220406_) net.minecraft.world.level.chunk.ChunkAccessgetAnyChunkImmediately(int chunkX, int chunkZ) net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>getBiome(net.minecraft.core.BlockPos pPos) net.minecraft.world.level.biome.BiomeManagernet.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.state.BlockStategetBlockState(int x, int y, int z) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block>net.minecraft.world.level.chunk.LevelChunkgetChunkAtImmediately(int chunkX, int chunkZ) net.minecraft.world.level.chunk.ChunkSourceprotected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>net.minecraft.world.entity.EntitygetEntity(int id) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid>intintnet.minecraft.world.level.lighting.LevelLightEnginenet.minecraft.world.level.saveddata.maps.MapItemSavedDatagetMapData(String mapName) intintgetMaxLocalRawBrightness(net.minecraft.core.BlockPos pos) intintintnet.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>getNoiseBiome(int pX, int pY, int pZ) net.minecraft.world.item.crafting.RecipeManagernet.minecraft.world.scores.ScoreboardintgetSectionIndex(int y) intgetSectionIndexFromSectionY(int sectionY) intintgetSectionYFromSectionIndex(int sectionIndex) floatgetShade(net.minecraft.core.Direction p_230487_1_, boolean p_230487_2_) net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>getUncachedNoiseBiome(int pX, int pY, int pZ) booleanisAreaLoaded(net.minecraft.core.BlockPos center, int range) booleanisLoaded(net.minecraft.core.BlockPos pos) booleanisOutsideBuildHeight(int y) booleanisOutsideBuildHeight(net.minecraft.core.BlockPos pos) booleanisStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> condition) voidlevelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) static intnextMultipleOf16(int a) We need to ensure that height and minBuildHeight are multiples of 16.List<? extends net.minecraft.world.entity.player.Player>players()voidplaySeededSound(net.minecraft.world.entity.player.Player p_220363_, double p_220364_, double p_220365_, double p_220366_, net.minecraft.sounds.SoundEvent p_220367_, net.minecraft.sounds.SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_) voidplaySeededSound(net.minecraft.world.entity.player.Player p_220372_, net.minecraft.world.entity.Entity p_220373_, net.minecraft.sounds.SoundEvent p_220374_, net.minecraft.sounds.SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) voidplaySound(net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource category, float volume, float pitch) voidplaySound(net.minecraft.world.entity.player.Player p_217384_1_, net.minecraft.world.entity.Entity p_217384_2_, net.minecraft.sounds.SoundEvent p_217384_3_, net.minecraft.sounds.SoundSource p_217384_4_, float p_217384_5_, float p_217384_6_) net.minecraft.core.RegistryAccessvoidRun this after you're done using setBlock().voidsendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) booleansetBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags) booleansetBlockAndUpdate(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) voidsetBlockEntities(Collection<net.minecraft.world.level.block.entity.BlockEntity> blockEntities) voidsetMapData(String pMapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData pData) voidupdateNeighbourForOutputSignal(net.minecraft.core.BlockPos p_175666_1_, net.minecraft.world.level.block.Block p_175666_2_) Methods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addFreshBlockEntities, addParticle, addParticle, blockEntityChanged, blockEvent, broadcastEntityEvent, close, createFireworks, destroyBlock, dimension, dimensionType, dimensionTypeId, dimensionTypeRegistration, disconnect, explode, explode, explode, fillReportDetails, getBestNeighborSignal, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLevelData, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSignal, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isNight, isRaining, isRainingAt, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playSound, prepareWeather, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateSkyBrightnessMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface com.jozufozu.flywheel.api.FlywheelWorld
supportsFlywheelMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.client.extensions.IForgeBlockAndTintGetter
getShadeMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManagerMethods inherited from interface net.minecraftforge.common.extensions.IForgeLevel
getPartEntitiesMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, getDifficulty, hasChunk, levelEvent, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getDirectSignal, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock
-
Field Details
-
blocksAdded
public final Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> blocksAdded -
besAdded
public final Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity> besAdded -
spannedSections
-
level
protected final net.minecraft.world.level.Level level -
lighter
protected final net.minecraft.world.level.lighting.LevelLightEngine lighter -
chunkSource
-
entityGetter
protected final net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> entityGetter -
height
protected final int height -
minBuildHeight
protected final int minBuildHeight -
biomeOffset
protected final net.minecraft.core.Vec3i biomeOffset
-
-
Constructor Details
-
VirtualRenderWorld
public VirtualRenderWorld(net.minecraft.world.level.Level level) -
VirtualRenderWorld
public VirtualRenderWorld(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i biomeOffset) -
VirtualRenderWorld
public VirtualRenderWorld(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i biomeOffset, int height, int minBuildHeight)
-
-
Method Details
-
nextMultipleOf16
public static int nextMultipleOf16(int a) We need to ensure that height and minBuildHeight are multiples of 16. Adapted from: https://math.stackexchange.com/questions/291468 -
runLightingEngine
public void runLightingEngine()Run this after you're done using setBlock(). -
setBlockEntities
public void setBlockEntities(Collection<net.minecraft.world.level.block.entity.BlockEntity> blockEntities) -
clear
public void clear() -
setBlock
public boolean setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags) - Specified by:
setBlockin interfacenet.minecraft.world.level.LevelWriter- Overrides:
setBlockin classnet.minecraft.world.level.Level
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacenet.minecraft.world.level.LevelHeightAccessor- Specified by:
getHeightin interfacenet.minecraft.world.level.LevelReader
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor- Specified by:
getMinBuildHeightin interfacenet.minecraft.world.level.LevelReader
-
getChunkSource
public net.minecraft.world.level.chunk.ChunkSource getChunkSource()- Specified by:
getChunkSourcein interfacenet.minecraft.world.level.LevelAccessor
-
getLightEngine
public net.minecraft.world.level.lighting.LevelLightEngine getLightEngine()- Specified by:
getLightEnginein interfacenet.minecraft.world.level.BlockAndTintGetter- Overrides:
getLightEnginein classnet.minecraft.world.level.Level
-
getEntities
protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> getEntities()- Specified by:
getEntitiesin classnet.minecraft.world.level.Level
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(@Nullable net.minecraft.core.BlockPos pos) - Specified by:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockStatein classnet.minecraft.world.level.Level
-
setBlockAndUpdate
public boolean setBlockAndUpdate(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Overrides:
setBlockAndUpdatein classnet.minecraft.world.level.Level
-
getBlockEntity
@Nullable public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos) - Specified by:
getBlockEntityin interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockEntityin classnet.minecraft.world.level.Level
-
isStateAtPosition
public boolean isStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> condition) - Specified by:
isStateAtPositionin interfacenet.minecraft.world.level.LevelSimulatedReader- Overrides:
isStateAtPositionin classnet.minecraft.world.level.Level
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(int x, int y, int z) -
getBiome
public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getBiome(net.minecraft.core.BlockPos pPos) - Specified by:
getBiomein interfacenet.minecraft.world.level.LevelReader
-
getUncachedNoiseBiome
public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int pX, int pY, int pZ) - Specified by:
getUncachedNoiseBiomein interfacenet.minecraft.world.level.LevelReader
-
getNoiseBiome
public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getNoiseBiome(int pX, int pY, int pZ) - Specified by:
getNoiseBiomein interfacenet.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource- Specified by:
getNoiseBiomein interfacenet.minecraft.world.level.LevelReader
-
getMaxLocalRawBrightness
public int getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos) - Specified by:
getMaxLocalRawBrightnessin interfacenet.minecraft.world.level.LevelReader
-
getShade
public float getShade(net.minecraft.core.Direction p_230487_1_, boolean p_230487_2_) - Specified by:
getShadein interfacenet.minecraft.world.level.BlockAndTintGetter
-
getBiomeManager
public net.minecraft.world.level.biome.BiomeManager getBiomeManager()- Specified by:
getBiomeManagerin interfacenet.minecraft.world.level.LevelReader- Overrides:
getBiomeManagerin classnet.minecraft.world.level.Level
-
registryAccess
public net.minecraft.core.RegistryAccess registryAccess()- Specified by:
registryAccessin interfacenet.minecraft.world.level.CommonLevelAccessor
-
getBlockTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks()- Specified by:
getBlockTicksin interfacenet.minecraft.world.level.LevelAccessor
-
getFluidTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()- Specified by:
getFluidTicksin interfacenet.minecraft.world.level.LevelAccessor
-
getRecipeManager
public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()- Specified by:
getRecipeManagerin classnet.minecraft.world.level.Level
-
getFreeMapId
public int getFreeMapId()- Specified by:
getFreeMapIdin classnet.minecraft.world.level.Level
-
getScoreboard
public net.minecraft.world.scores.Scoreboard getScoreboard()- Specified by:
getScoreboardin classnet.minecraft.world.level.Level
-
getEntity
@Nullable public net.minecraft.world.entity.Entity getEntity(int id) - Specified by:
getEntityin classnet.minecraft.world.level.Level
-
getMapData
@Nullable public net.minecraft.world.level.saveddata.maps.MapItemSavedData getMapData(String mapName) - Specified by:
getMapDatain classnet.minecraft.world.level.Level
-
isLoaded
public boolean isLoaded(net.minecraft.core.BlockPos pos) - Overrides:
isLoadedin classnet.minecraft.world.level.Level
-
isAreaLoaded
public boolean isAreaLoaded(net.minecraft.core.BlockPos center, int range) - Specified by:
isAreaLoadedin interfacenet.minecraft.world.level.LevelReader
-
players
- Specified by:
playersin interfacenet.minecraft.world.level.EntityGetter
-
gatherChunkSourceStats
- Specified by:
gatherChunkSourceStatsin classnet.minecraft.world.level.Level
-
levelEvent
public void levelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) - Specified by:
levelEventin interfacenet.minecraft.world.level.LevelAccessor
-
gameEvent
public void gameEvent(net.minecraft.world.level.gameevent.GameEvent p_220404_, net.minecraft.world.phys.Vec3 p_220405_, net.minecraft.world.level.gameevent.GameEvent.Context p_220406_) - Specified by:
gameEventin interfacenet.minecraft.world.level.LevelAccessor
-
playSeededSound
public void playSeededSound(net.minecraft.world.entity.player.Player p_220363_, double p_220364_, double p_220365_, double p_220366_, net.minecraft.sounds.SoundEvent p_220367_, net.minecraft.sounds.SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_) - Specified by:
playSeededSoundin classnet.minecraft.world.level.Level
-
playSeededSound
public void playSeededSound(net.minecraft.world.entity.player.Player p_220372_, net.minecraft.world.entity.Entity p_220373_, net.minecraft.sounds.SoundEvent p_220374_, net.minecraft.sounds.SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) - Specified by:
playSeededSoundin classnet.minecraft.world.level.Level
-
playSound
public void playSound(@Nullable net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource category, float volume, float pitch) - Overrides:
playSoundin classnet.minecraft.world.level.Level
-
playSound
public void playSound(@Nullable net.minecraft.world.entity.player.Player p_217384_1_, net.minecraft.world.entity.Entity p_217384_2_, net.minecraft.sounds.SoundEvent p_217384_3_, net.minecraft.sounds.SoundSource p_217384_4_, float p_217384_5_, float p_217384_6_) - Overrides:
playSoundin classnet.minecraft.world.level.Level
-
setMapData
public void setMapData(String pMapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData pData) - Specified by:
setMapDatain classnet.minecraft.world.level.Level
-
destroyBlockProgress
public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) - Specified by:
destroyBlockProgressin classnet.minecraft.world.level.Level
-
updateNeighbourForOutputSignal
public void updateNeighbourForOutputSignal(net.minecraft.core.BlockPos p_175666_1_, net.minecraft.world.level.block.Block p_175666_2_) - Overrides:
updateNeighbourForOutputSignalin classnet.minecraft.world.level.Level
-
gameEvent
public void gameEvent(@Nullable net.minecraft.world.entity.Entity pEntity, net.minecraft.world.level.gameevent.GameEvent pEvent, net.minecraft.core.BlockPos pPos) - Specified by:
gameEventin interfacenet.minecraft.world.level.LevelAccessor
-
sendBlockUpdated
public void sendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) - Specified by:
sendBlockUpdatedin classnet.minecraft.world.level.Level
-
getChunkAtImmediately
public net.minecraft.world.level.chunk.LevelChunk getChunkAtImmediately(int chunkX, int chunkZ) -
getAnyChunkImmediately
public net.minecraft.world.level.chunk.ChunkAccess getAnyChunkImmediately(int chunkX, int chunkZ) -
getMaxBuildHeight
public int getMaxBuildHeight()- Specified by:
getMaxBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getSectionsCount
public int getSectionsCount()- Specified by:
getSectionsCountin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getMinSection
public int getMinSection()- Specified by:
getMinSectionin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getMaxSection
public int getMaxSection()- Specified by:
getMaxSectionin interfacenet.minecraft.world.level.LevelHeightAccessor
-
isOutsideBuildHeight
public boolean isOutsideBuildHeight(net.minecraft.core.BlockPos pos) - Specified by:
isOutsideBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
isOutsideBuildHeight
public boolean isOutsideBuildHeight(int y) - Specified by:
isOutsideBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getSectionIndex
public int getSectionIndex(int y) - Specified by:
getSectionIndexin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getSectionIndexFromSectionY
public int getSectionIndexFromSectionY(int sectionY) - Specified by:
getSectionIndexFromSectionYin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getSectionYFromSectionIndex
public int getSectionYFromSectionIndex(int sectionIndex) - Specified by:
getSectionYFromSectionIndexin interfacenet.minecraft.world.level.LevelHeightAccessor
-