Package net.minecraft.world
Interface WorldAccess
- All Superinterfaces:
BiomeAccess.Storage,BlockRenderView,BlockView,CollisionView,EntityView,HeightLimitView,ModifiableTestableWorld,ModifiableWorld,RedstoneView,RegistryWorldView,ScheduledTickView,TestableWorld,WorldView
- All Known Subinterfaces:
ServerWorldAccess,StructureWorldAccess
- All Known Implementing Classes:
ChunkRegion,ClientWorld,ServerWorld,World
- Mappings:
Namespace Name named net/minecraft/world/WorldAccessintermediary net/minecraft/class_1936official dwp
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.BlockView
BlockView.CollisionVisitor -
Field Summary
Fields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParticleClient(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds a particle to the client's world renderer.default <T> OrderedTick<T> createOrderedTick(BlockPos pos, T type, int delay) default <T> OrderedTick<T> createOrderedTick(BlockPos pos, T type, int delay, TickPriority priority) default voidemitGameEvent(@Nullable Entity entity, RegistryEntry<GameEvent> event, BlockPos pos) default voidemitGameEvent(@Nullable Entity entity, RegistryEntry<GameEvent> event, Vec3d pos) default voidemitGameEvent(RegistryEntry<GameEvent> event, BlockPos pos, GameEvent.Emitter emitter) voidemitGameEvent(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.default voidemitGameEvent(RegistryKey<GameEvent> event, BlockPos pos, GameEvent.Emitter emitter) default Difficulty@Nullable MinecraftServerlongdefault longgetTime()default booleanisChunkLoaded(int chunkX, int chunkZ) default voidplaySound(@Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category) voidplaySound(@Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) default voidreplaceWithStateForNeighborUpdate(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int maxUpdateDepth) default voidsyncWorldEvent(int eventId, BlockPos pos, int data) voidsyncWorldEvent(@Nullable Entity source, int eventId, BlockPos pos, int data) default voidupdateNeighbors(BlockPos pos, Block block) Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getBlockOrFluidCollisions, getCollisions, getCollisions, getCollisionsIncludingWorldBorder, getEntityCollisions, getWorldBorder, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, method_76791, method_76792, method_76793Methods inherited from interface net.minecraft.world.EntityView
getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getEntitiesByType, getNonSpectatingEntities, getOtherEntities, getOtherEntities, getPlayerByUuid, getPlayers, isPlayerInRangeMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoordMethods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, breakBlock, removeBlock, setBlockState, setBlockState, 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.tick.ScheduledTickView
getBlockTickScheduler, getFluidTickScheduler, scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTickMethods inherited from interface net.minecraft.world.TestableWorld
testBlockState, testFluidStateMethods inherited from interface net.minecraft.world.WorldView
containsFluid, createCommandRegistryWrapper, getAmbientDarkness, getBiome, getBiomeAccess, getBiomeForNoiseGen, getBottomY, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkAsView, getColor, getDimension, getEnabledFeatures, getEnvironmentAttributes, getGeneratorStoredBiome, getHeight, getLightLevel, getLightLevel, getPhototaxisFavor, getRegistryManager, getSeaLevel, getStatesInBoxIfLoaded, getTopY, getTopY, isAir, isChunkLoaded, isClient, isPosLoaded, isRegionLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater
-
Method Details
-
getTickOrder
long getTickOrder()- Mappings:
Namespace Name Mixin selector named getTickOrderLnet/minecraft/world/WorldAccess;getTickOrder()Jintermediary method_39224Lnet/minecraft/class_1936;method_39224()Jofficial I_Ldwp;I_()J
-
createOrderedTick
default <T> OrderedTick<T> createOrderedTick(BlockPos pos, T type, int delay, TickPriority priority) - Specified by:
createOrderedTickin interfaceScheduledTickView- Mappings:
Namespace Name Mixin selector named createOrderedTickLnet/minecraft/world/tick/ScheduledTickView;createOrderedTick(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;ILnet/minecraft/world/tick/TickPriority;)Lnet/minecraft/world/tick/OrderedTick;intermediary method_39284Lnet/minecraft/class_10225;method_39284(Lnet/minecraft/class_2338;Ljava/lang/Object;ILnet/minecraft/class_1953;)Lnet/minecraft/class_6760;official aLdxd;a(Lis;Ljava/lang/Object;ILfvi;)Lfve;
-
createOrderedTick
- Specified by:
createOrderedTickin interfaceScheduledTickView- Mappings:
Namespace Name Mixin selector named createOrderedTickLnet/minecraft/world/tick/ScheduledTickView;createOrderedTick(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;I)Lnet/minecraft/world/tick/OrderedTick;intermediary method_39283Lnet/minecraft/class_10225;method_39283(Lnet/minecraft/class_2338;Ljava/lang/Object;I)Lnet/minecraft/class_6760;official aLdxd;a(Lis;Ljava/lang/Object;I)Lfve;
-
getLevelProperties
WorldProperties getLevelProperties()- Mappings:
Namespace Name Mixin selector named getLevelPropertiesLnet/minecraft/world/WorldAccess;getLevelProperties()Lnet/minecraft/world/WorldProperties;intermediary method_8401Lnet/minecraft/class_1936;method_8401()Lnet/minecraft/class_5217;official D_Ldwp;D_()Lfne;
-
getTime
default long getTime()- Mappings:
Namespace Name Mixin selector named getTimeLnet/minecraft/world/WorldAccess;getTime()Jintermediary method_75260Lnet/minecraft/class_1936;method_75260()Jofficial auLdwp;au()J
-
getServer
@Nullable MinecraftServer getServer()- Mappings:
Namespace Name Mixin selector named getServerLnet/minecraft/world/WorldAccess;getServer()Lnet/minecraft/server/MinecraftServer;intermediary method_8503Lnet/minecraft/class_1936;method_8503()Lnet/minecraft/server/MinecraftServer;official sLdwp;s()Lnet/minecraft/server/MinecraftServer;
-
getDifficulty
- Mappings:
Namespace Name Mixin selector named getDifficultyLnet/minecraft/world/WorldAccess;getDifficulty()Lnet/minecraft/world/Difficulty;intermediary method_8407Lnet/minecraft/class_1936;method_8407()Lnet/minecraft/class_1267;official avLdwp;av()Lccz;
-
getChunkManager
ChunkManager getChunkManager()- Mappings:
Namespace Name Mixin selector named getChunkManagerLnet/minecraft/world/WorldAccess;getChunkManager()Lnet/minecraft/world/chunk/ChunkManager;intermediary method_8398Lnet/minecraft/class_1936;method_8398()Lnet/minecraft/class_2802;official acLdwp;ac()Leqj;
-
isChunkLoaded
default boolean isChunkLoaded(int chunkX, int chunkZ) - Specified by:
isChunkLoadedin interfaceWorldView- Mappings:
Namespace Name Mixin selector named isChunkLoadedLnet/minecraft/world/WorldView;isChunkLoaded(II)Zintermediary method_8393Lnet/minecraft/class_4538;method_8393(II)Zofficial bLdwr;b(II)Z
-
getRandom
Random getRandom()- Mappings:
Namespace Name Mixin selector named getRandomLnet/minecraft/world/WorldAccess;getRandom()Lnet/minecraft/util/math/random/Random;intermediary method_8409Lnet/minecraft/class_1936;method_8409()Lnet/minecraft/class_5819;official G_Ldwp;G_()Lbgr;
-
updateNeighbors
- Mappings:
Namespace Name Mixin selector named updateNeighborsLnet/minecraft/world/WorldAccess;updateNeighbors(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)Vintermediary method_8408Lnet/minecraft/class_1936;method_8408(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;)Vofficial aLdwp;a(Lis;Ldzq;)V
-
replaceWithStateForNeighborUpdate
default void replaceWithStateForNeighborUpdate(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int maxUpdateDepth) - Mappings:
Namespace Name Mixin selector named replaceWithStateForNeighborUpdateLnet/minecraft/world/WorldAccess;replaceWithStateForNeighborUpdate(Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Vintermediary method_42308Lnet/minecraft/class_1936;method_42308(Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Vofficial aLdwp;a(Liz;Lis;Lis;Leoh;II)V
-
playSound
default void playSound(@Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category) - Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/world/WorldAccess;playSound(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;)Vintermediary method_45447Lnet/minecraft/class_1936;method_45447(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;)Vofficial aLdwp;a(Lcgk;Lis;Lbcz;Lbdb;)V
-
playSound
void playSound(@Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/world/WorldAccess;playSound(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)Vintermediary method_8396Lnet/minecraft/class_1936;method_8396(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLdwp;a(Lcgk;Lis;Lbcz;Lbdb;FF)V
-
addParticleClient
void addParticleClient(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds a particle to the client's world renderer. Does nothing on the server.- See Also:
- Mappings:
Namespace Name Mixin selector named addParticleClientLnet/minecraft/world/WorldAccess;addParticleClient(Lnet/minecraft/particle/ParticleEffect;DDDDDD)Vintermediary method_8406Lnet/minecraft/class_1936;method_8406(Lnet/minecraft/class_2394;DDDDDD)Vofficial aLdwp;a(Llw;DDDDDD)V
-
syncWorldEvent
- Mappings:
Namespace Name Mixin selector named syncWorldEventLnet/minecraft/world/WorldAccess;syncWorldEvent(Lnet/minecraft/entity/Entity;ILnet/minecraft/util/math/BlockPos;I)Vintermediary method_8444Lnet/minecraft/class_1936;method_8444(Lnet/minecraft/class_1297;ILnet/minecraft/class_2338;I)Vofficial aLdwp;a(Lcgk;ILis;I)V
-
syncWorldEvent
- Mappings:
Namespace Name Mixin selector named syncWorldEventLnet/minecraft/world/WorldAccess;syncWorldEvent(ILnet/minecraft/util/math/BlockPos;I)Vintermediary method_20290Lnet/minecraft/class_1936;method_20290(ILnet/minecraft/class_2338;I)Vofficial cLdwp;c(ILis;I)V
-
emitGameEvent
Emits a game event.- Mappings:
Namespace Name Mixin selector named emitGameEventLnet/minecraft/world/WorldAccess;emitGameEvent(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/world/event/GameEvent$Emitter;)Vintermediary method_32888Lnet/minecraft/class_1936;method_32888(Lnet/minecraft/class_6880;Lnet/minecraft/class_243;Lnet/minecraft/class_5712$class_7397;)Vofficial aLdwp;a(Ljd;Lftm;Letk$a;)V
-
emitGameEvent
- Mappings:
Namespace Name Mixin selector named emitGameEventLnet/minecraft/world/WorldAccess;emitGameEvent(Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_43275Lnet/minecraft/class_1936;method_43275(Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_243;)Vofficial aLdwp;a(Lcgk;Ljd;Lftm;)V
-
emitGameEvent
- Mappings:
Namespace Name Mixin selector named emitGameEventLnet/minecraft/world/WorldAccess;emitGameEvent(Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_33596Lnet/minecraft/class_1936;method_33596(Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_2338;)Vofficial aLdwp;a(Lcgk;Ljd;Lis;)V
-
emitGameEvent
- Mappings:
Namespace Name Mixin selector named emitGameEventLnet/minecraft/world/WorldAccess;emitGameEvent(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent$Emitter;)Vintermediary method_43276Lnet/minecraft/class_1936;method_43276(Lnet/minecraft/class_6880;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712$class_7397;)Vofficial aLdwp;a(Ljd;Lis;Letk$a;)V
-
emitGameEvent
- Mappings:
Namespace Name Mixin selector named emitGameEventLnet/minecraft/world/WorldAccess;emitGameEvent(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent$Emitter;)Vintermediary method_55764Lnet/minecraft/class_1936;method_55764(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712$class_7397;)Vofficial aLdwp;a(Lamt;Lis;Letk$a;)V
-