Package net.minecraft.world
Class ChunkRegion
java.lang.Object
net.minecraft.world.ChunkRegion
- All Implemented Interfaces:
class_5423
,BiomeAccess.Storage
,BlockRenderView
,BlockView
,CollisionView
,EntityView
,HeightLimitView
,LunarWorldView
,ModifiableTestableWorld
,ModifiableWorld
,ServerWorldAccess
,StructureWorldAccess
,TestableWorld
,WorldAccess
,WorldView
public class ChunkRegion extends Object implements StructureWorldAccess
- Mappings:
Namespace Name official abb
intermediary net/minecraft/class_3233
named net/minecraft/world/ChunkRegion
-
Field Summary
Fields Modifier and Type Field Description private BiomeAccess
biomeAccess
private TickScheduler<Block>
blockTickScheduler
private ChunkPos
centerPos
private List<Chunk>
chunks
private DimensionType
dimension
private TickScheduler<Fluid>
fluidTickScheduler
private WorldProperties
levelProperties
private static Logger
LOGGER
private ChunkPos
lowerCorner
private Random
random
private long
seed
private StructureAccessor
structureAccessor
private ChunkPos
upperCorner
private int
width
private ServerWorld
world
-
Constructor Summary
Constructors Constructor Description ChunkRegion(ServerWorld world, List<Chunk> chunks)
-
Method Summary
Modifier and Type Method Description void
addParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
boolean
breakBlock(BlockPos pos, boolean drop, Entity breakingEntity, int maxUpdateDepth)
void
emitGameEvent(Entity entity, GameEvent event, BlockPos pos)
int
getAmbientDarkness()
BiomeAccess
getBiomeAccess()
BlockEntity
getBlockEntity(BlockPos pos)
BlockState
getBlockState(BlockPos pos)
TickScheduler<Block>
getBlockTickScheduler()
int
getBottomY()
Returns the bottom Y level, or height, inclusive, of this view.float
getBrightness(Direction direction, boolean shaded)
ChunkPos
getCenterPos()
Chunk
getChunk(int chunkX, int chunkZ)
Chunk
getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
ChunkManager
getChunkManager()
PlayerEntity
getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate)
DimensionType
getDimension()
<T extends Entity>
List<T>getEntitiesByType(class_5575<Entity,T> class_5575, Box box, Predicate<? super T> predicate)
FluidState
getFluidState(BlockPos pos)
TickScheduler<Fluid>
getFluidTickScheduler()
Biome
getGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ)
int
getHeight()
WorldProperties
getLevelProperties()
LightingProvider
getLightingProvider()
LocalDifficulty
getLocalDifficulty(BlockPos pos)
List<Entity>
getOtherEntities(Entity except, Box box, Predicate<? super Entity> predicate)
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.List<PlayerEntity>
getPlayers()
Random
getRandom()
DynamicRegistryManager
getRegistryManager()
int
getSeaLevel()
long
getSeed()
Stream<? extends StructureStart<?>>
getStructures(ChunkSectionPos pos, StructureFeature<?> feature)
int
getTopY(Heightmap.Type heightmap, int x, int z)
WorldBorder
getWorldBorder()
boolean
isChunkLoaded(int chunkX, int chunkZ)
boolean
isClient()
Checks if this world view is on the logical client.private void
markBlockForPostProcessing(BlockPos pos)
void
playSound(PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)
boolean
removeBlock(BlockPos pos, boolean move)
boolean
setBlockState(BlockPos pos, BlockState state, int flags, int maxUpdateDepth)
Updates the block state at a position, calling appropriate callbacks.boolean
spawnEntity(Entity entity)
void
syncWorldEvent(PlayerEntity player, int eventId, BlockPos pos, int data)
boolean
testBlockState(BlockPos pos, Predicate<BlockState> state)
ServerWorld
toServerWorld()
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.biome.source.BiomeAccess.Storage
method_31609
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.class_5423
getBiomeKey, getEntityCollisions, getTopPosition, intersectsEntities
Methods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, method_33594
Methods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getNonSpectatingEntities, getOtherEntities, getPlayerByUuid, getPlayers, getTargets, isPlayerInRange
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, setBlockState
Methods inherited from interface net.minecraft.world.ServerWorldAccess
spawnEntityAndPassengers
Methods inherited from interface net.minecraft.world.WorldAccess
emitGameEvent, emitGameEvent, getDifficulty, getLunarTime, method_33596, syncWorldEvent, updateNeighbors
Methods inherited from interface net.minecraft.world.WorldView
containsFluid, getBiome, getBiomeForNoiseGen, getBrightness, getChunk, getChunk, getChunkAsView, getColor, getLightLevel, getLightLevel, getStrongRedstonePower, isAir, isChunkLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater, method_29556, method_33597, method_33598
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Labb;a:Lorg/apache/logging/log4j/Logger;
intermediary field_14092
Lnet/minecraft/class_3233;field_14092:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/world/ChunkRegion;LOGGER:Lorg/apache/logging/log4j/Logger;
-
chunks
- Mappings:
Namespace Name Mixin selector official b
Labb;b:Ljava/util/List;
intermediary field_14098
Lnet/minecraft/class_3233;field_14098:Ljava/util/List;
named chunks
Lnet/minecraft/world/ChunkRegion;chunks:Ljava/util/List;
-
centerPos
- Mappings:
Namespace Name Mixin selector official c
Labb;c:Lbta;
intermediary field_28557
Lnet/minecraft/class_3233;field_28557:Lnet/minecraft/class_1923;
named centerPos
Lnet/minecraft/world/ChunkRegion;centerPos:Lnet/minecraft/util/math/ChunkPos;
-
width
private final int width- Mappings:
Namespace Name Mixin selector official d
Labb;d:I
intermediary field_14088
Lnet/minecraft/class_3233;field_14088:I
named width
Lnet/minecraft/world/ChunkRegion;width:I
-
world
- Mappings:
Namespace Name Mixin selector official e
Labb;e:Laav;
intermediary field_14093
Lnet/minecraft/class_3233;field_14093:Lnet/minecraft/class_3218;
named world
Lnet/minecraft/world/ChunkRegion;world:Lnet/minecraft/server/world/ServerWorld;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official f
Labb;f:J
intermediary field_14087
Lnet/minecraft/class_3233;field_14087:J
named seed
Lnet/minecraft/world/ChunkRegion;seed:J
-
levelProperties
- Mappings:
Namespace Name Mixin selector official g
Labb;g:Lddr;
intermediary field_14097
Lnet/minecraft/class_3233;field_14097:Lnet/minecraft/class_5217;
named levelProperties
Lnet/minecraft/world/ChunkRegion;levelProperties:Lnet/minecraft/world/WorldProperties;
-
random
- Mappings:
Namespace Name Mixin selector official h
Labb;h:Ljava/util/Random;
intermediary field_14091
Lnet/minecraft/class_3233;field_14091:Ljava/util/Random;
named random
Lnet/minecraft/world/ChunkRegion;random:Ljava/util/Random;
-
dimension
- Mappings:
Namespace Name Mixin selector official i
Labb;i:Lckt;
intermediary field_14096
Lnet/minecraft/class_3233;field_14096:Lnet/minecraft/class_2874;
named dimension
Lnet/minecraft/world/ChunkRegion;dimension:Lnet/minecraft/world/dimension/DimensionType;
-
blockTickScheduler
- Mappings:
Namespace Name Mixin selector official j
Labb;j:Lbun;
intermediary field_14099
Lnet/minecraft/class_3233;field_14099:Lnet/minecraft/class_1951;
named blockTickScheduler
Lnet/minecraft/world/ChunkRegion;blockTickScheduler:Lnet/minecraft/world/TickScheduler;
-
fluidTickScheduler
- Mappings:
Namespace Name Mixin selector official k
Labb;k:Lbun;
intermediary field_14094
Lnet/minecraft/class_3233;field_14094:Lnet/minecraft/class_1951;
named fluidTickScheduler
Lnet/minecraft/world/ChunkRegion;fluidTickScheduler:Lnet/minecraft/world/TickScheduler;
-
biomeAccess
- Mappings:
Namespace Name Mixin selector official l
Labb;l:Lbuw;
intermediary field_20668
Lnet/minecraft/class_3233;field_20668:Lnet/minecraft/class_4543;
named biomeAccess
Lnet/minecraft/world/ChunkRegion;biomeAccess:Lnet/minecraft/world/biome/source/BiomeAccess;
-
lowerCorner
- Mappings:
Namespace Name Mixin selector official m
Labb;m:Lbta;
intermediary field_23788
Lnet/minecraft/class_3233;field_23788:Lnet/minecraft/class_1923;
named lowerCorner
Lnet/minecraft/world/ChunkRegion;lowerCorner:Lnet/minecraft/util/math/ChunkPos;
-
upperCorner
- Mappings:
Namespace Name Mixin selector official n
Labb;n:Lbta;
intermediary field_23789
Lnet/minecraft/class_3233;field_23789:Lnet/minecraft/class_1923;
named upperCorner
Lnet/minecraft/world/ChunkRegion;upperCorner:Lnet/minecraft/util/math/ChunkPos;
-
structureAccessor
- Mappings:
Namespace Name Mixin selector official o
Labb;o:Lbum;
intermediary field_26822
Lnet/minecraft/class_3233;field_26822:Lnet/minecraft/class_5138;
named structureAccessor
Lnet/minecraft/world/ChunkRegion;structureAccessor:Lnet/minecraft/world/gen/StructureAccessor;
-
-
Constructor Details
-
ChunkRegion
- Mappings:
Namespace Name Mixin selector official <init>
Labb;<init>(Laav;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_3233;<init>(Lnet/minecraft/class_3218;Ljava/util/List;)V
named <init>
Lnet/minecraft/world/ChunkRegion;<init>(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;)V
-
-
Method Details
-
getCenterPos
- Mappings:
Namespace Name Mixin selector official a
Labb;a()Lbta;
intermediary method_33561
Lnet/minecraft/class_3233;method_33561()Lnet/minecraft/class_1923;
named getCenterPos
Lnet/minecraft/world/ChunkRegion;getCenterPos()Lnet/minecraft/util/math/ChunkPos;
-
getChunk
-
getChunk
- Specified by:
getChunk
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector official a
Lbty;a(IILcjp;Z)Lcjl;
intermediary method_8402
Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;
named getChunk
Lnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;
-
isChunkLoaded
public boolean isChunkLoaded(int chunkX, int chunkZ)- Specified by:
isChunkLoaded
in interfaceWorldAccess
- Specified by:
isChunkLoaded
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector official b
Lbty;b(II)Z
intermediary method_8393
Lnet/minecraft/class_4538;method_8393(II)Z
named isChunkLoaded
Lnet/minecraft/world/WorldView;isChunkLoaded(II)Z
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockView
- Mappings:
Namespace Name Mixin selector official d_
Lbsz;d_(Lfx;)Lcht;
intermediary method_8320
Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named getBlockState
Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockView
- Mappings:
Namespace Name Mixin selector official b
Lbsz;b(Lfx;)Ldal;
intermediary method_8316
Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
named getFluidState
Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
getClosestPlayer
@Nullable public PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate)- Specified by:
getClosestPlayer
in interfaceEntityView
- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(DDDDLjava/util/function/Predicate;)Lbhl;
intermediary method_8604
Lnet/minecraft/class_1924;method_8604(DDDDLjava/util/function/Predicate;)Lnet/minecraft/class_1657;
named getClosestPlayer
Lnet/minecraft/world/EntityView;getClosestPlayer(DDDDLjava/util/function/Predicate;)Lnet/minecraft/entity/player/PlayerEntity;
-
getAmbientDarkness
public int getAmbientDarkness()- Specified by:
getAmbientDarkness
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector official b
Lbty;b()I
intermediary method_8594
Lnet/minecraft/class_4538;method_8594()I
named getAmbientDarkness
Lnet/minecraft/world/WorldView;getAmbientDarkness()I
-
getBiomeAccess
- Specified by:
getBiomeAccess
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector official c
Lbty;c()Lbuw;
intermediary method_22385
Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;
named getBiomeAccess
Lnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;
-
getGeneratorStoredBiome
- Specified by:
getGeneratorStoredBiome
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector official a
Lbty;a(III)Lbuu;
intermediary method_22387
Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_1959;
named getGeneratorStoredBiome
Lnet/minecraft/world/WorldView;getGeneratorStoredBiome(III)Lnet/minecraft/world/biome/Biome;
-
getBrightness
- Specified by:
getBrightness
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector official a
Lbsx;a(Lgc;Z)F
intermediary method_24852
Lnet/minecraft/class_1920;method_24852(Lnet/minecraft/class_2350;Z)F
named getBrightness
Lnet/minecraft/world/BlockRenderView;getBrightness(Lnet/minecraft/util/math/Direction;Z)F
-
getLightingProvider
- Specified by:
getLightingProvider
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector official u_
Lbsx;u_()Ldac;
intermediary method_22336
Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;
named getLightingProvider
Lnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
-
breakBlock
public boolean breakBlock(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth)- Specified by:
breakBlock
in interfaceModifiableWorld
- Mappings:
Namespace Name Mixin selector official a
Lbud;a(Lfx;ZLaqv;I)Z
intermediary method_30093
Lnet/minecraft/class_1945;method_30093(Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;I)Z
named breakBlock
Lnet/minecraft/world/ModifiableWorld;breakBlock(Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/entity/Entity;I)Z
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockView
- Mappings:
Namespace Name Mixin selector official c
Lbsz;c(Lfx;)Lcfr;
intermediary method_8321
Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
named getBlockEntity
Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
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.
Accepted values of the flags are a bitset combination of the following:
- 0b0000001 // 1 - PROPAGATE_CHANGE - Propagates a change event to surrounding blocks.
- 0b0000010 // 2 - NOTIFY_LISTENERS - Notifies listeners and clients who need to react when the block changes
- 0b0000100 // 4 - NO_REDRAW - Used in conjunction with NOTIFY_LISTENERS to suppress the render pass on clients.
- 0b0001000 // 8 - REDRAW_ON_MAIN_THREAD - Forces a synchronous redraw on clients.
- 0b0010000 // 16 - FORCE_STATE - Bypass virtual block state changes and forces the passed state to be stored as-is.
- 0b0100000 // 32 - SKIP_DROPS - Prevents the previous block (container) from dropping items when destroyed.
- 0b1000000 // 64 - MOVED - Signals that the current block is being moved to a different location, usually because of a piston.
- 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 official a
Lbud;a(Lfx;Lcht;II)Z
intermediary method_30092
Lnet/minecraft/class_1945;method_30092(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Z
named setBlockState
Lnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Z
-
markBlockForPostProcessing
- Mappings:
Namespace Name Mixin selector official i
Labb;i(Lfx;)V
intermediary method_14338
Lnet/minecraft/class_3233;method_14338(Lnet/minecraft/class_2338;)V
named markBlockForPostProcessing
Lnet/minecraft/world/ChunkRegion;markBlockForPostProcessing(Lnet/minecraft/util/math/BlockPos;)V
-
spawnEntity
- Specified by:
spawnEntity
in interfaceModifiableWorld
- Mappings:
Namespace Name Mixin selector official b
Lbud;b(Laqv;)Z
intermediary method_8649
Lnet/minecraft/class_1945;method_8649(Lnet/minecraft/class_1297;)Z
named spawnEntity
Lnet/minecraft/world/ModifiableWorld;spawnEntity(Lnet/minecraft/entity/Entity;)Z
-
removeBlock
- Specified by:
removeBlock
in interfaceModifiableWorld
- Mappings:
Namespace Name Mixin selector official a
Lbud;a(Lfx;Z)Z
intermediary method_8650
Lnet/minecraft/class_1945;method_8650(Lnet/minecraft/class_2338;Z)Z
named removeBlock
Lnet/minecraft/world/ModifiableWorld;removeBlock(Lnet/minecraft/util/math/BlockPos;Z)Z
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceCollisionView
- Mappings:
Namespace Name Mixin selector official e
Lbte;e()Lcjj;
intermediary method_8621
Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;
named getWorldBorder
Lnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
-
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 official G
Lbuj;G()Laav;
intermediary method_8410
Lnet/minecraft/class_5425;method_8410()Lnet/minecraft/class_3218;
named toServerWorld
Lnet/minecraft/world/ServerWorldAccess;toServerWorld()Lnet/minecraft/server/world/ServerWorld;
-
getRegistryManager
- Specified by:
getRegistryManager
in interfaceclass_5423
- Mappings:
Namespace Name Mixin selector official t
Lbtg;t()Lgo;
intermediary method_30349
Lnet/minecraft/class_5423;method_30349()Lnet/minecraft/class_5455;
named getRegistryManager
Lnet/minecraft/class_5423;getRegistryManager()Lnet/minecraft/util/registry/DynamicRegistryManager;
-
getLevelProperties
- Specified by:
getLevelProperties
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official g
Lbtw;g()Lddr;
intermediary method_8401
Lnet/minecraft/class_1936;method_8401()Lnet/minecraft/class_5217;
named getLevelProperties
Lnet/minecraft/world/WorldAccess;getLevelProperties()Lnet/minecraft/world/WorldProperties;
-
getLocalDifficulty
- Specified by:
getLocalDifficulty
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official d
Lbtw;d(Lfx;)Lapo;
intermediary method_8404
Lnet/minecraft/class_1936;method_8404(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1266;
named getLocalDifficulty
Lnet/minecraft/world/WorldAccess;getLocalDifficulty(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/LocalDifficulty;
-
getChunkManager
- Specified by:
getChunkManager
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official L
Lbtw;L()Lcjo;
intermediary method_8398
Lnet/minecraft/class_1936;method_8398()Lnet/minecraft/class_2802;
named getChunkManager
Lnet/minecraft/world/WorldAccess;getChunkManager()Lnet/minecraft/world/chunk/ChunkManager;
-
getSeed
public long getSeed()- Specified by:
getSeed
in interfaceStructureWorldAccess
- Mappings:
Namespace Name Mixin selector official E
Lbuq;E()J
intermediary method_8412
Lnet/minecraft/class_5281;method_8412()J
named getSeed
Lnet/minecraft/world/StructureWorldAccess;getSeed()J
-
getBlockTickScheduler
- Specified by:
getBlockTickScheduler
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official N
Lbtw;N()Lbun;
intermediary method_8397
Lnet/minecraft/class_1936;method_8397()Lnet/minecraft/class_1951;
named getBlockTickScheduler
Lnet/minecraft/world/WorldAccess;getBlockTickScheduler()Lnet/minecraft/world/TickScheduler;
-
getFluidTickScheduler
- Specified by:
getFluidTickScheduler
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official M
Lbtw;M()Lbun;
intermediary method_8405
Lnet/minecraft/class_1936;method_8405()Lnet/minecraft/class_1951;
named getFluidTickScheduler
Lnet/minecraft/world/WorldAccess;getFluidTickScheduler()Lnet/minecraft/world/TickScheduler;
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector official v_
Lbty;v_()I
intermediary method_8615
Lnet/minecraft/class_4538;method_8615()I
named getSeaLevel
Lnet/minecraft/world/WorldView;getSeaLevel()I
-
getRandom
- Specified by:
getRandom
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official i
Lbtw;i()Ljava/util/Random;
intermediary method_8409
Lnet/minecraft/class_1936;method_8409()Ljava/util/Random;
named getRandom
Lnet/minecraft/world/WorldAccess;getRandom()Ljava/util/Random;
-
getTopY
- Specified by:
getTopY
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector official a
Lbty;a(Lcmm$a;II)I
intermediary method_8624
Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)I
named getTopY
Lnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
-
playSound
public void playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)- Specified by:
playSound
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official a
Lbtw;a(Lbhl;Lfx;Laef;Laeh;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
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
-
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 official a
Lbtw;a(Lhj;DDDDDD)V
intermediary method_8406
Lnet/minecraft/class_1936;method_8406(Lnet/minecraft/class_2394;DDDDDD)V
named addParticle
Lnet/minecraft/world/WorldAccess;addParticle(Lnet/minecraft/particle/ParticleEffect;DDDDDD)V
-
syncWorldEvent
- Specified by:
syncWorldEvent
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official a
Lbtw;a(Lbhl;ILfx;I)V
intermediary method_8444
Lnet/minecraft/class_1936;method_8444(Lnet/minecraft/class_1657;ILnet/minecraft/class_2338;I)V
named syncWorldEvent
Lnet/minecraft/world/WorldAccess;syncWorldEvent(Lnet/minecraft/entity/player/PlayerEntity;ILnet/minecraft/util/math/BlockPos;I)V
-
emitGameEvent
- Specified by:
emitGameEvent
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector official a
Lbtw;a(Laqv;Lclt;Lfx;)V
intermediary method_32888
Lnet/minecraft/class_1936;method_32888(Lnet/minecraft/class_1297;Lnet/minecraft/class_5712;Lnet/minecraft/class_2338;)V
named emitGameEvent
Lnet/minecraft/world/WorldAccess;emitGameEvent(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/util/math/BlockPos;)V
-
getDimension
- Specified by:
getDimension
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector official k
Lbty;k()Lckt;
intermediary method_8597
Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;
named getDimension
Lnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;
-
testBlockState
- Specified by:
testBlockState
in interfaceTestableWorld
- Mappings:
Namespace Name Mixin selector official a
Lbub;a(Lfx;Ljava/util/function/Predicate;)Z
intermediary method_16358
Lnet/minecraft/class_3746;method_16358(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Z
named testBlockState
Lnet/minecraft/world/TestableWorld;testBlockState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
-
getEntitiesByType
public <T extends Entity> List<T> getEntitiesByType(class_5575<Entity,T> class_5575, Box box, Predicate<? super T> predicate)- Specified by:
getEntitiesByType
in interfaceEntityView
- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Lcli;Ldip;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;
named getEntitiesByType
Lnet/minecraft/world/EntityView;getEntitiesByType(Lnet/minecraft/class_5575;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
-
getOtherEntities
public List<Entity> getOtherEntities(@Nullable Entity except, Box box, @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 box.box
- 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 official a
Lbtm;a(Laqv;Ldip;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;
named getOtherEntities
Lnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
-
getPlayers
- Specified by:
getPlayers
in interfaceEntityView
- Mappings:
Namespace Name Mixin selector official z
Lbtm;z()Ljava/util/List;
intermediary method_18456
Lnet/minecraft/class_1924;method_18456()Ljava/util/List;
named getPlayers
Lnet/minecraft/world/EntityView;getPlayers()Ljava/util/List;
-
getStructures
public Stream<? extends StructureStart<?>> getStructures(ChunkSectionPos pos, StructureFeature<?> feature)- Specified by:
getStructures
in interfaceStructureWorldAccess
- Mappings:
Namespace Name Mixin selector official a
Lbuq;a(Lgq;Lcqj;)Ljava/util/stream/Stream;
intermediary method_30275
Lnet/minecraft/class_5281;method_30275(Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;)Ljava/util/stream/Stream;
named getStructures
Lnet/minecraft/world/StructureWorldAccess;getStructures(Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/feature/StructureFeature;)Ljava/util/stream/Stream;
-
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:
HeightLimitView.getTopY()
,HeightLimitView.getHeight()
- Mappings:
Namespace Name Mixin selector official w_
Lbtx;w_()I
intermediary method_31607
Lnet/minecraft/class_5539;method_31607()I
named getBottomY
Lnet/minecraft/world/HeightLimitView;getBottomY()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:
HeightLimitView.getBottomY()
,HeightLimitView.getTopY()
- Mappings:
Namespace Name Mixin selector official m
Lbtx;m()I
intermediary method_31605
Lnet/minecraft/class_5539;method_31605()I
named getHeight
Lnet/minecraft/world/HeightLimitView;getHeight()I
-