Class VirtualRenderWorld

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.Level
com.simibubi.create.foundation.virtualWorld.VirtualRenderWorld
All Implemented Interfaces:
dev.engine_room.flywheel.api.visualization.VisualizationLevel, 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.minecraft.world.level.SignalGetter, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension, net.neoforged.neoforge.common.extensions.IBlockGetterExtension, net.neoforged.neoforge.common.extensions.ILevelExtension, net.neoforged.neoforge.common.extensions.ILevelReaderExtension

public class VirtualRenderWorld extends net.minecraft.world.level.Level implements dev.engine_room.flywheel.api.visualization.VisualizationLevel
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.Level

    net.minecraft.world.level.Level.ExplosionInteraction

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.core.Vec3i
     
    protected final Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity>
     
    protected final Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>
     
    protected final VirtualChunkSource
     
    protected final net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>
     
    protected final int
     
    protected final net.minecraft.world.level.Level
     
    protected final net.minecraft.world.level.lighting.LevelLightEngine
     
    protected final int
     
    protected final it.unimi.dsi.fastutil.objects.Object2ShortMap<net.minecraft.core.SectionPos>
     
    protected final Runnable
     
    protected final net.minecraft.core.BlockPos.MutableBlockPos
     

    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

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY

    Fields inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension

    TRANSLATION_PREFIX

    Fields inherited from interface net.minecraft.world.level.SignalGetter

    DIRECTIONS
  • Constructor Summary

    Constructors
    Constructor
    Description
    VirtualRenderWorld(net.minecraft.world.level.Level level, int minBuildHeight, int height, net.minecraft.core.Vec3i biomeOffset, Runnable onBlockUpdated)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
     
    net.minecraft.world.flag.FeatureFlagSet
     
    void
    gameEvent(net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.phys.Vec3 pos, net.minecraft.world.level.gameevent.GameEvent.Context context)
     
     
    net.minecraft.world.level.chunk.ChunkAccess
    getAnyChunkImmediately(int chunkX, int chunkZ)
     
    net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
    getBiome(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.biome.BiomeManager
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(int x, int y, int z)
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block>
     
    int
    getBrightness(net.minecraft.world.level.LightLayer lightType, net.minecraft.core.BlockPos blockPos)
     
    net.minecraft.world.level.chunk.LevelChunk
    getChunk(int chunkX, int chunkZ)
     
    net.minecraft.world.level.chunk.ChunkAccess
    getChunk(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.chunk.LevelChunk
    getChunkAtImmediately(int chunkX, int chunkZ)
     
    net.minecraft.world.level.chunk.ChunkSource
     
    float
     
    float
     
    protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>
     
    @Nullable net.minecraft.world.entity.Entity
    getEntity(int id)
     
    net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid>
     
    @NotNull net.minecraft.world.level.saveddata.maps.MapId
     
    int
     
    net.minecraft.world.level.lighting.LevelLightEngine
     
    @Nullable net.minecraft.world.level.saveddata.maps.MapItemSavedData
    getMapData(net.minecraft.world.level.saveddata.maps.MapId mapId)
     
    int
     
    int
    getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos)
     
    int
     
    int
     
    int
     
    net.neoforged.neoforge.client.model.data.ModelData
    getModelData(net.minecraft.core.BlockPos pos)
     
    net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
    getNoiseBiome(int x, int y, int z)
     
    net.minecraft.world.item.crafting.RecipeManager
     
    net.minecraft.world.scores.Scoreboard
     
    int
     
    int
     
    int
     
    int
    getSectionYFromSectionIndex(int sectionIndex)
     
    float
    getShade(net.minecraft.core.Direction direction, boolean shade)
     
    net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
    getUncachedNoiseBiome(int x, int y, int z)
     
    boolean
    isAreaLoaded(net.minecraft.core.BlockPos center, int range)
     
    boolean
    isLoaded(net.minecraft.core.BlockPos pos)
     
    boolean
     
    boolean
    isOutsideBuildHeight(net.minecraft.core.BlockPos pos)
     
    void
    levelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data)
     
    static int
    We need to ensure that height and minBuildHeight are multiples of 16.
    List<? extends net.minecraft.world.entity.player.Player>
     
    void
    playSeededSound(net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent, net.minecraft.sounds.SoundSource soundSource, float volume, float pitch, long seed)
     
    void
    playSeededSound(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent, net.minecraft.sounds.SoundSource soundSource, float volume, float pitch, long seed)
     
    net.minecraft.world.item.alchemy.PotionBrewing
     
    void
    removeBlockEntity(net.minecraft.core.BlockPos pos)
     
    void
    Reset the external light.
    void
    Run this after you're done using setBlock().
    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)
     
    boolean
    setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags, int recursionLeft)
     
    void
    setBlockEntities(Collection<net.minecraft.world.level.block.entity.BlockEntity> blockEntities)
     
    void
    setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
     
    void
     
    void
     
    void
    setExternalLight(int packedLight)
    Set an external light value that will be maxed with any light queries.
    void
    setMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapItemSavedData)
     
    net.minecraft.world.TickRateManager
     
    void
    updateNeighbourForOutputSignal(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block block)
     

    Methods inherited from class net.minecraft.world.level.Level

    addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addFreshBlockEntities, addParticle, addParticle, advanceDaytime, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, close, createFireworks, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, disconnect, explode, explode, explode, explode, explode, explode, fillReportDetails, getBlockRandomPos, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getGameRules, getGameTime, getHeight, getLevelData, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playLocalSound, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, playSound, prepareWeather, registryAccess, removeBlock, sendPacketToServer, setBlock, setBlockAndUpdate, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateSkyBrightness

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter

    canSeeSky, getRawBrightness

    Methods inherited from interface net.minecraft.world.level.BlockGetter

    clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine

    Methods inherited from interface net.minecraft.world.level.CollisionGetter

    collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision

    Methods inherited from interface net.minecraft.world.level.CommonLevelAccessor

    getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed

    Methods inherited from interface net.minecraft.world.level.EntityGetter

    getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData, syncData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension

    getShade

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension

    getAuxLightManager, getAuxLightManager

    Methods inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension

    getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, getModelDataManager, getPartEntities, invalidateCapabilities, invalidateCapabilities

    Methods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension

    holder, holderOrThrow

    Methods inherited from interface net.minecraft.world.level.LevelAccessor

    addParticle, blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, getServer, hasChunk, levelEvent, neighborShapeChanged, nextSubTickCount, playSound, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTick

    Methods inherited from interface net.minecraft.world.level.LevelReader

    canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunkForCollisions, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isClientSide, isEmptyBlock, isWaterAt, registryAccess

    Methods inherited from interface net.minecraft.world.level.LevelSimulatedReader

    isFluidAtPosition, isStateAtPosition

    Methods inherited from interface net.minecraft.world.level.LevelTimeAccess

    getMoonBrightness, getMoonPhase, getTimeOfDay

    Methods inherited from interface net.minecraft.world.level.LevelWriter

    addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock

    Methods inherited from interface net.minecraft.world.level.SignalGetter

    getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal

    Methods inherited from interface dev.engine_room.flywheel.api.visualization.VisualizationLevel

    supportsVisualization
  • Field Details

    • level

      protected final net.minecraft.world.level.Level level
    • minBuildHeight

      protected final int minBuildHeight
    • height

      protected final int height
    • biomeOffset

      protected final net.minecraft.core.Vec3i biomeOffset
    • chunkSource

      protected final VirtualChunkSource chunkSource
    • lightEngine

      protected final net.minecraft.world.level.lighting.LevelLightEngine lightEngine
    • blockStates

      protected final Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> blockStates
    • blockEntities

      protected final Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity> blockEntities
    • nonEmptyBlockCounts

      protected final it.unimi.dsi.fastutil.objects.Object2ShortMap<net.minecraft.core.SectionPos> nonEmptyBlockCounts
    • entityGetter

      protected final net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> entityGetter
    • scratchPos

      protected final net.minecraft.core.BlockPos.MutableBlockPos scratchPos
    • onBlockUpdated

      protected final Runnable onBlockUpdated
  • Constructor Details

    • VirtualRenderWorld

      public VirtualRenderWorld(net.minecraft.world.level.Level level, int minBuildHeight, int height, net.minecraft.core.Vec3i biomeOffset, Runnable onBlockUpdated)
  • 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
    • setExternalLight

      public void setExternalLight(int packedLight)
      Set an external light value that will be maxed with any light queries.
    • resetExternalLight

      public void resetExternalLight()
      Reset the external light.
    • 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:
      sendBlockUpdated in class net.minecraft.world.level.Level
    • getBrightness

      public int getBrightness(net.minecraft.world.level.LightLayer lightType, net.minecraft.core.BlockPos blockPos)
      Specified by:
      getBrightness in interface net.minecraft.world.level.BlockAndTintGetter
    • clear

      public void clear()
    • setBlockEntities

      public void setBlockEntities(Collection<net.minecraft.world.level.block.entity.BlockEntity> blockEntities)
    • runLightEngine

      public void runLightEngine()
      Run this after you're done using setBlock().
    • getChunk

      public net.minecraft.world.level.chunk.LevelChunk getChunk(int chunkX, int chunkZ)
      Specified by:
      getChunk in interface net.minecraft.world.level.LevelReader
      Overrides:
      getChunk in class net.minecraft.world.level.Level
    • getChunk

      public net.minecraft.world.level.chunk.ChunkAccess getChunk(net.minecraft.core.BlockPos pos)
      Specified by:
      getChunk in interface net.minecraft.world.level.LevelReader
    • setBlock

      public boolean setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags, int recursionLeft)
      Specified by:
      setBlock in interface net.minecraft.world.level.LevelWriter
      Overrides:
      setBlock in class net.minecraft.world.level.Level
    • getLightEngine

      public net.minecraft.world.level.lighting.LevelLightEngine getLightEngine()
      Specified by:
      getLightEngine in interface net.minecraft.world.level.BlockAndTintGetter
      Overrides:
      getLightEngine in class net.minecraft.world.level.Level
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockState in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getBlockState in class net.minecraft.world.level.Level
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(int x, int y, int z)
    • getFluidState

      public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos pos)
      Specified by:
      getFluidState in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getFluidState in class net.minecraft.world.level.Level
    • getBlockEntity

      @Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockEntity in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getBlockEntity in class net.minecraft.world.level.Level
    • setBlockEntity

      public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Overrides:
      setBlockEntity in class net.minecraft.world.level.Level
    • removeBlockEntity

      public void removeBlockEntity(net.minecraft.core.BlockPos pos)
      Overrides:
      removeBlockEntity in class net.minecraft.world.level.Level
    • getModelData

      public net.neoforged.neoforge.client.model.data.ModelData getModelData(net.minecraft.core.BlockPos pos)
      Specified by:
      getModelData in interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
    • getEntities

      protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> getEntities()
      Specified by:
      getEntities in class net.minecraft.world.level.Level
    • getChunkSource

      public net.minecraft.world.level.chunk.ChunkSource getChunkSource()
      Specified by:
      getChunkSource in interface net.minecraft.world.level.LevelAccessor
    • getMinBuildHeight

      public int getMinBuildHeight()
      Specified by:
      getMinBuildHeight in interface net.minecraft.world.level.LevelHeightAccessor
      Specified by:
      getMinBuildHeight in interface net.minecraft.world.level.LevelReader
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface net.minecraft.world.level.LevelHeightAccessor
      Specified by:
      getHeight in interface net.minecraft.world.level.LevelReader
    • getBiome

      public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getBiome(net.minecraft.core.BlockPos pos)
      Specified by:
      getBiome in interface net.minecraft.world.level.LevelReader
    • getNoiseBiome

      public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getNoiseBiome(int x, int y, int z)
      Specified by:
      getNoiseBiome in interface net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource
      Specified by:
      getNoiseBiome in interface net.minecraft.world.level.LevelReader
    • getUncachedNoiseBiome

      public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int x, int y, int z)
      Specified by:
      getUncachedNoiseBiome in interface net.minecraft.world.level.LevelReader
    • getMaxLocalRawBrightness

      public int getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos)
      Specified by:
      getMaxLocalRawBrightness in interface net.minecraft.world.level.LevelReader
    • getShade

      public float getShade(net.minecraft.core.Direction direction, boolean shade)
      Specified by:
      getShade in interface net.minecraft.world.level.BlockAndTintGetter
    • getScoreboard

      public net.minecraft.world.scores.Scoreboard getScoreboard()
      Specified by:
      getScoreboard in class net.minecraft.world.level.Level
    • getRecipeManager

      public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()
      Specified by:
      getRecipeManager in class net.minecraft.world.level.Level
    • getBiomeManager

      public net.minecraft.world.level.biome.BiomeManager getBiomeManager()
      Specified by:
      getBiomeManager in interface net.minecraft.world.level.LevelReader
      Overrides:
      getBiomeManager in class net.minecraft.world.level.Level
    • getBlockTicks

      public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks()
      Specified by:
      getBlockTicks in interface net.minecraft.world.level.LevelAccessor
    • getFluidTicks

      public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()
      Specified by:
      getFluidTicks in interface net.minecraft.world.level.LevelAccessor
    • enabledFeatures

      public net.minecraft.world.flag.FeatureFlagSet enabledFeatures()
      Specified by:
      enabledFeatures in interface net.minecraft.world.level.LevelReader
    • potionBrewing

      public net.minecraft.world.item.alchemy.PotionBrewing potionBrewing()
      Specified by:
      potionBrewing in class net.minecraft.world.level.Level
    • setDayTimeFraction

      public void setDayTimeFraction(float v)
      Specified by:
      setDayTimeFraction in class net.minecraft.world.level.Level
    • setDayTimePerTick

      public void setDayTimePerTick(float v)
      Specified by:
      setDayTimePerTick in class net.minecraft.world.level.Level
    • getDayTimeFraction

      public float getDayTimeFraction()
      Specified by:
      getDayTimeFraction in class net.minecraft.world.level.Level
    • getDayTimePerTick

      public float getDayTimePerTick()
      Specified by:
      getDayTimePerTick in class net.minecraft.world.level.Level
    • updateNeighbourForOutputSignal

      public void updateNeighbourForOutputSignal(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block block)
      Overrides:
      updateNeighbourForOutputSignal in class net.minecraft.world.level.Level
    • isLoaded

      public boolean isLoaded(net.minecraft.core.BlockPos pos)
      Overrides:
      isLoaded in class net.minecraft.world.level.Level
    • isAreaLoaded

      public boolean isAreaLoaded(net.minecraft.core.BlockPos center, int range)
      Specified by:
      isAreaLoaded in interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
    • playSeededSound

      public void playSeededSound(net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent, net.minecraft.sounds.SoundSource soundSource, float volume, float pitch, long seed)
      Specified by:
      playSeededSound in class net.minecraft.world.level.Level
    • playSeededSound

      public void playSeededSound(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent, net.minecraft.sounds.SoundSource soundSource, float volume, float pitch, long seed)
      Specified by:
      playSeededSound in class net.minecraft.world.level.Level
    • gatherChunkSourceStats

      public String gatherChunkSourceStats()
      Specified by:
      gatherChunkSourceStats in class net.minecraft.world.level.Level
    • getEntity

      @Nullable public @Nullable net.minecraft.world.entity.Entity getEntity(int id)
      Specified by:
      getEntity in class net.minecraft.world.level.Level
    • tickRateManager

      public net.minecraft.world.TickRateManager tickRateManager()
      Specified by:
      tickRateManager in class net.minecraft.world.level.Level
    • getMapData

      @Nullable public @Nullable net.minecraft.world.level.saveddata.maps.MapItemSavedData getMapData(net.minecraft.world.level.saveddata.maps.MapId mapId)
      Specified by:
      getMapData in class net.minecraft.world.level.Level
    • setMapData

      public void setMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapItemSavedData)
      Specified by:
      setMapData in class net.minecraft.world.level.Level
    • getFreeMapId

      @NotNull public @NotNull net.minecraft.world.level.saveddata.maps.MapId getFreeMapId()
      Specified by:
      getFreeMapId in class net.minecraft.world.level.Level
    • destroyBlockProgress

      public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
      Specified by:
      destroyBlockProgress in class net.minecraft.world.level.Level
    • levelEvent

      public void levelEvent(@Nullable @Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data)
      Specified by:
      levelEvent in interface net.minecraft.world.level.LevelAccessor
    • gameEvent

      public void gameEvent(net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.phys.Vec3 pos, net.minecraft.world.level.gameevent.GameEvent.Context context)
      Specified by:
      gameEvent in interface net.minecraft.world.level.LevelAccessor
    • players

      public List<? extends net.minecraft.world.entity.player.Player> players()
      Specified by:
      players in interface net.minecraft.world.level.EntityGetter
    • 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:
      getMaxBuildHeight in interface net.minecraft.world.level.LevelHeightAccessor
    • getSectionsCount

      public int getSectionsCount()
      Specified by:
      getSectionsCount in interface net.minecraft.world.level.LevelHeightAccessor
    • getMinSection

      public int getMinSection()
      Specified by:
      getMinSection in interface net.minecraft.world.level.LevelHeightAccessor
    • getMaxSection

      public int getMaxSection()
      Specified by:
      getMaxSection in interface net.minecraft.world.level.LevelHeightAccessor
    • isOutsideBuildHeight

      public boolean isOutsideBuildHeight(net.minecraft.core.BlockPos pos)
      Specified by:
      isOutsideBuildHeight in interface net.minecraft.world.level.LevelHeightAccessor
    • isOutsideBuildHeight

      public boolean isOutsideBuildHeight(int y)
      Specified by:
      isOutsideBuildHeight in interface net.minecraft.world.level.LevelHeightAccessor
    • getSectionIndex

      public int getSectionIndex(int y)
      Specified by:
      getSectionIndex in interface net.minecraft.world.level.LevelHeightAccessor
    • getSectionIndexFromSectionY

      public int getSectionIndexFromSectionY(int sectionY)
      Specified by:
      getSectionIndexFromSectionY in interface net.minecraft.world.level.LevelHeightAccessor
    • getSectionYFromSectionIndex

      public int getSectionYFromSectionIndex(int sectionIndex)
      Specified by:
      getSectionYFromSectionIndex in interface net.minecraft.world.level.LevelHeightAccessor