类 ChunkHolderMixin
java.lang.Object
cn.korostudio.c3h6n6o6.mixin.ChunkHolderMixin
MCMTCE那边的并发改造代码(
-
字段概要
修饰符和类型字段说明private it.unimi.dsi.fastutil.shorts.ShortSet[]
blockUpdatesBySection镜像 -
构造器概要
-
方法概要
修饰符和类型方法说明private void
overwriteShortSet
(net.minecraft.util.math.ChunkPos pos, int level, net.minecraft.world.HeightLimitView world, net.minecraft.world.chunk.light.LightingProvider lightingProvider, net.minecraft.server.world.ChunkHolder.LevelUpdateListener levelUpdateListener, net.minecraft.server.world.ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) 实例化时修改blockUpdatesBySection为并发兼容的数据结构private void
setBlockUpdatesBySection
(it.unimi.dsi.fastutil.shorts.ShortSet[] array, int index, it.unimi.dsi.fastutil.shorts.ShortSet value) 更新时修改blockUpdatesBySection为并发兼容的数据结构
-
字段详细资料
-
blockUpdatesBySection
private it.unimi.dsi.fastutil.shorts.ShortSet[] blockUpdatesBySectionblockUpdatesBySection镜像
-
-
构造器详细资料
-
ChunkHolderMixin
public ChunkHolderMixin()
-
-
方法详细资料
-
overwriteShortSet
private void overwriteShortSet(net.minecraft.util.math.ChunkPos pos, int level, net.minecraft.world.HeightLimitView world, net.minecraft.world.chunk.light.LightingProvider lightingProvider, net.minecraft.server.world.ChunkHolder.LevelUpdateListener levelUpdateListener, net.minecraft.server.world.ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) 实例化时修改blockUpdatesBySection为并发兼容的数据结构- 参数:
pos
- 问MJ去level
- 问MJ去world
- 问MJ去lightingProvider
- 问MJ去levelUpdateListener
- 问MJ去playersWatchingChunkProvider
- 问MJ去ci
- 问海绵组去
-
setBlockUpdatesBySection
private void setBlockUpdatesBySection(it.unimi.dsi.fastutil.shorts.ShortSet[] array, int index, it.unimi.dsi.fastutil.shorts.ShortSet value) 更新时修改blockUpdatesBySection为并发兼容的数据结构- 参数:
array
- 问MJ去index
- 问MJ去value
- 问MJ去
-