Package guideme.scene.level
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.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 GuidebookLevel
extends net.minecraft.world.level.Level
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.Level
net.minecraft.world.level.Level.ExplosionInteractionNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField -
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_DAYFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
TRANSLATION_PREFIXFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(net.minecraft.world.entity.Entity entity) voiddestroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) net.minecraft.world.flag.FeatureFlagSetvoidgameEvent(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.ChunkSourcefloatfloatprotected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> Iterable<net.minecraft.world.entity.Entity> @Nullable net.minecraft.world.entity.EntitygetEntity(int id) Stream<net.minecraft.core.BlockPos> net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> net.minecraft.world.level.saveddata.maps.MapId@Nullable net.minecraft.world.level.saveddata.maps.MapItemSavedDatagetMapData(net.minecraft.world.level.saveddata.maps.MapId mapId) floatnet.minecraft.world.item.crafting.RecipeManagernet.minecraft.world.scores.ScoreboardfloatgetShade(net.minecraft.core.Direction direction, boolean shade) net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int i, int j, int k) booleanbooleanisFilledBlock(net.minecraft.core.BlockPos blockPos) voidlevelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) voidList<? extends net.minecraft.world.entity.player.Player> players()voidplaySeededSound(@Nullable net.minecraft.world.entity.player.Player player, double d, double e, double f, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> holder, net.minecraft.sounds.SoundSource soundSource, float g, float h, long l) voidplaySeededSound(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> holder, net.minecraft.sounds.SoundSource soundSource, float f, float g, long l) net.minecraft.world.item.alchemy.PotionBrewingvoidprepareLighting(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.core.RegistryAccessvoidremoveEntity(int entityId, net.minecraft.world.entity.Entity.RemovalReason reason) voidsendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) voidsetDayTimeFraction(float v) voidsetDayTimePerTick(float v) voidsetMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData data) net.minecraft.world.TickRateManagerMethods 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, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLevelData, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, 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, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightnessMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, hasAttachments, hasData, removeData, serializeAttachments, setDataMethods 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, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, 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 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShadeMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, getModelDataManager, getPartEntities, invalidateCapabilities, invalidateCapabilitiesMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, hasChunk, levelEvent, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlockMethods 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
-
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() -
onRenderFrame
public void onRenderFrame() -
hasFilledBlocks
public boolean hasFilledBlocks() -
getFilledBlocks
-
getBlockEntities
- Returns:
- All block entities in the level.
-
getEntities
protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> getEntities()- Specified by:
getEntitiesin classnet.minecraft.world.level.Level
-
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:
getEntityin classnet.minecraft.world.level.Level
-
tickRateManager
public net.minecraft.world.TickRateManager tickRateManager()- Specified by:
tickRateManagerin classnet.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:
sendBlockUpdatedin classnet.minecraft.world.level.Level
-
playSeededSound
public void playSeededSound(@Nullable @Nullable net.minecraft.world.entity.player.Player player, double d, double e, double f, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> holder, net.minecraft.sounds.SoundSource soundSource, float g, float h, long l) - Specified by:
playSeededSoundin classnet.minecraft.world.level.Level
-
playSeededSound
public void playSeededSound(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> holder, net.minecraft.sounds.SoundSource soundSource, float f, float g, long l) - Specified by:
playSeededSoundin classnet.minecraft.world.level.Level
-
gatherChunkSourceStats
- Specified by:
gatherChunkSourceStatsin classnet.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:
getMapDatain classnet.minecraft.world.level.Level
-
setMapData
public void setMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData data) - Specified by:
setMapDatain classnet.minecraft.world.level.Level
-
getFreeMapId
public net.minecraft.world.level.saveddata.maps.MapId getFreeMapId()- Specified by:
getFreeMapIdin 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
-
getScoreboard
public net.minecraft.world.scores.Scoreboard getScoreboard()- Specified by:
getScoreboardin classnet.minecraft.world.level.Level
-
getRecipeManager
public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()- Specified by:
getRecipeManagerin classnet.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.player.Player 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
-
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:
registryAccessin interfacenet.minecraft.world.level.LevelReader- Overrides:
registryAccessin classnet.minecraft.world.level.Level
-
potionBrewing
public net.minecraft.world.item.alchemy.PotionBrewing potionBrewing()- Specified by:
potionBrewingin classnet.minecraft.world.level.Level
-
setDayTimeFraction
public void setDayTimeFraction(float v) - Specified by:
setDayTimeFractionin classnet.minecraft.world.level.Level
-
getDayTimeFraction
public float getDayTimeFraction()- Specified by:
getDayTimeFractionin classnet.minecraft.world.level.Level
-
getDayTimePerTick
public float getDayTimePerTick()- Specified by:
getDayTimePerTickin classnet.minecraft.world.level.Level
-
setDayTimePerTick
public void setDayTimePerTick(float v) - Specified by:
setDayTimePerTickin classnet.minecraft.world.level.Level
-
enabledFeatures
public net.minecraft.world.flag.FeatureFlagSet enabledFeatures()
-