Class SandboxLevel
java.lang.Object
net.minecraft.world.level.Level
com.thecsdev.commonmc.world.sandbox.SandboxLevel
- All Implemented Interfaces:
AutoCloseable, net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource, net.minecraft.world.level.BlockAndLightGetter, 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.LevelWriter, net.minecraft.world.level.ScheduledTickAccess, net.minecraft.world.level.SignalGetter
Barebones minimal
Level implementation.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.Level
net.minecraft.world.level.Level.ExplosionInteractionNested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
net.minecraft.world.level.BlockGetter.BlockStepVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @NotNull net.minecraft.world.level.chunk.ChunkSourceprotected @NotNull net.minecraft.world.clock.ClockManagerprotected @NotNull List<net.minecraft.world.entity.boss.enderdragon.EnderDragonPart> protected @NotNull net.minecraft.world.level.entity.TransientEntitySectionManager<net.minecraft.world.entity.Entity> protected @NotNull net.minecraft.world.level.block.entity.FuelValuesstatic final SandboxLevelPrimarySandboxLevelinstance that is usedApiStatus.Internally.protected @NotNull List<net.minecraft.world.entity.player.Player> protected @NotNull net.minecraft.world.item.alchemy.PotionBrewingprotected @NotNull net.minecraft.world.item.crafting.RecipeAccessprotected @NotNull net.minecraft.world.scores.Scoreboardprotected @NotNull net.minecraft.world.TickRateManagerprotected @NotNull net.minecraft.world.level.border.WorldBorderFields inherited from class net.minecraft.world.level.Level
ACROSS_THE_WHOLE_WORLD, addend, blockEntityTickers, END, 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, SHORT_PARTICLE_CLIP_RANGE, thunderLevelFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
ConstructorsConstructorDescriptionSandboxLevel(net.minecraft.world.level.storage.WritableLevelData properties, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryRef, net.minecraft.core.RegistryAccess registryManager, net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dimensionEntry, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.clock.ClockManagervoiddestroyBlockProgress(int entityId, net.minecraft.core.BlockPos position, int progress) Collection<net.minecraft.world.entity.boss.enderdragon.EnderDragonPart> net.minecraft.world.flag.FeatureFlagSetnet.minecraft.world.attribute.EnvironmentAttributeSystemvoidexplode(@Nullable net.minecraft.world.entity.Entity entity, @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable net.minecraft.world.level.ExplosionDamageCalculator behavior, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionSourceType, net.minecraft.core.particles.ParticleOptions smallParticle, net.minecraft.core.particles.ParticleOptions largeParticle, net.minecraft.util.random.WeightedList<net.minecraft.core.particles.ExplosionParticleInfo> blockParticles, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent) net.minecraft.world.level.block.entity.FuelValuesvoidgameEvent(net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> event, net.minecraft.world.phys.Vec3 emitterPosition, net.minecraft.world.level.gameevent.GameEvent.Context emitter) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> net.minecraft.world.level.chunk.ChunkSourceprotected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> @Nullable net.minecraft.world.entity.EntitygetEntity(int entityId) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> @Nullable net.minecraft.world.level.saveddata.maps.MapItemSavedDatagetMapData(net.minecraft.world.level.saveddata.maps.MapId mapId) net.minecraft.world.level.storage.LevelData.RespawnDatanet.minecraft.world.scores.Scoreboardintnet.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int biomeX, int biomeY, int biomeZ) net.minecraft.world.level.border.WorldBordervoidlevelEvent(@Nullable net.minecraft.world.entity.Entity source, int eventId, net.minecraft.core.BlockPos position, int data) List<? extends net.minecraft.world.entity.player.Player> players()voidplaySeededSound(@Nullable net.minecraft.world.entity.Entity source, double x, double y, double z, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, net.minecraft.sounds.SoundSource category, float volume, float pitch, long speed) voidplaySeededSound(@Nullable net.minecraft.world.entity.Entity source, net.minecraft.world.entity.Entity entity, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, net.minecraft.sounds.SoundSource category, float volume, float pitch, long speed) net.minecraft.world.item.alchemy.PotionBrewingnet.minecraft.world.item.crafting.RecipeAccessvoidsendBlockUpdated(net.minecraft.core.BlockPos position, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) voidsetRespawnData(net.minecraft.world.level.storage.LevelData.RespawnData spawnPoint) net.minecraft.world.TickRateManagerMethods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addParticle, addParticle, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, canHaveWeather, close, createFireworks, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, explode, explode, explode, explode, fillReportDetails, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getClientLeafTintColor, getDefaultClockTime, getEntities, getEntities, getEntities, getEntities, getEntity, getEntityInAnyDimension, getFluidState, getHeight, getLevelData, getLightEngine, getNextEntityId, getOverworldClockTime, getPlayerInAnyDimension, getPushableEntities, getRainLevel, getRandom, getServer, getSkyDarken, getThunderLevel, getWorldBorderAdjustedRespawnData, globalLevelEvent, guardEntityTick, hasEntities, isBrightOutside, isClientSide, isDarkOutside, isDebug, isFluidAtPosition, isInSpawnableBounds, isInValidBounds, isInWorldBounds, isLoaded, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockEntityAdded, palettedContainerFactory, playLocalSound, playLocalSound, playLocalSound, playPlayerSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, precipitationAt, registryAccess, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updatePOIOnBlockStateChange, updateSkyBrightnessMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndLightGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getBlockCollisionsFromContext, getCollisions, getPreMoveCollisions, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraft.world.level.LevelAccessor
createTick, createTick, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, getGameTime, hasChunk, levelEvent, playSound, updateNeighborsAtMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getChunk, getChunk, getEffectiveSkyBrightness, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlockMethods inherited from interface net.minecraft.world.level.ScheduledTickAccess
scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getBestOwnOrNeighbourSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Field Details
-
entityManager
@NotNull protected @NotNull net.minecraft.world.level.entity.TransientEntitySectionManager<net.minecraft.world.entity.Entity> entityManager -
clockManager
@NotNull protected @NotNull net.minecraft.world.clock.ClockManager clockManager -
dragonParts
@NotNull protected @NotNull List<net.minecraft.world.entity.boss.enderdragon.EnderDragonPart> dragonParts -
tickRateManager
@NotNull protected @NotNull net.minecraft.world.TickRateManager tickRateManager -
scoreboard
@NotNull protected @NotNull net.minecraft.world.scores.Scoreboard scoreboard -
recipeAccess
@NotNull protected @NotNull net.minecraft.world.item.crafting.RecipeAccess recipeAccess -
potionBrewing
@NotNull protected @NotNull net.minecraft.world.item.alchemy.PotionBrewing potionBrewing -
fuelValues
@NotNull protected @NotNull net.minecraft.world.level.block.entity.FuelValues fuelValues -
chunkSource
@NotNull protected @NotNull net.minecraft.world.level.chunk.ChunkSource chunkSource -
players
-
worldBorder
@NotNull protected @NotNull net.minecraft.world.level.border.WorldBorder worldBorder -
INSTANCE
PrimarySandboxLevelinstance that is usedApiStatus.Internally.
-
-
Constructor Details
-
SandboxLevel
public SandboxLevel() -
SandboxLevel
public SandboxLevel(net.minecraft.world.level.storage.WritableLevelData properties, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryRef, net.minecraft.core.RegistryAccess registryManager, net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dimensionEntry, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates)
-
-
Method Details
-
sendBlockUpdated
@Virtual public void sendBlockUpdated(net.minecraft.core.BlockPos position, 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
@Virtual public void playSeededSound(@Nullable @Nullable net.minecraft.world.entity.Entity source, double x, double y, double z, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, net.minecraft.sounds.SoundSource category, float volume, float pitch, long speed) - Specified by:
playSeededSoundin classnet.minecraft.world.level.Level
-
playSeededSound
@Virtual public void playSeededSound(@Nullable @Nullable net.minecraft.world.entity.Entity source, net.minecraft.world.entity.Entity entity, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, net.minecraft.sounds.SoundSource category, float volume, float pitch, long speed) - Specified by:
playSeededSoundin classnet.minecraft.world.level.Level
-
explode
@Virtual public void explode(@Nullable @Nullable net.minecraft.world.entity.Entity entity, @Nullable @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable @Nullable net.minecraft.world.level.ExplosionDamageCalculator behavior, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionSourceType, net.minecraft.core.particles.ParticleOptions smallParticle, net.minecraft.core.particles.ParticleOptions largeParticle, net.minecraft.util.random.WeightedList<net.minecraft.core.particles.ExplosionParticleInfo> blockParticles, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent) - Specified by:
explodein classnet.minecraft.world.level.Level
-
gatherChunkSourceStats
-
setRespawnData
@Virtual public void setRespawnData(net.minecraft.world.level.storage.LevelData.RespawnData spawnPoint) - Specified by:
setRespawnDatain classnet.minecraft.world.level.Level
-
getRespawnData
- Specified by:
getRespawnDatain classnet.minecraft.world.level.Level
-
getEntity
- Specified by:
getEntityin classnet.minecraft.world.level.Level
-
dragonParts
@Virtual public Collection<net.minecraft.world.entity.boss.enderdragon.EnderDragonPart> dragonParts()- Specified by:
dragonPartsin classnet.minecraft.world.level.Level
-
tickRateManager
- Specified by:
tickRateManagerin classnet.minecraft.world.level.Level
-
getMapData
@Virtual @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
-
destroyBlockProgress
@Virtual public void destroyBlockProgress(int entityId, net.minecraft.core.BlockPos position, int progress) - Specified by:
destroyBlockProgressin classnet.minecraft.world.level.Level
-
getScoreboard
- Specified by:
getScoreboardin classnet.minecraft.world.level.Level
-
recipeAccess
- Specified by:
recipeAccessin classnet.minecraft.world.level.Level
-
getEntities
@Virtual protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> getEntities()- Specified by:
getEntitiesin classnet.minecraft.world.level.Level
-
clockManager
- Specified by:
clockManagerin classnet.minecraft.world.level.Level
-
environmentAttributes
- Specified by:
environmentAttributesin interfacenet.minecraft.world.level.LevelReader- Specified by:
environmentAttributesin classnet.minecraft.world.level.Level
-
potionBrewing
- Specified by:
potionBrewingin classnet.minecraft.world.level.Level
-
fuelValues
- Specified by:
fuelValuesin classnet.minecraft.world.level.Level
-
getChunkSource
-
levelEvent
@Virtual public void levelEvent(@Nullable @Nullable net.minecraft.world.entity.Entity source, int eventId, net.minecraft.core.BlockPos position, int data) -
gameEvent
@Virtual public void gameEvent(net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> event, net.minecraft.world.phys.Vec3 emitterPosition, net.minecraft.world.level.gameevent.GameEvent.Context emitter) -
players
-
getUncachedNoiseBiome
@Virtual public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int biomeX, int biomeY, int biomeZ) -
getSeaLevel
-
enabledFeatures
-
getWorldBorder
-
getBlockTicks
@Virtual public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks() -
getFluidTicks
@Virtual public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()
-