Package net.minecraft.world
Class ChunkRegion
java.lang.Object
net.minecraft.world.ChunkRegion
- All Implemented Interfaces:
BiomeAccess.Storage,BlockRenderView,BlockView,CollisionView,EntityView,HeightLimitView,LunarWorldView,ModifiableTestableWorld,ModifiableWorld,RedstoneView,RegistryWorldView,ServerWorldAccess,StructureWorldAccess,TestableWorld,ScheduledTickView,WorldAccess,WorldView
- Mappings:
Namespace Name named net/minecraft/world/ChunkRegionintermediary net/minecraft/class_3233official axf
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.BlockView
BlockView.CollisionVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiomeAccessprivate final MultiTickScheduler<Block> private final Chunkprivate final BoundedRegionArray<AbstractChunkHolder> private final DimensionTypeprivate final MultiTickScheduler<Fluid> private final ChunkGenerationStepprivate final WorldPropertiesprivate static final Loggerprivate final Randomprivate final longprivate final AtomicLongprivate final ServerWorldprivate static final IdentifierFields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS -
Constructor Summary
ConstructorsConstructorDescriptionChunkRegion(ServerWorld world, BoundedRegionArray<AbstractChunkHolder> chunks, ChunkGenerationStep generationStep, Chunk centerPos) -
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.booleanbreakBlock(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.voidemitGameEvent(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.intgetBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.getBlockState(BlockPos pos) Returns the block state atpos.intReturns the bottom Y level, or height, inclusive, of this view.floatgetBrightness(Direction direction, boolean shaded) getChunk(int chunkX, int chunkZ) Returns the chunk with positionchunkXandchunkZ.getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate) getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) getFluidState(BlockPos pos) Returns the fluid state atpos.getGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ) intComputes a list of entities within some box, excluding the given entity, that satisfy the given predicate.intlonggetSeed()longintgetTopY(Heightmap.Type heightmap, int x, int z) Returns the Y coordinate of the topmost block at the coordinatesxandzusingheightmap.booleanisChunkLoaded(int chunkX, int chunkZ) booleanisClient()Checks if this world view is on the logical client.booleanReturnstrueif the given position is an accessible position for thesetBlockStatefunction.private voidbooleanneedsBlending(ChunkPos chunkPos, int checkRadius) voidplaySound(@Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) booleanremoveBlock(BlockPos pos, boolean move) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.booleansetBlockState(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) Updates the block state at a position, calling appropriate callbacks.voidsetCurrentlyGeneratingStructureName(@Nullable Supplier<String> structureName) booleanspawnEntity(Entity entity) Spawns an entity.voidsyncWorldEvent(@Nullable Entity source, int eventId, BlockPos pos, int data) booleantestBlockState(BlockPos pos, Predicate<BlockState> state) booleantestFluidState(BlockPos pos, Predicate<FluidState> state) Deprecated.Methods 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, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getBlockOrFluidCollisions, getCollisions, getCollisions, getCollisionsIncludingWorldBorder, getEntityCollisions, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.EntityView
getClosestPlayer, getClosestPlayer, getEntitiesByClass, getNonSpectatingEntities, getOtherEntities, getPlayerByUuid, isPlayerInRangeMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoordMethods inherited from interface net.minecraft.world.LunarWorldView
getMoonPhase, getMoonSize, getSkyAngleMethods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, setBlockStateMethods 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
scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTickMethods inherited from interface net.minecraft.world.ServerWorldAccess
spawnEntityAndPassengersMethods inherited from interface net.minecraft.world.WorldAccess
createOrderedTick, createOrderedTick, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, getDifficulty, getLunarTime, playSound, replaceWithStateForNeighborUpdate, syncWorldEvent, updateNeighborsMethods inherited from interface net.minecraft.world.WorldView
containsFluid, createCommandRegistryWrapper, getBiome, getBiomeForNoiseGen, getBrightness, getChunk, getChunk, getChunkAsView, getColor, getLightLevel, getLightLevel, getPhototaxisFavor, getStatesInBoxIfLoaded, getTopY, isAir, isChunkLoaded, isPosLoaded, isRegionLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/world/ChunkRegion;LOGGER:Lorg/slf4j/Logger;intermediary field_14092Lnet/minecraft/class_3233;field_14092:Lorg/slf4j/Logger;official aLaxf;a:Lorg/slf4j/Logger;
-
WORLDGEN_REGION_RANDOM_ID
- Mappings:
Namespace Name Mixin selector named WORLDGEN_REGION_RANDOM_IDLnet/minecraft/world/ChunkRegion;WORLDGEN_REGION_RANDOM_ID:Lnet/minecraft/util/Identifier;intermediary field_38683Lnet/minecraft/class_3233;field_38683:Lnet/minecraft/class_2960;official oLaxf;o:Lamj;
-
chunks
- Mappings:
Namespace Name Mixin selector named chunksLnet/minecraft/world/ChunkRegion;chunks:Lnet/minecraft/util/collection/BoundedRegionArray;intermediary field_14098Lnet/minecraft/class_3233;field_14098:Lnet/minecraft/class_9762;official bLaxf;b:Lbgd;
-
centerPos
- Mappings:
Namespace Name Mixin selector named centerPosLnet/minecraft/world/ChunkRegion;centerPos:Lnet/minecraft/world/chunk/Chunk;intermediary field_28557Lnet/minecraft/class_3233;field_28557:Lnet/minecraft/class_2791;official cLaxf;c:Lelk;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/world/ChunkRegion;world:Lnet/minecraft/server/world/ServerWorld;intermediary field_14093Lnet/minecraft/class_3233;field_14093:Lnet/minecraft/class_3218;official dLaxf;d:Lawx;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector named seedLnet/minecraft/world/ChunkRegion;seed:Jintermediary field_14087Lnet/minecraft/class_3233;field_14087:Jofficial eLaxf;e:J
-
levelProperties
- Mappings:
Namespace Name Mixin selector named levelPropertiesLnet/minecraft/world/ChunkRegion;levelProperties:Lnet/minecraft/world/WorldProperties;intermediary field_14097Lnet/minecraft/class_3233;field_14097:Lnet/minecraft/class_5217;official fLaxf;f:Lfid;
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/world/ChunkRegion;random:Lnet/minecraft/util/math/random/Random;intermediary field_14091Lnet/minecraft/class_3233;field_14091:Lnet/minecraft/class_5819;official gLaxf;g:Lbfq;
-
dimension
- Mappings:
Namespace Name Mixin selector named dimensionLnet/minecraft/world/ChunkRegion;dimension:Lnet/minecraft/world/dimension/DimensionType;intermediary field_14096Lnet/minecraft/class_3233;field_14096:Lnet/minecraft/class_2874;official hLaxf;h:Lenn;
-
blockTickScheduler
- Mappings:
Namespace Name Mixin selector named blockTickSchedulerLnet/minecraft/world/ChunkRegion;blockTickScheduler:Lnet/minecraft/world/tick/MultiTickScheduler;intermediary field_14099Lnet/minecraft/class_3233;field_14099:Lnet/minecraft/class_3235;official iLaxf;i:Lfqf;
-
fluidTickScheduler
- Mappings:
Namespace Name Mixin selector named fluidTickSchedulerLnet/minecraft/world/ChunkRegion;fluidTickScheduler:Lnet/minecraft/world/tick/MultiTickScheduler;intermediary field_14094Lnet/minecraft/class_3233;field_14094:Lnet/minecraft/class_3235;official jLaxf;j:Lfqf;
-
biomeAccess
- Mappings:
Namespace Name Mixin selector named biomeAccessLnet/minecraft/world/ChunkRegion;biomeAccess:Lnet/minecraft/world/biome/source/BiomeAccess;intermediary field_20668Lnet/minecraft/class_3233;field_20668:Lnet/minecraft/class_4543;official kLaxf;k:Ldsv;
-
generationStep
- Mappings:
Namespace Name Mixin selector named generationStepLnet/minecraft/world/ChunkRegion;generationStep:Lnet/minecraft/world/chunk/ChunkGenerationStep;intermediary field_51876Lnet/minecraft/class_3233;field_51876:Lnet/minecraft/class_9770;official lLaxf;l:Lemr;
-
currentlyGeneratingStructureName
- Mappings:
Namespace Name Mixin selector named currentlyGeneratingStructureNameLnet/minecraft/world/ChunkRegion;currentlyGeneratingStructureName:Ljava/util/function/Supplier;intermediary field_33756Lnet/minecraft/class_3233;field_33756:Ljava/util/function/Supplier;official mLaxf;m:Ljava/util/function/Supplier;
-
tickOrder
- Mappings:
Namespace Name Mixin selector named tickOrderLnet/minecraft/world/ChunkRegion;tickOrder:Ljava/util/concurrent/atomic/AtomicLong;intermediary field_35442Lnet/minecraft/class_3233;field_35442:Ljava/util/concurrent/atomic/AtomicLong;official nLaxf;n:Ljava/util/concurrent/atomic/AtomicLong;
-
-
Constructor Details
-
ChunkRegion
public ChunkRegion(ServerWorld world, BoundedRegionArray<AbstractChunkHolder> chunks, ChunkGenerationStep generationStep, Chunk centerPos) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/ChunkRegion;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/collection/BoundedRegionArray;Lnet/minecraft/world/chunk/ChunkGenerationStep;Lnet/minecraft/world/chunk/Chunk;)Vintermediary <init>Lnet/minecraft/class_3233;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_9762;Lnet/minecraft/class_9770;Lnet/minecraft/class_2791;)Vofficial <init>Laxf;<init>(Lawx;Lbgd;Lemr;Lelk;)V
-
-
Method Details
-
needsBlending
- Mappings:
Namespace Name Mixin selector named needsBlendingLnet/minecraft/world/ChunkRegion;needsBlending(Lnet/minecraft/util/math/ChunkPos;I)Zintermediary method_42109Lnet/minecraft/class_3233;method_42109(Lnet/minecraft/class_1923;I)Zofficial aLaxf;a(Ldqv;I)Z
-
getCenterPos
- Mappings:
Namespace Name Mixin selector named getCenterPosLnet/minecraft/world/ChunkRegion;getCenterPos()Lnet/minecraft/util/math/ChunkPos;intermediary method_33561Lnet/minecraft/class_3233;method_33561()Lnet/minecraft/class_1923;official bLaxf;b()Ldqv;
-
setCurrentlyGeneratingStructureName
- Specified by:
setCurrentlyGeneratingStructureNamein interfaceStructureWorldAccess- Mappings:
Namespace Name Mixin selector named setCurrentlyGeneratingStructureNameLnet/minecraft/world/StructureWorldAccess;setCurrentlyGeneratingStructureName(Ljava/util/function/Supplier;)Vintermediary method_36972Lnet/minecraft/class_5281;method_36972(Ljava/util/function/Supplier;)Vofficial aLdsp;a(Ljava/util/function/Supplier;)V
-
getChunk
Returns the chunk with positionchunkXandchunkZ.- Specified by:
getChunkin interfaceWorldView- Returns:
- the chunk with position
chunkXandchunkZ - Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/WorldView;getChunk(II)Lnet/minecraft/world/chunk/Chunk;intermediary method_8392Lnet/minecraft/class_4538;method_8392(II)Lnet/minecraft/class_2791;official aLdrt;a(II)Lelk;
-
getChunk
@Nullable public @Nullable Chunk getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) - Specified by:
getChunkin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;intermediary method_8402Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;official aLdrt;a(IILemo;Z)Lelk;
-
isChunkLoaded
public boolean isChunkLoaded(int chunkX, int chunkZ) - Specified by:
isChunkLoadedin interfaceWorldAccess- 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 bLdrt;b(II)Z
-
getBlockState
Returns the block state atpos.- Specified by:
getBlockStatein interfaceBlockView- Returns:
- the block state at
pos - Implementation Note:
- This returns the block state for
Blocks.VOID_AIRif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official a_Ldqu;a_(Lja;)Lejm;
-
getFluidState
Returns the fluid state atpos.- Specified by:
getFluidStatein interfaceBlockView- Returns:
- the fluid state at
pos - Implementation Note:
- This returns the fluid state for
Fluids.EMPTYif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;official b_Ldqu;b_(Lja;)Lfga;
-
getClosestPlayer
@Nullable public @Nullable PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate) - Specified by:
getClosestPlayerin interfaceEntityView- Mappings:
Namespace Name Mixin selector named getClosestPlayerLnet/minecraft/world/EntityView;getClosestPlayer(DDDDLjava/util/function/Predicate;)Lnet/minecraft/entity/player/PlayerEntity;intermediary method_8604Lnet/minecraft/class_1924;method_8604(DDDDLjava/util/function/Predicate;)Lnet/minecraft/class_1657;official aLdri;a(DDDDLjava/util/function/Predicate;)Lczl;
-
getAmbientDarkness
public int getAmbientDarkness()- Specified by:
getAmbientDarknessin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getAmbientDarknessLnet/minecraft/world/WorldView;getAmbientDarkness()Iintermediary method_8594Lnet/minecraft/class_4538;method_8594()Iofficial G_Ldrt;G_()I
-
getBiomeAccess
- Specified by:
getBiomeAccessin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getBiomeAccessLnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;intermediary method_22385Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;official J_Ldrt;J_()Ldsv;
-
getGeneratorStoredBiome
- Specified by:
getGeneratorStoredBiomein interfaceWorldView- Mappings:
Namespace Name Mixin selector named getGeneratorStoredBiomeLnet/minecraft/world/WorldView;getGeneratorStoredBiome(III)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_22387Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_6880;official aLdrt;a(III)Ljk;
-
getBrightness
- Specified by:
getBrightnessin interfaceBlockRenderView- Mappings:
Namespace Name Mixin selector named getBrightnessLnet/minecraft/world/BlockRenderView;getBrightness(Lnet/minecraft/util/math/Direction;Z)Fintermediary method_24852Lnet/minecraft/class_1920;method_24852(Lnet/minecraft/class_2350;Z)Fofficial aLdqr;a(Ljg;Z)F
-
getLightingProvider
- Specified by:
getLightingProviderin interfaceBlockRenderView- Mappings:
Namespace Name Mixin selector named getLightingProviderLnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;intermediary method_22336Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;official E_Ldqr;E_()Lffp;
-
breakBlock
public boolean breakBlock(BlockPos pos, boolean drop, @Nullable @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist. Additionally, this emits the world event and the game event.- Specified by:
breakBlockin interfaceModifiableWorld- Returns:
- whether the block was removed successfully
- See Also:
- Mappings:
Namespace Name Mixin selector named breakBlockLnet/minecraft/world/ModifiableWorld;breakBlock(Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/entity/Entity;I)Zintermediary method_30093Lnet/minecraft/class_1945;method_30093(Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;I)Zofficial aLdry;a(Lja;ZLcdv;I)Z
-
getBlockEntity
Returns the block entity atpos, ornullif there is none.- Specified by:
getBlockEntityin interfaceBlockView- Returns:
- the block entity at
pos, ornullif there is none - Mappings:
Namespace Name Mixin selector named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;official c_Ldqu;c_(Lja;)Legg;
-
isValidForSetBlock
Returnstrueif the given position is an accessible position for thesetBlockStatefunction.- Specified by:
isValidForSetBlockin interfaceStructureWorldAccess- Returns:
trueif the given position is an accessible position for thesetBlockStatefunction- Mappings:
Namespace Name Mixin selector named isValidForSetBlockLnet/minecraft/world/StructureWorldAccess;isValidForSetBlock(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_37368Lnet/minecraft/class_5281;method_37368(Lnet/minecraft/class_2338;)Zofficial f_Ldsp;f_(Lja;)Z
-
setBlockState
Updates the block state at a position, calling appropriate callbacks.When called on the server, the new block state is stored and propagated to clients and listeners as dictated by the supplied flags. Note that calling this on the client will update the world locally, but may not see the change persisted across loads. It's recommended to check whether this world is client before interacting with the world in this way.
See
ModifiableWorld.setBlockState(BlockPos, BlockState, int)for a list of accepted flags.- Specified by:
setBlockStatein interfaceModifiableWorld- Parameters:
pos- the target positionstate- the block state to setflags- the bitwise flag combination, as described abovemaxUpdateDepth- the limit for the cascading block updates- Mappings:
Namespace Name Mixin selector named setBlockStateLnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Zintermediary method_30092Lnet/minecraft/class_1945;method_30092(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Zofficial aLdry;a(Lja;Lejm;II)Z
-
markBlockForPostProcessing
- Mappings:
Namespace Name Mixin selector named markBlockForPostProcessingLnet/minecraft/world/ChunkRegion;markBlockForPostProcessing(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_14338Lnet/minecraft/class_3233;method_14338(Lnet/minecraft/class_2338;)Vofficial fLaxf;f(Lja;)V
-
spawnEntity
Spawns an entity.- Specified by:
spawnEntityin interfaceModifiableWorld- See Also:
- API Note:
- To spawn an entity with passengers, use
ServerWorldAccess.spawnEntityAndPassengers(net.minecraft.entity.Entity). - Mappings:
Namespace Name Mixin selector named spawnEntityLnet/minecraft/world/ModifiableWorld;spawnEntity(Lnet/minecraft/entity/Entity;)Zintermediary method_8649Lnet/minecraft/class_1945;method_8649(Lnet/minecraft/class_1297;)Zofficial bLdry;b(Lcdv;)Z
-
removeBlock
Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.- Specified by:
removeBlockin interfaceModifiableWorld- Parameters:
move- whether the block was removed as part of piston moving blocks- Returns:
- whether the block was removed successfully
- See Also:
- Implementation Note:
- This does not emit the world event or the game event.
- Mappings:
Namespace Name Mixin selector named removeBlockLnet/minecraft/world/ModifiableWorld;removeBlock(Lnet/minecraft/util/math/BlockPos;Z)Zintermediary method_8650Lnet/minecraft/class_1945;method_8650(Lnet/minecraft/class_2338;Z)Zofficial aLdry;a(Lja;Z)Z
-
getWorldBorder
- Specified by:
getWorldBorderin interfaceCollisionView- Mappings:
Namespace Name Mixin selector named getWorldBorderLnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;intermediary method_8621Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;official uLdqy;u()Lelf;
-
isClient
public boolean isClient()Checks if this world view is on the logical client.If the value returned is false, it is expected that this world is present on a logical server.
-
toServerWorld
Deprecated.- Specified by:
toServerWorldin interfaceServerWorldAccess- Mappings:
Namespace Name Mixin selector named toServerWorldLnet/minecraft/world/ServerWorldAccess;toServerWorld()Lnet/minecraft/server/world/ServerWorld;intermediary method_8410Lnet/minecraft/class_5425;method_8410()Lnet/minecraft/class_3218;official aLdsh;a()Lawx;
-
getRegistryManager
- Specified by:
getRegistryManagerin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getRegistryManagerLnet/minecraft/world/WorldView;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;intermediary method_30349Lnet/minecraft/class_4538;method_30349()Lnet/minecraft/class_5455;official L_Ldrt;L_()Ljy;
-
getEnabledFeatures
- Specified by:
getEnabledFeaturesin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getEnabledFeaturesLnet/minecraft/world/WorldView;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary method_45162Lnet/minecraft/class_4538;method_45162()Lnet/minecraft/class_7699;official OLdrt;O()Ldcx;
-
getLevelProperties
- Specified by:
getLevelPropertiesin interfaceWorldAccess- 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 F_Ldrr;F_()Lfid;
-
getLocalDifficulty
- Specified by:
getLocalDifficultyin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector named getLocalDifficultyLnet/minecraft/world/WorldAccess;getLocalDifficulty(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/LocalDifficulty;intermediary method_8404Lnet/minecraft/class_1936;method_8404(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1266;official d_Ldrr;d_(Lja;)Lcbo;
-
getServer
- Specified by:
getServerin interfaceWorldAccess- 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 qLdrr;q()Lnet/minecraft/server/MinecraftServer;
-
getChunkManager
- Specified by:
getChunkManagerin interfaceWorldAccess- 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 XLdrr;X()Lelo;
-
getSeed
public long getSeed()- Specified by:
getSeedin interfaceStructureWorldAccess- Mappings:
Namespace Name Mixin selector named getSeedLnet/minecraft/world/StructureWorldAccess;getSeed()Jintermediary method_8412Lnet/minecraft/class_5281;method_8412()Jofficial HLdsp;H()J
-
getBlockTickScheduler
- Specified by:
getBlockTickSchedulerin interfaceScheduledTickView- Mappings:
Namespace Name Mixin selector named getBlockTickSchedulerLnet/minecraft/world/tick/ScheduledTickView;getBlockTickScheduler()Lnet/minecraft/world/tick/QueryableTickScheduler;intermediary method_8397Lnet/minecraft/class_10225;method_8397()Lnet/minecraft/class_6756;official ZLdsf;Z()Lfpw;
-
getFluidTickScheduler
- Specified by:
getFluidTickSchedulerin interfaceScheduledTickView- Mappings:
Namespace Name Mixin selector named getFluidTickSchedulerLnet/minecraft/world/tick/ScheduledTickView;getFluidTickScheduler()Lnet/minecraft/world/tick/QueryableTickScheduler;intermediary method_8405Lnet/minecraft/class_10225;method_8405()Lnet/minecraft/class_6756;official YLdsf;Y()Lfpw;
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevelin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getSeaLevelLnet/minecraft/world/WorldView;getSeaLevel()Iintermediary method_8615Lnet/minecraft/class_4538;method_8615()Iofficial TLdrt;T()I
-
getRandom
- Specified by:
getRandomin interfaceWorldAccess- 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 I_Ldrr;I_()Lbfq;
-
getTopY
Returns the Y coordinate of the topmost block at the coordinatesxandzusingheightmap.- Specified by:
getTopYin interfaceWorldView- Returns:
- the Y coordinate of the topmost block at the coordinates
xandzusingheightmap - Mappings:
Namespace Name Mixin selector named getTopYLnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)Iintermediary method_8624Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)Iofficial aLdrt;a(Lepp$a;II)I
-
playSound
public void playSound(@Nullable @Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) - Specified by:
playSoundin interfaceWorldAccess- 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 aLdrr;a(Lcdv;Lja;Lbcd;Lbcf;FF)V
-
addParticleClient
public 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.- Specified by:
addParticleClientin interfaceWorldAccess- 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 aLdrr;a(Lmc;DDDDDD)V
-
syncWorldEvent
- Specified by:
syncWorldEventin interfaceWorldAccess- 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 aLdrr;a(Lcdv;ILja;I)V
-
emitGameEvent
public void emitGameEvent(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.- Specified by:
emitGameEventin interfaceWorldAccess- 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 aLdrr;a(Ljk;Lfoh;Leoq$a;)V
-
getDimension
- Specified by:
getDimensionin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getDimensionLnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;intermediary method_8597Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;official H_Ldrt;H_()Lenn;
-
testBlockState
- Specified by:
testBlockStatein interfaceTestableWorld- Mappings:
Namespace Name Mixin selector named testBlockStateLnet/minecraft/world/TestableWorld;testBlockState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Zintermediary method_16358Lnet/minecraft/class_3746;method_16358(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Zofficial aLdrw;a(Lja;Ljava/util/function/Predicate;)Z
-
testFluidState
- Specified by:
testFluidStatein interfaceTestableWorld- Mappings:
Namespace Name Mixin selector named testFluidStateLnet/minecraft/world/TestableWorld;testFluidState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Zintermediary method_35237Lnet/minecraft/class_3746;method_35237(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Zofficial bLdrw;b(Lja;Ljava/util/function/Predicate;)Z
-
getEntitiesByType
public <T extends Entity> List<T> getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) - Specified by:
getEntitiesByTypein interfaceEntityView- Mappings:
Namespace Name Mixin selector named getEntitiesByTypeLnet/minecraft/world/EntityView;getEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;intermediary method_18023Lnet/minecraft/class_1924;method_18023(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;official aLdri;a(Leoc;Lfoc;Ljava/util/function/Predicate;)Ljava/util/List;
-
getOtherEntities
public List<Entity> getOtherEntities(@Nullable @Nullable Entity except, Box box, @Nullable @Nullable Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.- Specified by:
getOtherEntitiesin interfaceEntityView- Parameters:
except- the entity the box logically surrounds; this entity is ignored if it is inside the boxbox- the box in which to search for entitiespredicate- a predicate which entities must satisfy in order to be included in the returned list- Returns:
- a list of entities within a box, excluding the given entity, all satisfying the given predicate
- Mappings:
Namespace Name Mixin selector named getOtherEntitiesLnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;intermediary method_8333Lnet/minecraft/class_1924;method_8333(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;official aLdri;a(Lcdv;Lfoc;Ljava/util/function/Predicate;)Ljava/util/List;
-
getPlayers
- Specified by:
getPlayersin interfaceEntityView- Mappings:
Namespace Name Mixin selector named getPlayersLnet/minecraft/world/EntityView;getPlayers()Ljava/util/List;intermediary method_18456Lnet/minecraft/class_1924;method_18456()Ljava/util/List;official CLdri;C()Ljava/util/List;
-
getBottomY
public int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
getBottomYin interfaceHeightLimitView- Specified by:
getBottomYin interfaceWorldView- See Also:
- Mappings:
Namespace Name Mixin selector named getBottomYLnet/minecraft/world/HeightLimitView;getBottomY()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Iofficial M_Ldrs;M_()I
-
getHeight
public int getHeight()Returns the difference in the minimum and maximum height.This is the number of blocks that can be modified in any vertical column within the view, or the vertical size, in blocks, of the view.
- Specified by:
getHeightin interfaceHeightLimitView- Specified by:
getHeightin interfaceWorldView- Returns:
- the difference in the minimum and maximum height
- See Also:
- Mappings:
Namespace Name Mixin selector named getHeightLnet/minecraft/world/HeightLimitView;getHeight()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Iofficial N_Ldrs;N_()I
-
getTickOrder
public long getTickOrder()- Specified by:
getTickOrderin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector named getTickOrderLnet/minecraft/world/WorldAccess;getTickOrder()Jintermediary method_39224Lnet/minecraft/class_1936;method_39224()Jofficial K_Ldrr;K_()J
-