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/ChunkRegion
intermediary net/minecraft/class_3233
official asp
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiomeAccess
private final MultiTickScheduler
<Block> private final Chunk
private final BoundedRegionArray
<AbstractChunkHolder> private final DimensionType
private final MultiTickScheduler
<Fluid> private final ChunkGenerationStep
private final WorldProperties
private static final Logger
private final Random
private final long
private final AtomicLong
private final ServerWorld
private static final Identifier
Fields inherited from interface net.minecraft.world.BlockView
field_54147
Fields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS
-
Constructor Summary
ConstructorDescriptionChunkRegion
(ServerWorld world, BoundedRegionArray<AbstractChunkHolder> chunks, ChunkGenerationStep generationStep, Chunk centerPos) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParticle
(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) boolean
breakBlock
(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.void
emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.int
getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.getBlockState
(BlockPos pos) Returns the block state atpos
.int
Returns the bottom Y level, or height, inclusive, of this view.float
getBrightness
(Direction direction, boolean shaded) getChunk
(int chunkX, int chunkZ) Returns the chunk with positionchunkX
andchunkZ
.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) int
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.int
long
getSeed()
long
int
getTopY
(Heightmap.Type heightmap, int x, int z) Returns the Y coordinate of the topmost block at the coordinatesx
andz
usingheightmap
.boolean
isChunkLoaded
(int chunkX, int chunkZ) boolean
isClient()
Checks if this world view is on the logical client.boolean
Returnstrue
if the given position is an accessible position for thesetBlockState
function.private void
boolean
needsBlending
(ChunkPos chunkPos, int checkRadius) void
playSound
(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) boolean
removeBlock
(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.boolean
setBlockState
(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) Updates the block state at a position, calling appropriate callbacks.void
setCurrentlyGeneratingStructureName
(@Nullable Supplier<String> structureName) boolean
spawnEntity
(Entity entity) Spawns an entity.void
syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) boolean
testBlockState
(BlockPos pos, Predicate<BlockState> state) boolean
testFluidState
(BlockPos pos, Predicate<FluidState> state) Deprecated.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, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getBlockOrFluidCollisions, getCollisions, getCollisionsIncludingWorldBorder, getEntityCollisions, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods inherited from interface net.minecraft.world.EntityView
getClosestPlayer, getClosestPlayer, getEntitiesByClass, getNonSpectatingEntities, getOtherEntities, getPlayerByUuid, isPlayerInRange
Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, 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, setBlockState
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.tick.ScheduledTickView
scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTick
Methods inherited from interface net.minecraft.world.ServerWorldAccess
spawnEntityAndPassengers
Methods inherited from interface net.minecraft.world.WorldAccess
createOrderedTick, createOrderedTick, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, getDifficulty, getLunarTime, playSound, replaceWithStateForNeighborUpdate, syncWorldEvent, updateNeighbors
Methods inherited from interface net.minecraft.world.WorldView
containsFluid, createCommandRegistryWrapper, getBiome, getBiomeForNoiseGen, getBrightness, getChunk, getChunk, getChunkAsView, getColor, getLightLevel, getLightLevel, getPhototaxisFavor, getStatesInBoxIfLoaded, isAir, isChunkLoaded, isPosLoaded, isRegionLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/world/ChunkRegion;LOGGER:Lorg/slf4j/Logger;
intermediary field_14092
Lnet/minecraft/class_3233;field_14092:Lorg/slf4j/Logger;
official a
Lasp;a:Lorg/slf4j/Logger;
-
WORLDGEN_REGION_RANDOM_ID
- Mappings:
Namespace Name Mixin selector named WORLDGEN_REGION_RANDOM_ID
Lnet/minecraft/world/ChunkRegion;WORLDGEN_REGION_RANDOM_ID:Lnet/minecraft/util/Identifier;
intermediary field_38683
Lnet/minecraft/class_3233;field_38683:Lnet/minecraft/class_2960;
official p
Lasp;p:Lalz;
-
chunks
- Mappings:
Namespace Name Mixin selector named chunks
Lnet/minecraft/world/ChunkRegion;chunks:Lnet/minecraft/util/collection/BoundedRegionArray;
intermediary field_14098
Lnet/minecraft/class_3233;field_14098:Lnet/minecraft/class_9762;
official b
Lasp;b:Lbay;
-
centerPos
- Mappings:
Namespace Name Mixin selector named centerPos
Lnet/minecraft/world/ChunkRegion;centerPos:Lnet/minecraft/world/chunk/Chunk;
intermediary field_28557
Lnet/minecraft/class_3233;field_28557:Lnet/minecraft/class_2791;
official c
Lasp;c:Ldzp;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/world/ChunkRegion;world:Lnet/minecraft/server/world/ServerWorld;
intermediary field_14093
Lnet/minecraft/class_3233;field_14093:Lnet/minecraft/class_3218;
official d
Lasp;d:Lash;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector named seed
Lnet/minecraft/world/ChunkRegion;seed:J
intermediary field_14087
Lnet/minecraft/class_3233;field_14087:J
official e
Lasp;e:J
-
levelProperties
- Mappings:
Namespace Name Mixin selector named levelProperties
Lnet/minecraft/world/ChunkRegion;levelProperties:Lnet/minecraft/world/WorldProperties;
intermediary field_14097
Lnet/minecraft/class_3233;field_14097:Lnet/minecraft/class_5217;
official f
Lasp;f:Levy;
-
random
- Mappings:
Namespace Name Mixin selector named random
Lnet/minecraft/world/ChunkRegion;random:Lnet/minecraft/util/math/random/Random;
intermediary field_14091
Lnet/minecraft/class_3233;field_14091:Lnet/minecraft/class_5819;
official h
Lasp;h:Lbam;
-
dimension
- Mappings:
Namespace Name Mixin selector named dimension
Lnet/minecraft/world/ChunkRegion;dimension:Lnet/minecraft/world/dimension/DimensionType;
intermediary field_14096
Lnet/minecraft/class_3233;field_14096:Lnet/minecraft/class_2874;
official i
Lasp;i:Lebp;
-
blockTickScheduler
- Mappings:
Namespace Name Mixin selector named blockTickScheduler
Lnet/minecraft/world/ChunkRegion;blockTickScheduler:Lnet/minecraft/world/tick/MultiTickScheduler;
intermediary field_14099
Lnet/minecraft/class_3233;field_14099:Lnet/minecraft/class_3235;
official j
Lasp;j:Lfdu;
-
fluidTickScheduler
- Mappings:
Namespace Name Mixin selector named fluidTickScheduler
Lnet/minecraft/world/ChunkRegion;fluidTickScheduler:Lnet/minecraft/world/tick/MultiTickScheduler;
intermediary field_14094
Lnet/minecraft/class_3233;field_14094:Lnet/minecraft/class_3235;
official k
Lasp;k:Lfdu;
-
biomeAccess
- Mappings:
Namespace Name Mixin selector named biomeAccess
Lnet/minecraft/world/ChunkRegion;biomeAccess:Lnet/minecraft/world/biome/source/BiomeAccess;
intermediary field_20668
Lnet/minecraft/class_3233;field_20668:Lnet/minecraft/class_4543;
official l
Lasp;l:Ldil;
-
generationStep
- Mappings:
Namespace Name Mixin selector named generationStep
Lnet/minecraft/world/ChunkRegion;generationStep:Lnet/minecraft/world/chunk/ChunkGenerationStep;
intermediary field_51876
Lnet/minecraft/class_3233;field_51876:Lnet/minecraft/class_9770;
official m
Lasp;m:Leat;
-
currentlyGeneratingStructureName
- Mappings:
Namespace Name Mixin selector named currentlyGeneratingStructureName
Lnet/minecraft/world/ChunkRegion;currentlyGeneratingStructureName:Ljava/util/function/Supplier;
intermediary field_33756
Lnet/minecraft/class_3233;field_33756:Ljava/util/function/Supplier;
official n
Lasp;n:Ljava/util/function/Supplier;
-
tickOrder
- Mappings:
Namespace Name Mixin selector named tickOrder
Lnet/minecraft/world/ChunkRegion;tickOrder:Ljava/util/concurrent/atomic/AtomicLong;
intermediary field_35442
Lnet/minecraft/class_3233;field_35442:Ljava/util/concurrent/atomic/AtomicLong;
official o
Lasp;o: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;)V
intermediary <init>
Lnet/minecraft/class_3233;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_9762;Lnet/minecraft/class_9770;Lnet/minecraft/class_2791;)V
official <init>
Lasp;<init>(Lash;Lbay;Leat;Ldzp;)V
-
-
Method Details
-
needsBlending
- Mappings:
Namespace Name Mixin selector named needsBlending
Lnet/minecraft/world/ChunkRegion;needsBlending(Lnet/minecraft/util/math/ChunkPos;I)Z
intermediary method_42109
Lnet/minecraft/class_3233;method_42109(Lnet/minecraft/class_1923;I)Z
official a
Lasp;a(Ldgn;I)Z
-
getCenterPos
- Mappings:
Namespace Name Mixin selector named getCenterPos
Lnet/minecraft/world/ChunkRegion;getCenterPos()Lnet/minecraft/util/math/ChunkPos;
intermediary method_33561
Lnet/minecraft/class_3233;method_33561()Lnet/minecraft/class_1923;
official b
Lasp;b()Ldgn;
-
setCurrentlyGeneratingStructureName
- Specified by:
setCurrentlyGeneratingStructureName
in interfaceStructureWorldAccess
- Mappings:
Namespace Name Mixin selector named setCurrentlyGeneratingStructureName
Lnet/minecraft/world/StructureWorldAccess;setCurrentlyGeneratingStructureName(Ljava/util/function/Supplier;)V
intermediary method_36972
Lnet/minecraft/class_5281;method_36972(Ljava/util/function/Supplier;)V
official a
Ldif;a(Ljava/util/function/Supplier;)V
-
getChunk
Returns the chunk with positionchunkX
andchunkZ
.- Specified by:
getChunk
in interfaceWorldView
- Returns:
- the chunk with position
chunkX
andchunkZ
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/WorldView;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
intermediary method_8392
Lnet/minecraft/class_4538;method_8392(II)Lnet/minecraft/class_2791;
official a
Ldhk;a(II)Ldzp;
-
getChunk
@Nullable public @Nullable Chunk getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) - Specified by:
getChunk
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;
intermediary method_8402
Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;
official a
Ldhk;a(IILeaq;Z)Ldzp;
-
isChunkLoaded
public boolean isChunkLoaded(int chunkX, int chunkZ) - Specified by:
isChunkLoaded
in interfaceWorldAccess
- Specified by:
isChunkLoaded
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named isChunkLoaded
Lnet/minecraft/world/WorldView;isChunkLoaded(II)Z
intermediary method_8393
Lnet/minecraft/class_4538;method_8393(II)Z
official b
Ldhk;b(II)Z
-
getBlockState
Returns the block state atpos
.- Specified by:
getBlockState
in interfaceBlockView
- Returns:
- the block state at
pos
- Implementation Note:
- This returns the block state for
Blocks.VOID_AIR
if the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockState
Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
intermediary method_8320
Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
official a_
Ldgm;a_(Ljh;)Ldxu;
-
getFluidState
Returns the fluid state atpos
.- Specified by:
getFluidState
in interfaceBlockView
- Returns:
- the fluid state at
pos
- Implementation Note:
- This returns the fluid state for
Fluids.EMPTY
if the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidState
Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
intermediary method_8316
Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
official b_
Ldgm;b_(Ljh;)Letw;
-
getClosestPlayer
@Nullable public @Nullable PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate) - Specified by:
getClosestPlayer
in interfaceEntityView
- Mappings:
Namespace Name Mixin selector named getClosestPlayer
Lnet/minecraft/world/EntityView;getClosestPlayer(DDDDLjava/util/function/Predicate;)Lnet/minecraft/entity/player/PlayerEntity;
intermediary method_8604
Lnet/minecraft/class_1924;method_8604(DDDDLjava/util/function/Predicate;)Lnet/minecraft/class_1657;
official a
Ldgy;a(DDDDLjava/util/function/Predicate;)Lcpw;
-
getAmbientDarkness
public int getAmbientDarkness()- Specified by:
getAmbientDarkness
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getAmbientDarkness
Lnet/minecraft/world/WorldView;getAmbientDarkness()I
intermediary method_8594
Lnet/minecraft/class_4538;method_8594()I
official E_
Ldhk;E_()I
-
getBiomeAccess
- Specified by:
getBiomeAccess
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getBiomeAccess
Lnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;
intermediary method_22385
Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;
official I_
Ldhk;I_()Ldil;
-
getGeneratorStoredBiome
- Specified by:
getGeneratorStoredBiome
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getGeneratorStoredBiome
Lnet/minecraft/world/WorldView;getGeneratorStoredBiome(III)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_22387
Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_6880;
official a
Ldhk;a(III)Ljq;
-
getBrightness
- Specified by:
getBrightness
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector named getBrightness
Lnet/minecraft/world/BlockRenderView;getBrightness(Lnet/minecraft/util/math/Direction;Z)F
intermediary method_24852
Lnet/minecraft/class_1920;method_24852(Lnet/minecraft/class_2350;Z)F
official a
Ldgj;a(Ljm;Z)F
-
getLightingProvider
- Specified by:
getLightingProvider
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector named getLightingProvider
Lnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
intermediary method_22336
Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;
official C_
Ldgj;C_()Letl;
-
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:
breakBlock
in interfaceModifiableWorld
- Returns:
- whether the block was removed successfully
- See Also:
- Mappings:
Namespace Name Mixin selector named breakBlock
Lnet/minecraft/world/ModifiableWorld;breakBlock(Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/entity/Entity;I)Z
intermediary method_30093
Lnet/minecraft/class_1945;method_30093(Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;I)Z
official a
Ldhp;a(Ljh;ZLbvj;I)Z
-
getBlockEntity
Returns the block entity atpos
, ornull
if there is none.- Specified by:
getBlockEntity
in interfaceBlockView
- Returns:
- the block entity at
pos
, ornull
if there is none - Mappings:
Namespace Name Mixin selector named getBlockEntity
Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
intermediary method_8321
Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
official c_
Ldgm;c_(Ljh;)Lduw;
-
isValidForSetBlock
Returnstrue
if the given position is an accessible position for thesetBlockState
function.- Specified by:
isValidForSetBlock
in interfaceStructureWorldAccess
- Returns:
true
if the given position is an accessible position for thesetBlockState
function- Mappings:
Namespace Name Mixin selector named isValidForSetBlock
Lnet/minecraft/world/StructureWorldAccess;isValidForSetBlock(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_37368
Lnet/minecraft/class_5281;method_37368(Lnet/minecraft/class_2338;)Z
official f_
Ldif;f_(Ljh;)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:
setBlockState
in 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 setBlockState
Lnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Z
intermediary method_30092
Lnet/minecraft/class_1945;method_30092(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Z
official a
Ldhp;a(Ljh;Ldxu;II)Z
-
markBlockForPostProcessing
- Mappings:
Namespace Name Mixin selector named markBlockForPostProcessing
Lnet/minecraft/world/ChunkRegion;markBlockForPostProcessing(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_14338
Lnet/minecraft/class_3233;method_14338(Lnet/minecraft/class_2338;)V
official f
Lasp;f(Ljh;)V
-
spawnEntity
Spawns an entity.- Specified by:
spawnEntity
in interfaceModifiableWorld
- See Also:
- API Note:
- To spawn an entity with passengers, use
ServerWorldAccess.spawnEntityAndPassengers(net.minecraft.entity.Entity)
. - Mappings:
Namespace Name Mixin selector named spawnEntity
Lnet/minecraft/world/ModifiableWorld;spawnEntity(Lnet/minecraft/entity/Entity;)Z
intermediary method_8649
Lnet/minecraft/class_1945;method_8649(Lnet/minecraft/class_1297;)Z
official b
Ldhp;b(Lbvj;)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:
removeBlock
in 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 removeBlock
Lnet/minecraft/world/ModifiableWorld;removeBlock(Lnet/minecraft/util/math/BlockPos;Z)Z
intermediary method_8650
Lnet/minecraft/class_1945;method_8650(Lnet/minecraft/class_2338;Z)Z
official a
Ldhp;a(Ljh;Z)Z
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceCollisionView
- Mappings:
Namespace Name Mixin selector named getWorldBorder
Lnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
intermediary method_8621
Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;
official F_
Ldgq;F_()Ldzk;
-
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:
toServerWorld
in interfaceServerWorldAccess
- Mappings:
Namespace Name Mixin selector named toServerWorld
Lnet/minecraft/world/ServerWorldAccess;toServerWorld()Lnet/minecraft/server/world/ServerWorld;
intermediary method_8410
Lnet/minecraft/class_5425;method_8410()Lnet/minecraft/class_3218;
official a
Ldhy;a()Lash;
-
getRegistryManager
- Specified by:
getRegistryManager
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getRegistryManager
Lnet/minecraft/world/WorldView;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
intermediary method_30349
Lnet/minecraft/class_4538;method_30349()Lnet/minecraft/class_5455;
official K_
Ldhk;K_()Lke;
-
getEnabledFeatures
- Specified by:
getEnabledFeatures
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getEnabledFeatures
Lnet/minecraft/world/WorldView;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary method_45162
Lnet/minecraft/class_4538;method_45162()Lnet/minecraft/class_7699;
official J
Ldhk;J()Lcss;
-
getLevelProperties
- Specified by:
getLevelProperties
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getLevelProperties
Lnet/minecraft/world/WorldAccess;getLevelProperties()Lnet/minecraft/world/WorldProperties;
intermediary method_8401
Lnet/minecraft/class_1936;method_8401()Lnet/minecraft/class_5217;
official D_
Ldhi;D_()Levy;
-
getLocalDifficulty
- Specified by:
getLocalDifficulty
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getLocalDifficulty
Lnet/minecraft/world/WorldAccess;getLocalDifficulty(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/LocalDifficulty;
intermediary method_8404
Lnet/minecraft/class_1936;method_8404(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1266;
official d_
Ldhi;d_(Ljh;)Lbtg;
-
getServer
- Specified by:
getServer
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getServer
Lnet/minecraft/world/WorldAccess;getServer()Lnet/minecraft/server/MinecraftServer;
intermediary method_8503
Lnet/minecraft/class_1936;method_8503()Lnet/minecraft/server/MinecraftServer;
official p
Ldhi;p()Lnet/minecraft/server/MinecraftServer;
-
getChunkManager
- Specified by:
getChunkManager
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getChunkManager
Lnet/minecraft/world/WorldAccess;getChunkManager()Lnet/minecraft/world/chunk/ChunkManager;
intermediary method_8398
Lnet/minecraft/class_1936;method_8398()Lnet/minecraft/class_2802;
official R
Ldhi;R()Ldzt;
-
getSeed
public long getSeed()- Specified by:
getSeed
in interfaceStructureWorldAccess
- Mappings:
Namespace Name Mixin selector named getSeed
Lnet/minecraft/world/StructureWorldAccess;getSeed()J
intermediary method_8412
Lnet/minecraft/class_5281;method_8412()J
official D
Ldif;D()J
-
getBlockTickScheduler
- Specified by:
getBlockTickScheduler
in interfaceScheduledTickView
- Mappings:
Namespace Name Mixin selector named getBlockTickScheduler
Lnet/minecraft/world/tick/ScheduledTickView;getBlockTickScheduler()Lnet/minecraft/world/tick/QueryableTickScheduler;
intermediary method_8397
Lnet/minecraft/class_10225;method_8397()Lnet/minecraft/class_6756;
official T
Ldhw;T()Lfdl;
-
getFluidTickScheduler
- Specified by:
getFluidTickScheduler
in interfaceScheduledTickView
- Mappings:
Namespace Name Mixin selector named getFluidTickScheduler
Lnet/minecraft/world/tick/ScheduledTickView;getFluidTickScheduler()Lnet/minecraft/world/tick/QueryableTickScheduler;
intermediary method_8405
Lnet/minecraft/class_10225;method_8405()Lnet/minecraft/class_6756;
official S
Ldhw;S()Lfdl;
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getSeaLevel
Lnet/minecraft/world/WorldView;getSeaLevel()I
intermediary method_8615
Lnet/minecraft/class_4538;method_8615()I
official O
Ldhk;O()I
-
getRandom
- Specified by:
getRandom
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getRandom
Lnet/minecraft/world/WorldAccess;getRandom()Lnet/minecraft/util/math/random/Random;
intermediary method_8409
Lnet/minecraft/class_1936;method_8409()Lnet/minecraft/class_5819;
official H_
Ldhi;H_()Lbam;
-
getTopY
Returns the Y coordinate of the topmost block at the coordinatesx
andz
usingheightmap
.- Specified by:
getTopY
in interfaceWorldView
- Returns:
- the Y coordinate of the topmost block at the coordinates
x
andz
usingheightmap
- Mappings:
Namespace Name Mixin selector named getTopY
Lnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
intermediary method_8624
Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)I
official a
Ldhk;a(Ledp$a;II)I
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) - Specified by:
playSound
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/world/WorldAccess;playSound(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_8396
Lnet/minecraft/class_1936;method_8396(Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
official a
Ldhi;a(Lcpw;Ljh;Laxe;Laxg;FF)V
-
addParticle
public void addParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Specified by:
addParticle
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named addParticle
Lnet/minecraft/world/WorldAccess;addParticle(Lnet/minecraft/particle/ParticleEffect;DDDDDD)V
intermediary method_8406
Lnet/minecraft/class_1936;method_8406(Lnet/minecraft/class_2394;DDDDDD)V
official a
Ldhi;a(Llq;DDDDDD)V
-
syncWorldEvent
public void syncWorldEvent(@Nullable @Nullable PlayerEntity player, int eventId, BlockPos pos, int data) - Specified by:
syncWorldEvent
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named syncWorldEvent
Lnet/minecraft/world/WorldAccess;syncWorldEvent(Lnet/minecraft/entity/player/PlayerEntity;ILnet/minecraft/util/math/BlockPos;I)V
intermediary method_8444
Lnet/minecraft/class_1936;method_8444(Lnet/minecraft/class_1657;ILnet/minecraft/class_2338;I)V
official a
Ldhi;a(Lcpw;ILjh;I)V
-
emitGameEvent
public void emitGameEvent(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.- Specified by:
emitGameEvent
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named emitGameEvent
Lnet/minecraft/world/WorldAccess;emitGameEvent(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/world/event/GameEvent$Emitter;)V
intermediary method_32888
Lnet/minecraft/class_1936;method_32888(Lnet/minecraft/class_6880;Lnet/minecraft/class_243;Lnet/minecraft/class_5712$class_7397;)V
official a
Ldhi;a(Ljq;Lfbx;Lecq$a;)V
-
getDimension
- Specified by:
getDimension
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getDimension
Lnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;
intermediary method_8597
Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;
official G_
Ldhk;G_()Lebp;
-
testBlockState
- Specified by:
testBlockState
in interfaceTestableWorld
- Mappings:
Namespace Name Mixin selector named testBlockState
Lnet/minecraft/world/TestableWorld;testBlockState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
intermediary method_16358
Lnet/minecraft/class_3746;method_16358(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Z
official a
Ldhn;a(Ljh;Ljava/util/function/Predicate;)Z
-
testFluidState
- Specified by:
testFluidState
in interfaceTestableWorld
- Mappings:
Namespace Name Mixin selector named testFluidState
Lnet/minecraft/world/TestableWorld;testFluidState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
intermediary method_35237
Lnet/minecraft/class_3746;method_35237(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Z
official b
Ldhn;b(Ljh;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:
getEntitiesByType
in interfaceEntityView
- Mappings:
Namespace Name Mixin selector named getEntitiesByType
Lnet/minecraft/world/EntityView;getEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_18023
Lnet/minecraft/class_1924;method_18023(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
official a
Ldgy;a(Lece;Lfbs;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:
getOtherEntities
in 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 getOtherEntities
Lnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_8333
Lnet/minecraft/class_1924;method_8333(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
official a
Ldgy;a(Lbvj;Lfbs;Ljava/util/function/Predicate;)Ljava/util/List;
-
getPlayers
- Specified by:
getPlayers
in interfaceEntityView
- Mappings:
Namespace Name Mixin selector named getPlayers
Lnet/minecraft/world/EntityView;getPlayers()Ljava/util/List;
intermediary method_18456
Lnet/minecraft/class_1924;method_18456()Ljava/util/List;
official y
Ldgy;y()Ljava/util/List;
-
getBottomY
public int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
getBottomY
in interfaceHeightLimitView
- Specified by:
getBottomY
in interfaceWorldView
- See Also:
- Mappings:
Namespace Name Mixin selector named getBottomY
Lnet/minecraft/world/HeightLimitView;getBottomY()I
intermediary method_31607
Lnet/minecraft/class_5539;method_31607()I
official L_
Ldhj;L_()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:
getHeight
in interfaceHeightLimitView
- Specified by:
getHeight
in interfaceWorldView
- Returns:
- the difference in the minimum and maximum height
- See Also:
- Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/world/HeightLimitView;getHeight()I
intermediary method_31605
Lnet/minecraft/class_5539;method_31605()I
official M_
Ldhj;M_()I
-
getTickOrder
public long getTickOrder()- Specified by:
getTickOrder
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getTickOrder
Lnet/minecraft/world/WorldAccess;getTickOrder()J
intermediary method_39224
Lnet/minecraft/class_1936;method_39224()J
official J_
Ldhi;J_()J
-