#Handling chunk concurrency CME

15 messages · Page 1 of 1 (latest)

azure storm
#

Continuation from #mod-dev-1 message

#

and the worker thread called

#

!ym NoiseChunkGenerator.method_38332

dull stagBOT
#
1.21.3 matches

Class Names

Official: edt
Intermediary: net/minecraft/class_3754
Yarn: net/minecraft/world/gen/chunk/NoiseChunkGenerator

Method Names

Official: a
Intermediary: method_38332
Yarn: method_38332

Yarn Method Descriptor

(Lnet/minecraft/world/chunk/Chunk;ILnet/minecraft/world/gen/chunk/GenerationShapeConfig;ILnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/noise/NoiseConfig;I)Lnet/minecraft/world/chunk/Chunk;
Yarn Access Widener

accessible method net/minecraft/world/gen/chunk/NoiseChunkGenerator method_38332 (Lnet/minecraft/world/chunk/Chunk;ILnet/minecraft/world/gen/chunk/GenerationShapeConfig;ILnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/noise/NoiseConfig;I)Lnet/minecraft/world/chunk/Chunk;
Yarn Mixin Target

Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;method_38332(Lnet/minecraft/world/chunk/Chunk;ILnet/minecraft/world/gen/chunk/GenerationShapeConfig;ILnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/noise/NoiseConfig;I)Lnet/minecraft/world/chunk/Chunk;
Javadoc

azure storm
#

oh great it's a lambda

azure storm
azure storm
#

welp, I think I found a suprisingly not cursed solution

#

I wrapped sending the chunk with a try

#

and a counter of fails

#

then modified the chunk count packet to show the correct number

#

ah wait this wouldn't work

#

I mean it would partially work

#

the unlock happens on the work thread

#

this LockHelper is kinda stupid