类 ChunkManager
- java.lang.Object
-
- net.minecraft.world.chunk.ChunkManager
-
- 所有已实现的接口:
AutoCloseable,ChunkProvider
- 直接已知子类:
ClientChunkManager,ServerChunkManager
public abstract class ChunkManager extends Object implements ChunkProvider, AutoCloseable
- Mappings:
Namespace Name official clnintermediary net/minecraft/class_2802named net/minecraft/world/chunk/ChunkManager
-
-
构造器概要
构造器 构造器 说明 ChunkManager()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voidclose()@Nullable BlockViewgetChunk(int chunkX, int chunkZ)abstract @Nullable ChunkgetChunk(int x, int z, ChunkStatus leastStatus, boolean create)abstract StringgetDebugString()abstract LightingProvidergetLightingProvider()abstract intgetLoadedChunkCount()@Nullable WorldChunkgetWorldChunk(int chunkX, int chunkZ)@Nullable WorldChunkgetWorldChunk(int chunkX, int chunkZ, boolean create)booleanisChunkLoaded(int x, int z)voidsetChunkForced(ChunkPos pos, boolean forced)voidsetMobSpawnOptions(boolean spawnMonsters, boolean spawnAnimals)booleanshouldTickBlock(BlockPos pos)booleanshouldTickChunk(ChunkPos pos)abstract voidtick(BooleanSupplier booleanSupplier)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.world.chunk.ChunkProvider
getWorld, onLightUpdate
-
-
-
-
方法详细资料
-
getWorldChunk
@Nullable public @Nullable WorldChunk getWorldChunk(int chunkX, int chunkZ, boolean create)
- Mappings:
Namespace Name Mixin selector official aLcln;a(IIZ)Lclv;intermediary method_12126Lnet/minecraft/class_2802;method_12126(IIZ)Lnet/minecraft/class_2818;named getWorldChunkLnet/minecraft/world/chunk/ChunkManager;getWorldChunk(IIZ)Lnet/minecraft/world/chunk/WorldChunk;
-
getWorldChunk
@Nullable public @Nullable WorldChunk getWorldChunk(int chunkX, int chunkZ)
- Mappings:
Namespace Name Mixin selector official aLcln;a(II)Lclv;intermediary method_21730Lnet/minecraft/class_2802;method_21730(II)Lnet/minecraft/class_2818;named getWorldChunkLnet/minecraft/world/chunk/ChunkManager;getWorldChunk(II)Lnet/minecraft/world/chunk/WorldChunk;
-
getChunk
@Nullable public @Nullable BlockView getChunk(int chunkX, int chunkZ)
- 指定者:
getChunk在接口中ChunkProvider- Mappings:
Namespace Name Mixin selector official cLclx;c(II)Lbuv;intermediary method_12246Lnet/minecraft/class_2823;method_12246(II)Lnet/minecraft/class_1922;named getChunkLnet/minecraft/world/chunk/ChunkProvider;getChunk(II)Lnet/minecraft/world/BlockView;
-
isChunkLoaded
public boolean isChunkLoaded(int x, int z)- Mappings:
Namespace Name Mixin selector official bLcln;b(II)Zintermediary method_12123Lnet/minecraft/class_2802;method_12123(II)Znamed isChunkLoadedLnet/minecraft/world/chunk/ChunkManager;isChunkLoaded(II)Z
-
getChunk
@Nullable public abstract @Nullable Chunk getChunk(int x, int z, ChunkStatus leastStatus, boolean create)
- Mappings:
Namespace Name Mixin selector official aLcln;a(IILclo;Z)Lclk;intermediary method_12121Lnet/minecraft/class_2802;method_12121(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;named getChunkLnet/minecraft/world/chunk/ChunkManager;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;
-
tick
public abstract void tick(BooleanSupplier booleanSupplier)
- Mappings:
Namespace Name Mixin selector official aLcln;a(Ljava/util/function/BooleanSupplier;)Vintermediary method_12127Lnet/minecraft/class_2802;method_12127(Ljava/util/function/BooleanSupplier;)Vnamed tickLnet/minecraft/world/chunk/ChunkManager;tick(Ljava/util/function/BooleanSupplier;)V
-
getDebugString
public abstract String getDebugString()
- Mappings:
Namespace Name Mixin selector official eLcln;e()Ljava/lang/String;intermediary method_12122Lnet/minecraft/class_2802;method_12122()Ljava/lang/String;named getDebugStringLnet/minecraft/world/chunk/ChunkManager;getDebugString()Ljava/lang/String;
-
getLoadedChunkCount
public abstract int getLoadedChunkCount()
- Mappings:
Namespace Name Mixin selector official hLcln;h()Iintermediary method_14151Lnet/minecraft/class_2802;method_14151()Inamed getLoadedChunkCountLnet/minecraft/world/chunk/ChunkManager;getLoadedChunkCount()I
-
close
public void close() throws IOException- 指定者:
close在接口中AutoCloseable- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official closeLcln;close()Vintermediary closeLnet/minecraft/class_2802;close()Vnamed closeLnet/minecraft/world/chunk/ChunkManager;close()V
-
getLightingProvider
public abstract LightingProvider getLightingProvider()
- Mappings:
Namespace Name Mixin selector official lLcln;l()Lddj;intermediary method_12130Lnet/minecraft/class_2802;method_12130()Lnet/minecraft/class_3568;named getLightingProviderLnet/minecraft/world/chunk/ChunkManager;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
-
setMobSpawnOptions
public void setMobSpawnOptions(boolean spawnMonsters, boolean spawnAnimals)- Mappings:
Namespace Name Mixin selector official aLcln;a(ZZ)Vintermediary method_12128Lnet/minecraft/class_2802;method_12128(ZZ)Vnamed setMobSpawnOptionsLnet/minecraft/world/chunk/ChunkManager;setMobSpawnOptions(ZZ)V
-
setChunkForced
public void setChunkForced(ChunkPos pos, boolean forced)
- Mappings:
Namespace Name Mixin selector official aLcln;a(Lbuw;Z)Vintermediary method_12124Lnet/minecraft/class_2802;method_12124(Lnet/minecraft/class_1923;Z)Vnamed setChunkForcedLnet/minecraft/world/chunk/ChunkManager;setChunkForced(Lnet/minecraft/util/math/ChunkPos;Z)V
-
shouldTickChunk
public boolean shouldTickChunk(ChunkPos pos)
- Mappings:
Namespace Name Mixin selector official aLcln;a(Lbuw;)Zintermediary method_20591Lnet/minecraft/class_2802;method_20591(Lnet/minecraft/class_1923;)Znamed shouldTickChunkLnet/minecraft/world/chunk/ChunkManager;shouldTickChunk(Lnet/minecraft/util/math/ChunkPos;)Z
-
shouldTickBlock
public boolean shouldTickBlock(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLcln;a(Lgb;)Zintermediary method_20529Lnet/minecraft/class_2802;method_20529(Lnet/minecraft/class_2338;)Znamed shouldTickBlockLnet/minecraft/world/chunk/ChunkManager;shouldTickBlock(Lnet/minecraft/util/math/BlockPos;)Z
-
-