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.ExplosionInteractionNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.core.Vec3iprotected 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 VirtualChunkSourceprotected final net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> protected final intprotected final net.minecraft.world.level.Levelprotected final net.minecraft.world.level.lighting.LevelLightEngineprotected final intprotected final it.unimi.dsi.fastutil.objects.Object2ShortMap<net.minecraft.core.SectionPos> protected final net.minecraft.core.BlockPos.MutableBlockPosFields 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
ConstructorsConstructorDescriptionVirtualRenderWorld(net.minecraft.world.level.Level level) VirtualRenderWorld(net.minecraft.world.level.Level level, int minBuildHeight, int height, net.minecraft.core.Vec3i biomeOffset) VirtualRenderWorld(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i biomeOffset) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.chunk.ChunkAccessactuallyGetChunk(int x, int z) voidclear()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 pos, net.minecraft.world.level.gameevent.GameEvent.Context context) net.minecraft.world.level.chunk.ChunkAccessgetAnyChunkImmediately(int chunkX, int chunkZ) net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getBiome(net.minecraft.core.BlockPos pos) net.minecraft.world.level.biome.BiomeManagernet.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.state.BlockStategetBlockState(int x, int y, int z) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> intgetBrightness(net.minecraft.world.level.LightLayer lightType, net.minecraft.core.BlockPos blockPos) net.minecraft.world.level.chunk.LevelChunkgetChunk(int x, int z) net.minecraft.world.level.chunk.ChunkAccessgetChunk(net.minecraft.core.BlockPos pos) net.minecraft.world.level.chunk.LevelChunkgetChunkAtImmediately(int chunkX, int chunkZ) net.minecraft.world.level.chunk.ChunkSourcefloatfloatprotected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> net.minecraft.world.entity.EntitygetEntity(int id) net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> @NotNull net.minecraft.world.level.saveddata.maps.MapIdintnet.minecraft.world.level.lighting.LevelLightEnginenet.minecraft.world.level.saveddata.maps.MapItemSavedDatagetMapData(net.minecraft.world.level.saveddata.maps.MapId mapId) intintgetMaxLocalRawBrightness(net.minecraft.core.BlockPos pos) intintintnet.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getNoiseBiome(int x, int y, int z) net.minecraft.world.item.crafting.RecipeManagernet.minecraft.world.scores.ScoreboardintgetSectionIndex(int y) intgetSectionIndexFromSectionY(int sectionY) intintgetSectionYFromSectionIndex(int sectionIndex) floatgetShade(net.minecraft.core.Direction direction, boolean shade) net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int x, int y, int z) booleanisAreaLoaded(net.minecraft.core.BlockPos center, int range) booleanisLoaded(net.minecraft.core.BlockPos pos) booleanisOutsideBuildHeight(int y) booleanisOutsideBuildHeight(net.minecraft.core.BlockPos pos) voidlevelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) static intnextMultipleOf16(int a) We need to ensure that height and minBuildHeight are multiples of 16.List<? extends net.minecraft.world.entity.player.Player> players()voidplaySeededSound(net.minecraft.world.entity.player.Player 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) voidplaySeededSound(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.PotionBrewingvoidremoveBlockEntity(net.minecraft.core.BlockPos pos) voidReset the external light.voidRun this after you're done using setBlock().voidsendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) booleansetBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags, int recursionLeft) voidsetBlockEntities(Collection<net.minecraft.world.level.block.entity.BlockEntity> blockEntities) voidsetBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity) voidsetDayTimeFraction(float v) voidsetDayTimePerTick(float v) voidsetExternalLight(int packedLight) Set an external light value that will be maxed with any light queries.voidsetMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapItemSavedData) net.minecraft.world.TickRateManagervoidupdateNeighbourForOutputSignal(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, 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, 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, getWorldBorder, 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, getEntities, 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, holderOrThrowMethods 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, scheduleTickMethods 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, registryAccessMethods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPositionMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlockMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignalMethods 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
-
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
-
-
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, int minBuildHeight, int height, net.minecraft.core.Vec3i biomeOffset)
-
-
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. -
getBrightness
public int getBrightness(net.minecraft.world.level.LightLayer lightType, net.minecraft.core.BlockPos blockPos) - Specified by:
getBrightnessin interfacenet.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 x, int z) - Specified by:
getChunkin interfacenet.minecraft.world.level.LevelReader- Overrides:
getChunkin classnet.minecraft.world.level.Level
-
actuallyGetChunk
public net.minecraft.world.level.chunk.ChunkAccess actuallyGetChunk(int x, int z) -
getChunk
public net.minecraft.world.level.chunk.ChunkAccess getChunk(net.minecraft.core.BlockPos pos) - Specified by:
getChunkin interfacenet.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:
setBlockin interfacenet.minecraft.world.level.LevelWriter- Overrides:
setBlockin classnet.minecraft.world.level.Level
-
getLightEngine
public net.minecraft.world.level.lighting.LevelLightEngine getLightEngine()- Specified by:
getLightEnginein interfacenet.minecraft.world.level.BlockAndTintGetter- Overrides:
getLightEnginein classnet.minecraft.world.level.Level
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos) - Specified by:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockStatein classnet.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:
getFluidStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getFluidStatein classnet.minecraft.world.level.Level
-
getBlockEntity
@Nullable public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos) - Specified by:
getBlockEntityin interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockEntityin classnet.minecraft.world.level.Level
-
setBlockEntity
public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity) - Overrides:
setBlockEntityin classnet.minecraft.world.level.Level
-
removeBlockEntity
public void removeBlockEntity(net.minecraft.core.BlockPos pos) - Overrides:
removeBlockEntityin classnet.minecraft.world.level.Level
-
getEntities
protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> getEntities()- Specified by:
getEntitiesin classnet.minecraft.world.level.Level
-
getChunkSource
public net.minecraft.world.level.chunk.ChunkSource getChunkSource()- Specified by:
getChunkSourcein interfacenet.minecraft.world.level.LevelAccessor
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor- Specified by:
getMinBuildHeightin interfacenet.minecraft.world.level.LevelReader
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacenet.minecraft.world.level.LevelHeightAccessor- Specified by:
getHeightin interfacenet.minecraft.world.level.LevelReader
-
getBiome
public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getBiome(net.minecraft.core.BlockPos pos) - Specified by:
getBiomein interfacenet.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:
getNoiseBiomein interfacenet.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource- Specified by:
getNoiseBiomein interfacenet.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:
getUncachedNoiseBiomein interfacenet.minecraft.world.level.LevelReader
-
getMaxLocalRawBrightness
public int getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos) - Specified by:
getMaxLocalRawBrightnessin interfacenet.minecraft.world.level.LevelReader
-
getShade
public float getShade(net.minecraft.core.Direction direction, boolean shade) - Specified by:
getShadein interfacenet.minecraft.world.level.BlockAndTintGetter
-
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
-
getBiomeManager
public net.minecraft.world.level.biome.BiomeManager getBiomeManager()- Specified by:
getBiomeManagerin interfacenet.minecraft.world.level.LevelReader- Overrides:
getBiomeManagerin classnet.minecraft.world.level.Level
-
getBlockTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks()- Specified by:
getBlockTicksin interfacenet.minecraft.world.level.LevelAccessor
-
getFluidTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()- Specified by:
getFluidTicksin interfacenet.minecraft.world.level.LevelAccessor
-
enabledFeatures
public net.minecraft.world.flag.FeatureFlagSet enabledFeatures()- Specified by:
enabledFeaturesin interfacenet.minecraft.world.level.LevelReader
-
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
-
setDayTimePerTick
public void setDayTimePerTick(float v) - Specified by:
setDayTimePerTickin 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
-
updateNeighbourForOutputSignal
public void updateNeighbourForOutputSignal(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block block) - Overrides:
updateNeighbourForOutputSignalin classnet.minecraft.world.level.Level
-
isLoaded
public boolean isLoaded(net.minecraft.core.BlockPos pos) - Overrides:
isLoadedin classnet.minecraft.world.level.Level
-
isAreaLoaded
public boolean isAreaLoaded(net.minecraft.core.BlockPos center, int range) - Specified by:
isAreaLoadedin interfacenet.neoforged.neoforge.common.extensions.ILevelReaderExtension
-
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(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:
playSeededSoundin classnet.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:
playSeededSoundin classnet.minecraft.world.level.Level
-
gatherChunkSourceStats
- Specified by:
gatherChunkSourceStatsin classnet.minecraft.world.level.Level
-
getEntity
@Nullable public 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
-
getMapData
@Nullable public 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 mapItemSavedData) - Specified by:
setMapDatain classnet.minecraft.world.level.Level
-
getFreeMapId
@NotNull public @NotNull 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
-
levelEvent
public void levelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) - Specified by:
levelEventin interfacenet.minecraft.world.level.LevelAccessor
-
gameEvent
public void gameEvent(net.minecraft.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:
gameEventin interfacenet.minecraft.world.level.LevelAccessor
-
players
- Specified by:
playersin interfacenet.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:
getMaxBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getSectionsCount
public int getSectionsCount()- Specified by:
getSectionsCountin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getMinSection
public int getMinSection()- Specified by:
getMinSectionin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getMaxSection
public int getMaxSection()- Specified by:
getMaxSectionin interfacenet.minecraft.world.level.LevelHeightAccessor
-
isOutsideBuildHeight
public boolean isOutsideBuildHeight(net.minecraft.core.BlockPos pos) - Specified by:
isOutsideBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
isOutsideBuildHeight
public boolean isOutsideBuildHeight(int y) - Specified by:
isOutsideBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getSectionIndex
public int getSectionIndex(int y) - Specified by:
getSectionIndexin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getSectionIndexFromSectionY
public int getSectionIndexFromSectionY(int sectionY) - Specified by:
getSectionIndexFromSectionYin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getSectionYFromSectionIndex
public int getSectionYFromSectionIndex(int sectionIndex) - Specified by:
getSectionYFromSectionIndexin interfacenet.minecraft.world.level.LevelHeightAccessor
-