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

public class VirtualRenderWorld extends net.minecraft.world.level.Level implements FlywheelWorld
  • 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

    Fields
    Modifier and Type
    Field
    Description
    final Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity>
     
    protected final net.minecraft.core.Vec3i
     
    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
     
    final 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

    Constructors
    Constructor
    Description
    VirtualRenderWorld(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 Type
    Method
    Description
    void
     
    void
    destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
     
    void
    gameEvent(net.minecraft.world.entity.Entity pEntity, net.minecraft.world.level.gameevent.GameEvent pEvent, net.minecraft.core.BlockPos pPos)
     
    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_)
     
     
    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 pPos)
     
    net.minecraft.world.level.biome.BiomeManager
     
    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>
     
    net.minecraft.world.level.chunk.LevelChunk
    getChunkAtImmediately(int chunkX, int chunkZ)
     
    net.minecraft.world.level.chunk.ChunkSource
     
    protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>
     
    net.minecraft.world.entity.Entity
    getEntity(int id)
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid>
     
    int
     
    int
     
    net.minecraft.world.level.lighting.LevelLightEngine
     
    net.minecraft.world.level.saveddata.maps.MapItemSavedData
    getMapData(String mapName)
     
    int
     
    int
    getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos)
     
    int
     
    int
     
    int
     
    net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
    getNoiseBiome(int pX, int pY, int pZ)
     
    net.minecraft.world.item.crafting.RecipeManager
     
    net.minecraft.world.scores.Scoreboard
     
    int
     
    int
     
    int
     
    int
    getSectionYFromSectionIndex(int sectionIndex)
     
    float
    getShade(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)
     
    boolean
    isAreaLoaded(net.minecraft.core.BlockPos center, int range)
     
    boolean
    isLoaded(net.minecraft.core.BlockPos pos)
     
    boolean
     
    boolean
    isOutsideBuildHeight(net.minecraft.core.BlockPos pos)
     
    boolean
    isStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> condition)
     
    void
    levelEvent(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 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_)
     
    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_)
     
    void
    playSound(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)
     
    void
    playSound(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.RegistryAccess
     
    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)
     
    boolean
    setBlockAndUpdate(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    void
    setBlockEntities(Collection<net.minecraft.world.level.block.entity.BlockEntity> blockEntities)
     
    void
    setMapData(String pMapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData pData)
     
    void
    updateNeighbourForOutputSignal(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, updateSkyBrightness

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    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, getBrightness, 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, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, 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, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer

    Methods inherited from interface com.jozufozu.flywheel.api.FlywheelWorld

    supportsFlywheel

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraftforge.client.extensions.IForgeBlockAndTintGetter

    getShade

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity, getModelDataManager

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeLevel

    getPartEntities

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

    blockUpdated, dayTime, gameEvent, gameEvent, getDifficulty, hasChunk, levelEvent, scheduleTick, scheduleTick, scheduleTick, scheduleTick

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

    canSeeSkyFromBelowWater, containsAnyLiquid, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getDirectSignal, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isEmptyBlock, isWaterAt

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

    getMoonBrightness, getMoonPhase, getTimeOfDay

    Methods 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

      public final Set<net.minecraft.core.SectionPos> spannedSections
    • level

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

      protected final net.minecraft.world.level.lighting.LevelLightEngine lighter
    • chunkSource

      protected final VirtualChunkSource 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:
      setBlock in interface net.minecraft.world.level.LevelWriter
      Overrides:
      setBlock in class net.minecraft.world.level.Level
    • getHeight

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

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

      public net.minecraft.world.level.chunk.ChunkSource getChunkSource()
      Specified by:
      getChunkSource in interface net.minecraft.world.level.LevelAccessor
    • 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
    • getEntities

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

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

      public boolean setBlockAndUpdate(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      setBlockAndUpdate in class net.minecraft.world.level.Level
    • getBlockEntity

      @Nullable public 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
    • isStateAtPosition

      public boolean isStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> condition)
      Specified by:
      isStateAtPosition in interface net.minecraft.world.level.LevelSimulatedReader
      Overrides:
      isStateAtPosition in class net.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:
      getBiome in interface net.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:
      getUncachedNoiseBiome in interface net.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:
      getNoiseBiome in interface net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource
      Specified by:
      getNoiseBiome 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 p_230487_1_, boolean p_230487_2_)
      Specified by:
      getShade in interface net.minecraft.world.level.BlockAndTintGetter
    • 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
    • registryAccess

      public net.minecraft.core.RegistryAccess registryAccess()
      Specified by:
      registryAccess in interface net.minecraft.world.level.CommonLevelAccessor
    • 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
    • getRecipeManager

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

      public int getFreeMapId()
      Specified by:
      getFreeMapId in class net.minecraft.world.level.Level
    • getScoreboard

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

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

      @Nullable public net.minecraft.world.level.saveddata.maps.MapItemSavedData getMapData(String mapName)
      Specified by:
      getMapData 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.minecraft.world.level.LevelReader
    • players

      public List<? extends net.minecraft.world.entity.player.Player> players()
      Specified by:
      players in interface net.minecraft.world.level.EntityGetter
    • gatherChunkSourceStats

      public String gatherChunkSourceStats()
      Specified by:
      gatherChunkSourceStats in class net.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:
      levelEvent in interface net.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:
      gameEvent in interface net.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:
      playSeededSound in class net.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:
      playSeededSound in class net.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:
      playSound in class net.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:
      playSound in class net.minecraft.world.level.Level
    • setMapData

      public void setMapData(String pMapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData pData)
      Specified by:
      setMapData 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
    • updateNeighbourForOutputSignal

      public void updateNeighbourForOutputSignal(net.minecraft.core.BlockPos p_175666_1_, net.minecraft.world.level.block.Block p_175666_2_)
      Overrides:
      updateNeighbourForOutputSignal in class net.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:
      gameEvent in interface net.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:
      sendBlockUpdated in class net.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:
      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