Class GuidebookLevel

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.Level
guideme.scene.level.GuidebookLevel
All Implemented Interfaces:
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.entity.UUIDLookup<net.minecraft.world.entity.Entity>, 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.ScheduledTickAccess, 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 GuidebookLevel extends net.minecraft.world.level.Level
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     

    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

    Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter

    net.minecraft.world.level.BlockGetter.BlockStepVisitor
  • Field Summary

    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.minecraft.world.level.BlockGetter

    MAX_BLOCK_ITERATIONS_ALONG_TRAVEL

    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
     
    GuidebookLevel(net.minecraft.core.RegistryAccess registryAccess)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEntity(net.minecraft.world.entity.Entity entity)
     
    void
    destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
     
    Collection<net.neoforged.neoforge.entity.PartEntity<?>>
     
    net.minecraft.world.flag.FeatureFlagSet
     
    void
    explode(@Nullable net.minecraft.world.entity.Entity source, @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable net.minecraft.world.level.ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, net.minecraft.world.level.Level.ExplosionInteraction explosionInteraction, net.minecraft.core.particles.ParticleOptions smallExplosionParticles, net.minecraft.core.particles.ParticleOptions largeExplosionParticles, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> explosionSound)
     
    net.minecraft.world.level.block.entity.FuelValues
     
    void
    gameEvent(net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.phys.Vec3 vec3, net.minecraft.world.level.gameevent.GameEvent.Context context)
     
     
    Set<net.minecraft.world.level.block.entity.BlockEntity>
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block>
     
     
    net.minecraft.world.level.chunk.ChunkSource
     
    float
     
    float
     
    protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>
     
    Iterable<net.minecraft.world.entity.Entity>
     
    @Nullable net.minecraft.world.entity.Entity
    getEntity(int id)
     
    Stream<net.minecraft.core.BlockPos>
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid>
     
    @Nullable net.minecraft.world.level.saveddata.maps.MapItemSavedData
    getMapData(net.minecraft.world.level.saveddata.maps.MapId mapId)
     
    net.neoforged.neoforge.model.data.ModelData
    getModelData(net.minecraft.core.BlockPos pos)
     
    @Nullable net.neoforged.neoforge.model.data.ModelDataManager
     
    float
     
    net.minecraft.world.scores.Scoreboard
     
    int
     
    float
    getShade(net.minecraft.core.Direction direction, boolean shade)
     
    net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
    getUncachedNoiseBiome(int i, int j, int k)
     
    boolean
     
    boolean
    isFilledBlock(net.minecraft.core.BlockPos blockPos)
     
    void
    levelEvent(@Nullable net.minecraft.world.entity.Entity player, int type, net.minecraft.core.BlockPos pos, int data)
     
    void
     
    List<? extends net.minecraft.world.entity.player.Player>
     
    void
    playSeededSound(@Nullable net.minecraft.world.entity.Entity p_394382_, double p_220364_, double p_220365_, double p_220366_, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> p_394088_, net.minecraft.sounds.SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_)
     
    void
    playSeededSound(@Nullable net.minecraft.world.entity.Entity p_394455_, net.minecraft.world.entity.Entity p_393481_, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> p_263359_, net.minecraft.sounds.SoundSource p_263020_, float p_263055_, float p_262914_, long p_262991_)
     
    net.minecraft.world.item.alchemy.PotionBrewing
     
    void
    prepareLighting(net.minecraft.core.BlockPos pos)
    Ensures lighting is set to skylight level 15 in the entire chunk and adjacent chunks whenever a block is first changed in that chunk.
    net.minecraft.world.item.crafting.RecipeAccess
     
    net.minecraft.core.RegistryAccess
     
    void
    removeEntity(int entityId, net.minecraft.world.entity.Entity.RemovalReason reason)
     
    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)
     
    void
     
    void
     
    net.minecraft.world.TickRateManager
     

    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, fillReportDetails, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getClientLeafTintColor, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getEntity, getFluidState, getGameTime, getHeight, getLevelData, getLightEngine, getMaxEntityRadius, getPushableEntities, getRainLevel, getRandom, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, increaseMaxEntityRadius, isBrightOutside, isClientSide, isDarkOutside, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isMoonVisible, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, playLocalSound, playLocalSound, playLocalSound, playPlayerSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, prepareWeather, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updatePOIOnBlockStateChange, updateSkyBrightness

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

    deserializeAttachments, getData, getExistingData, 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, getBrightness, getRawBrightness

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

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

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

    clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, 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, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer

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

    getData, getExistingData, hasData, removeData, setData

    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, invalidateCapabilities, invalidateCapabilities

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

    holder, holderOrThrow, isAreaLoaded

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

    createTick, createTick, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, hasChunk, levelEvent, playSound, updateNeighborsAt

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

    getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight

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

    canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, 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

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

    scheduleTick, scheduleTick, scheduleTick, scheduleTick

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

    getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
  • Constructor Details

    • GuidebookLevel

      public GuidebookLevel()
    • GuidebookLevel

      public GuidebookLevel(net.minecraft.core.RegistryAccess registryAccess)
  • Method Details

    • getBounds

      public GuidebookLevel.Bounds getBounds()
    • isFilledBlock

      public boolean isFilledBlock(net.minecraft.core.BlockPos blockPos)
    • prepareLighting

      public void prepareLighting(net.minecraft.core.BlockPos pos)
      Ensures lighting is set to skylight level 15 in the entire chunk and adjacent chunks whenever a block is first changed in that chunk.
    • getPartialTick

      public float getPartialTick()
    • getModelData

      public net.neoforged.neoforge.model.data.ModelData getModelData(net.minecraft.core.BlockPos pos)
    • getModelDataManager

      @Nullable public @Nullable net.neoforged.neoforge.model.data.ModelDataManager getModelDataManager()
    • onRenderFrame

      public void onRenderFrame()
    • hasFilledBlocks

      public boolean hasFilledBlocks()
    • getFilledBlocks

      public Stream<net.minecraft.core.BlockPos> getFilledBlocks()
    • getBlockEntities

      public Set<net.minecraft.world.level.block.entity.BlockEntity> getBlockEntities()
      Returns:
      All block entities in the 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
    • getEntitiesForRendering

      public Iterable<net.minecraft.world.entity.Entity> getEntitiesForRendering()
    • addEntity

      public void addEntity(net.minecraft.world.entity.Entity entity)
    • removeEntity

      public void removeEntity(int entityId, net.minecraft.world.entity.Entity.RemovalReason reason)
    • 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
    • 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
    • playSeededSound

      public void playSeededSound(@Nullable @Nullable net.minecraft.world.entity.Entity p_394382_, double p_220364_, double p_220365_, double p_220366_, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> p_394088_, 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(@Nullable @Nullable net.minecraft.world.entity.Entity p_394455_, net.minecraft.world.entity.Entity p_393481_, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> p_263359_, net.minecraft.sounds.SoundSource p_263020_, float p_263055_, float p_262914_, long p_262991_)
      Specified by:
      playSeededSound in class net.minecraft.world.level.Level
    • gatherChunkSourceStats

      public String gatherChunkSourceStats()
      Specified by:
      gatherChunkSourceStats 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
    • destroyBlockProgress

      public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
      Specified by:
      destroyBlockProgress 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
    • recipeAccess

      public net.minecraft.world.item.crafting.RecipeAccess recipeAccess()
      Specified by:
      recipeAccess in class net.minecraft.world.level.Level
    • fuelValues

      public net.minecraft.world.level.block.entity.FuelValues fuelValues()
      Specified by:
      fuelValues in class net.minecraft.world.level.Level
    • getBlockTicks

      public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks()
    • getFluidTicks

      public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()
    • getChunkSource

      public net.minecraft.world.level.chunk.ChunkSource getChunkSource()
    • levelEvent

      public void levelEvent(@Nullable @Nullable net.minecraft.world.entity.Entity player, int type, net.minecraft.core.BlockPos pos, int data)
    • gameEvent

      public void gameEvent(net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.phys.Vec3 vec3, net.minecraft.world.level.gameevent.GameEvent.Context context)
    • getShade

      public float getShade(net.minecraft.core.Direction direction, boolean shade)
    • players

      public List<? extends net.minecraft.world.entity.player.Player> players()
    • getUncachedNoiseBiome

      public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int i, int j, int k)
    • registryAccess

      public net.minecraft.core.RegistryAccess registryAccess()
      Specified by:
      registryAccess in interface net.minecraft.world.level.LevelReader
      Overrides:
      registryAccess in class net.minecraft.world.level.Level
    • 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
    • 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
    • setDayTimePerTick

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

      public net.minecraft.world.flag.FeatureFlagSet enabledFeatures()
    • explode

      public void explode(@Nullable @Nullable net.minecraft.world.entity.Entity source, @Nullable @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable @Nullable net.minecraft.world.level.ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, net.minecraft.world.level.Level.ExplosionInteraction explosionInteraction, net.minecraft.core.particles.ParticleOptions smallExplosionParticles, net.minecraft.core.particles.ParticleOptions largeExplosionParticles, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> explosionSound)
      Specified by:
      explode in class net.minecraft.world.level.Level
    • dragonParts

      public Collection<net.neoforged.neoforge.entity.PartEntity<?>> dragonParts()
      Specified by:
      dragonParts in class net.minecraft.world.level.Level
    • getSeaLevel

      public int getSeaLevel()