Package dev.jaxydog.astral.mixin.client
Class ClientWorldMixin
java.lang.Object
net.minecraft.world.World
dev.jaxydog.astral.mixin.client.ClientWorldMixin
- All Implemented Interfaces:
AstralClientWorld,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
public abstract class ClientWorldMixin
extends net.minecraft.world.World
implements AstralClientWorld
Implements the
AstralClientWorld interface.- Since:
- 1.7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.World
net.minecraft.world.World.ExplosionSourceType -
Field Summary
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, thunderGradientPrevFields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientWorldMixin(net.minecraft.world.MutableWorldProperties properties, net.minecraft.registry.RegistryKey<net.minecraft.world.World> registryRef, net.minecraft.registry.DynamicRegistryManager registryManager, net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.dimension.DimensionType> dimensionEntry, Supplier<net.minecraft.util.profiler.Profiler> profiler, boolean isClient, boolean debugWorld, long biomeAccess, int maxChainedNeighborUpdates) Creates a new instance of this mixin. -
Method Summary
Modifier and TypeMethodDescriptionvoidastral$playUnboundedSound(double x, double y, double z, net.minecraft.sound.SoundEvent event, net.minecraft.sound.SoundCategory category, float volume, float pitch, boolean useDistance, long seed) Plays a sound at the given position without limiting its volume or pitch.voidastral$playUnboundedSoundFromEntity(@Nullable net.minecraft.entity.player.PlayerEntity except, net.minecraft.entity.Entity entity, net.minecraft.sound.SoundEvent event, net.minecraft.sound.SoundCategory category, float volume, float pitch, long seed) Plays a sound from the given entity without limiting its volume or pitch.Methods inherited from class net.minecraft.world.World
addBlockBreakParticles, addBlockEntity, addBlockEntityTicker, addDetailsToCrashReport, addFireworkParticle, addImportantParticle, addImportantParticle, addParticle, addParticle, addSyncedBlockEvent, asString, breakBlock, calculateAmbientDarkness, canPlayerModifyAt, canSetBlock, close, collectEntitiesByType, collectEntitiesByType, createExplosion, createExplosion, createExplosion, createExplosion, createExplosion, disconnect, getAmbientDarkness, getBiomeAccess, getBlockEntity, getBlockState, getChunk, getChunk, getChunkAsView, getDamageSources, getDimension, getDimensionEntry, getDimensionKey, getEntitiesByType, getEntityById, getEntityLookup, getFluidState, getGameRules, getLevelProperties, getLightingProvider, getLocalDifficulty, getMapState, getNextMapId, getOtherEntities, getProfiler, getProfilerSupplier, getRainGradient, getRandom, getRandomPosInChunk, getRecipeManager, getRegistryKey, getRegistryManager, getScoreboard, 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, putMapState, removeBlock, removeBlockEntity, replaceWithStateForNeighborUpdate, scheduleBlockRerenderIfNeeded, sendEntityDamage, sendEntityStatus, sendPacket, setBlockBreakingInfo, setBlockState, setBlockState, setBlockState, setLightningTicksLeft, setMobSpawnOptions, setRainGradient, setThunderGradient, shouldTickBlockPos, shouldTickBlocksInChunk, shouldUpdatePostDeath, syncGlobalEvent, testBlockState, testFluidState, tickBlockEntities, tickEntity, updateComparators, updateListeners, updateNeighbor, updateNeighbor, updateNeighborsAlways, updateNeighborsExceptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getCollisions, getEntityCollisions, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getNonSpectatingEntities, getOtherEntities, getPlayerByUuid, getPlayers, getPlayers, getTargets, isPlayerInRangeMethods inherited from interface net.fabricmc.fabric.api.blockview.v2.FabricBlockView
getBiomeFabric, getBlockEntityRenderData, hasBiomesMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoordMethods inherited from interface net.minecraft.world.LunarWorldView
getMoonPhase, getMoonSize, getSkyAngleMethods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, spawnEntityMethods inherited from interface net.minecraft.world.RedstoneView
getEmittedRedstonePower, getEmittedRedstonePower, getReceivedRedstonePower, getReceivedStrongRedstonePower, getStrongRedstonePower, isEmittingRedstonePower, isReceivingRedstonePowerMethods inherited from interface net.minecraft.world.RegistryWorldView
doesNotIntersectEntities, getBlockEntity, getEntityCollisions, getTopPositionMethods inherited from interface net.minecraft.world.WorldAccess
emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, getBlockTickScheduler, getChunkManager, getDifficulty, getFluidTickScheduler, getLunarTime, isChunkLoaded, playSound, scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTick, syncWorldEvent, syncWorldEvent, updateNeighborsMethods inherited from interface net.minecraft.world.WorldView
containsFluid, createCommandRegistryWrapper, getBiome, getBiomeForNoiseGen, getBottomY, getBrightness, getChunk, getChunk, getColor, getEnabledFeatures, getGeneratorStoredBiome, getHeight, getLightLevel, getLightLevel, getPhototaxisFavor, getStatesInBoxIfLoaded, isAir, isChunkLoaded, isPosLoaded, isRegionLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater
-
Constructor Details
-
ClientWorldMixin
protected ClientWorldMixin(net.minecraft.world.MutableWorldProperties properties, net.minecraft.registry.RegistryKey<net.minecraft.world.World> registryRef, net.minecraft.registry.DynamicRegistryManager registryManager, net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.dimension.DimensionType> dimensionEntry, Supplier<net.minecraft.util.profiler.Profiler> profiler, boolean isClient, boolean debugWorld, long biomeAccess, int maxChainedNeighborUpdates) Creates a new instance of this mixin.- Parameters:
properties- The world properties.registryRef- The world's registry reference.registryManager- The registry manager.dimensionEntry- The dimension registry entry.profiler- The profiler supplier.isClient- Whether this is on the client.debugWorld- Whether this is a debug world.biomeAccess- The world seed.maxChainedNeighborUpdates- The maximum number of allowed chained neighbor updates.- Since:
- 1.7.0
-
-
Method Details
-
astral$playUnboundedSound
public void astral$playUnboundedSound(double x, double y, double z, net.minecraft.sound.SoundEvent event, net.minecraft.sound.SoundCategory category, float volume, float pitch, boolean useDistance, long seed) Description copied from interface:AstralClientWorldPlays a sound at the given position without limiting its volume or pitch.- Specified by:
astral$playUnboundedSoundin interfaceAstralClientWorld- Parameters:
x- The X position.y- The Y position.z- The Z position.event- The sound event.category- The sound category.volume- The sound volume.pitch- The sound pitch.useDistance- Whether to check distance in the sound engine.seed- The seed for the sound's randomness.
-
astral$playUnboundedSoundFromEntity
public void astral$playUnboundedSoundFromEntity(@Nullable @Nullable net.minecraft.entity.player.PlayerEntity except, net.minecraft.entity.Entity entity, net.minecraft.sound.SoundEvent event, net.minecraft.sound.SoundCategory category, float volume, float pitch, long seed) Description copied from interface:AstralClientWorldPlays a sound from the given entity without limiting its volume or pitch.- Specified by:
astral$playUnboundedSoundFromEntityin interfaceAstralClientWorld- Parameters:
except- Possibly a player.entity- The target entity.event- The sound event.category- The sound category.volume- The sound volume.pitch- The sound pitch.seed- The seed for the sound's randomness.
-