Class ClientSandboxWorld
java.lang.Object
net.minecraft.world.World
io.github.thecsdev.tcdcommons.client.world.ClientSandboxWorld
- All Implemented Interfaces:
AutoCloseable
,net.fabricmc.fabric.api.blockview.v2.FabricBlockView
,net.minecraft.world.biome.source.BiomeAccess.Storage
,net.minecraft.world.BlockRenderView
,net.minecraft.world.BlockView
,net.minecraft.world.CollisionView
,net.minecraft.world.EntityView
,net.minecraft.world.HeightLimitView
,net.minecraft.world.LunarWorldView
,net.minecraft.world.ModifiableTestableWorld
,net.minecraft.world.ModifiableWorld
,net.minecraft.world.RedstoneView
,net.minecraft.world.RegistryWorldView
,net.minecraft.world.TestableWorld
,net.minecraft.world.WorldAccess
,net.minecraft.world.WorldView
@Beta
public class ClientSandboxWorld
extends net.minecraft.world.World
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.World
net.minecraft.world.World.ExplosionSourceType
-
Field Summary
Modifier and TypeFieldDescriptionprotected final net.minecraft.world.tick.QueryableTickScheduler<net.minecraft.block.Block>
protected final ClientSandboxChunkManager
protected final net.minecraft.client.world.ClientEntityManager<net.minecraft.entity.Entity>
protected final net.minecraft.world.tick.QueryableTickScheduler<net.minecraft.fluid.Fluid>
protected final Map<net.minecraft.component.type.MapIdComponent,
net.minecraft.item.map.MapState> protected final List<net.minecraft.entity.player.PlayerEntity>
protected final net.minecraft.recipe.RecipeManager
protected net.minecraft.scoreboard.Scoreboard
Fields inherited from class net.minecraft.world.World
blockEntityTickers, CODEC, END, field_30967, field_30968, field_30969, HORIZONTAL_LIMIT, isClient, lcgBlockSeed, lcgBlockSeedIncrement, MAX_UPDATE_DEPTH, MAX_Y, MIN_Y, neighborUpdater, NETHER, OVERWORLD, properties, rainGradient, rainGradientPrev, random, thunderGradient, thunderGradientPrev
Fields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
asString()
final void
emitGameEvent
(net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.event.GameEvent> event, net.minecraft.util.math.Vec3d emitterPos, net.minecraft.world.event.GameEvent.Emitter emitter) final net.minecraft.world.tick.QueryableTickScheduler<net.minecraft.block.Block>
final float
getBrightness
(net.minecraft.util.math.Direction direction, boolean shaded) final net.minecraft.world.chunk.ChunkManager
final net.minecraft.resource.featuretoggle.FeatureSet
final net.minecraft.entity.Entity
getEntityById
(int id) protected final net.minecraft.world.entity.EntityLookup<net.minecraft.entity.Entity>
final net.minecraft.world.tick.QueryableTickScheduler<net.minecraft.fluid.Fluid>
final net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.biome.Biome>
getGeneratorStoredBiome
(int biomeX, int biomeY, int biomeZ) final net.minecraft.item.map.MapState
getMapState
(net.minecraft.component.type.MapIdComponent id) final net.minecraft.component.type.MapIdComponent
final List<? extends net.minecraft.entity.player.PlayerEntity>
final net.minecraft.recipe.RecipeManager
final net.minecraft.scoreboard.Scoreboard
final net.minecraft.world.tick.TickManager
final void
playSound
(@Nullable net.minecraft.entity.player.PlayerEntity except, double x, double y, double z, net.minecraft.registry.entry.RegistryEntry<net.minecraft.sound.SoundEvent> sound, net.minecraft.sound.SoundCategory category, float volume, float pitch, long seed) final void
playSoundFromEntity
(@Nullable net.minecraft.entity.player.PlayerEntity except, net.minecraft.entity.Entity entity, net.minecraft.registry.entry.RegistryEntry<net.minecraft.sound.SoundEvent> sound, net.minecraft.sound.SoundCategory category, float volume, float pitch, long seed) final void
putMapState
(net.minecraft.component.type.MapIdComponent id, net.minecraft.item.map.MapState state) final void
setBlockBreakingInfo
(int entityId, net.minecraft.util.math.BlockPos pos, int progress) final void
setScoreboard
(net.minecraft.scoreboard.Scoreboard scoreboard) final void
syncWorldEvent
(net.minecraft.entity.player.PlayerEntity arg0, int arg1, net.minecraft.util.math.BlockPos arg2, int arg3) final void
updateListeners
(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState oldState, net.minecraft.block.BlockState newState, int flags) Methods inherited from class net.minecraft.world.World
addBlockBreakParticles, addBlockEntity, addBlockEntityTicker, addDetailsToCrashReport, addFireworkParticle, addImportantParticle, addImportantParticle, addParticle, addParticle, addSyncedBlockEvent, breakBlock, calculateAmbientDarkness, canPlayerModifyAt, canSetBlock, close, collectEntitiesByType, collectEntitiesByType, createExplosion, createExplosion, createExplosion, createExplosion, createExplosion, createExplosion, disconnect, getAmbientDarkness, getBiomeAccess, getBlockEntity, getBlockState, getChunk, getChunk, getChunkAsView, getDamageSources, getDimension, getDimensionEntry, getEntitiesByType, getFluidState, getGameRules, getLevelProperties, getLightingProvider, getLocalDifficulty, getOtherEntities, getProfiler, getProfilerSupplier, getRainGradient, getRandom, getRandomPosInChunk, getRegistryKey, getRegistryManager, getSeaLevel, getServer, getSkyAngleRadians, getSpawnAngle, getSpawnPos, getThunderGradient, getTickOrder, getTime, getTimeOfDay, getTopY, getWorldBorder, getWorldChunk, hasRain, initWeatherGradients, isClient, isDay, isDebugWorld, isDirectionSolid, isInBuildLimit, isNight, isRaining, isSavingDisabled, isThundering, isTopSolid, isValid, markDirty, onBlockChanged, playSound, playSound, playSound, playSound, playSound, playSound, playSoundAtBlockCenter, playSoundFromEntity, playSoundFromEntity, removeBlock, removeBlockEntity, replaceWithStateForNeighborUpdate, scheduleBlockRerenderIfNeeded, sendEntityDamage, sendEntityStatus, sendPacket, setBlockState, setBlockState, setBlockState, setLightningTicksLeft, setMobSpawnOptions, setRainGradient, setThunderGradient, shouldTickBlockPos, shouldTickBlocksInChunk, shouldUpdatePostDeath, syncGlobalEvent, testBlockState, testFluidState, tickBlockEntities, tickEntity, updateComparators, updateNeighbor, updateNeighbor, updateNeighborsAlways, updateNeighborsExcept
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.BlockRenderView
getBaseLightLevel, getLightLevel, isSkyVisible
Methods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getCollisions, getEntityCollisions, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getNonSpectatingEntities, getOtherEntities, getPlayerByUuid, getPlayers, getTargets, isPlayerInRange
Methods inherited from interface net.fabricmc.fabric.api.blockview.v2.FabricBlockView
getBiomeFabric, getBlockEntityRenderData, hasBiomes
Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
Methods inherited from interface net.minecraft.world.LunarWorldView
getMoonPhase, getMoonSize, getSkyAngle
Methods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, spawnEntity
Methods inherited from interface net.minecraft.world.RedstoneView
getEmittedRedstonePower, getEmittedRedstonePower, getReceivedRedstonePower, getReceivedStrongRedstonePower, getStrongRedstonePower, isEmittingRedstonePower, isReceivingRedstonePower
Methods inherited from interface net.minecraft.world.RegistryWorldView
doesNotIntersectEntities, getBlockEntity, getEntityCollisions, getTopPosition
Methods inherited from interface net.minecraft.world.WorldAccess
emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, getDifficulty, getLunarTime, isChunkLoaded, playSound, scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTick, syncWorldEvent, updateNeighbors
Methods inherited from interface net.minecraft.world.WorldView
containsFluid, createCommandRegistryWrapper, getBiome, getBiomeForNoiseGen, getBottomY, getBrightness, getChunk, getChunk, getColor, getHeight, getLightLevel, getLightLevel, getPhototaxisFavor, getStatesInBoxIfLoaded, isAir, isChunkLoaded, isPosLoaded, isRegionLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater
-
Field Details
-
chunkManager
-
players
-
recipeManager
protected final net.minecraft.recipe.RecipeManager recipeManager -
entityManager
protected final net.minecraft.client.world.ClientEntityManager<net.minecraft.entity.Entity> entityManager -
mapStates
protected final Map<net.minecraft.component.type.MapIdComponent,net.minecraft.item.map.MapState> mapStates -
blockTickScheduler
protected final net.minecraft.world.tick.QueryableTickScheduler<net.minecraft.block.Block> blockTickScheduler -
fluidTickScheduler
protected final net.minecraft.world.tick.QueryableTickScheduler<net.minecraft.fluid.Fluid> fluidTickScheduler -
scoreboard
protected net.minecraft.scoreboard.Scoreboard scoreboard
-
-
Constructor Details
-
ClientSandboxWorld
public ClientSandboxWorld()
-
-
Method Details
-
emitGameEvent
public final void emitGameEvent(net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.event.GameEvent> event, net.minecraft.util.math.Vec3d emitterPos, net.minecraft.world.event.GameEvent.Emitter emitter) -
getChunkManager
public final net.minecraft.world.chunk.ChunkManager getChunkManager() -
syncWorldEvent
public final void syncWorldEvent(net.minecraft.entity.player.PlayerEntity arg0, int arg1, net.minecraft.util.math.BlockPos arg2, int arg3) -
getPlayers
-
getEnabledFeatures
public final net.minecraft.resource.featuretoggle.FeatureSet getEnabledFeatures() -
getBrightness
public final float getBrightness(net.minecraft.util.math.Direction direction, boolean shaded) -
getNextMapId
public final net.minecraft.component.type.MapIdComponent getNextMapId()- Specified by:
getNextMapId
in classnet.minecraft.world.World
-
getScoreboard
public final net.minecraft.scoreboard.Scoreboard getScoreboard()- Specified by:
getScoreboard
in classnet.minecraft.world.World
-
setScoreboard
public final void setScoreboard(net.minecraft.scoreboard.Scoreboard scoreboard) -
playSound
public final void playSound(@Nullable @Nullable net.minecraft.entity.player.PlayerEntity except, double x, double y, double z, net.minecraft.registry.entry.RegistryEntry<net.minecraft.sound.SoundEvent> sound, net.minecraft.sound.SoundCategory category, float volume, float pitch, long seed) - Specified by:
playSound
in classnet.minecraft.world.World
-
playSoundFromEntity
public final void playSoundFromEntity(@Nullable @Nullable net.minecraft.entity.player.PlayerEntity except, net.minecraft.entity.Entity entity, net.minecraft.registry.entry.RegistryEntry<net.minecraft.sound.SoundEvent> sound, net.minecraft.sound.SoundCategory category, float volume, float pitch, long seed) - Specified by:
playSoundFromEntity
in classnet.minecraft.world.World
-
asString
- Specified by:
asString
in classnet.minecraft.world.World
-
setBlockBreakingInfo
public final void setBlockBreakingInfo(int entityId, net.minecraft.util.math.BlockPos pos, int progress) - Specified by:
setBlockBreakingInfo
in classnet.minecraft.world.World
-
updateListeners
public final void updateListeners(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState oldState, net.minecraft.block.BlockState newState, int flags) - Specified by:
updateListeners
in classnet.minecraft.world.World
-
getRecipeManager
public final net.minecraft.recipe.RecipeManager getRecipeManager()- Specified by:
getRecipeManager
in classnet.minecraft.world.World
-
getMapState
public final net.minecraft.item.map.MapState getMapState(net.minecraft.component.type.MapIdComponent id) - Specified by:
getMapState
in classnet.minecraft.world.World
-
putMapState
public final void putMapState(net.minecraft.component.type.MapIdComponent id, net.minecraft.item.map.MapState state) - Specified by:
putMapState
in classnet.minecraft.world.World
-
getBlockTickScheduler
public final net.minecraft.world.tick.QueryableTickScheduler<net.minecraft.block.Block> getBlockTickScheduler() -
getFluidTickScheduler
public final net.minecraft.world.tick.QueryableTickScheduler<net.minecraft.fluid.Fluid> getFluidTickScheduler() -
getEntityLookup
protected final net.minecraft.world.entity.EntityLookup<net.minecraft.entity.Entity> getEntityLookup()- Specified by:
getEntityLookup
in classnet.minecraft.world.World
-
getEntityById
public final net.minecraft.entity.Entity getEntityById(int id) - Specified by:
getEntityById
in classnet.minecraft.world.World
-
getGeneratorStoredBiome
public final net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.biome.Biome> getGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ) -
getTickManager
public final net.minecraft.world.tick.TickManager getTickManager()- Specified by:
getTickManager
in classnet.minecraft.world.World
-