Search in sources :

Example 1 with IEWorld

use of com.qouteall.immersive_portals.ducks.IEWorld in project ImmersivePortalsMod by qouteall.

the class MixinClientWorld method onConstructed.

@Inject(method = "Lnet/minecraft/client/world/ClientWorld;<init>(Lnet/minecraft/client/network/ClientPlayNetworkHandler;Lnet/minecraft/world/level/LevelInfo;Lnet/minecraft/world/dimension/DimensionType;ILnet/minecraft/util/profiler/Profiler;Lnet/minecraft/client/render/WorldRenderer;)V", at = @At("RETURN"))
void onConstructed(ClientPlayNetworkHandler clientPlayNetworkHandler_1, LevelInfo levelInfo_1, DimensionType dimensionType_1, int int_1, Profiler profiler_1, WorldRenderer worldRenderer_1, CallbackInfo ci) {
    ClientWorld clientWorld = (ClientWorld) (Object) this;
    MyClientChunkManager chunkManager = new MyClientChunkManager(clientWorld, int_1);
    ((IEWorld) this).setChunkManager(chunkManager);
}
Also used : IEWorld(com.qouteall.immersive_portals.ducks.IEWorld) IEClientWorld(com.qouteall.immersive_portals.ducks.IEClientWorld) ClientWorld(net.minecraft.client.world.ClientWorld) MyClientChunkManager(com.qouteall.immersive_portals.chunk_loading.MyClientChunkManager) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

MyClientChunkManager (com.qouteall.immersive_portals.chunk_loading.MyClientChunkManager)1 IEClientWorld (com.qouteall.immersive_portals.ducks.IEClientWorld)1 IEWorld (com.qouteall.immersive_portals.ducks.IEWorld)1 ClientWorld (net.minecraft.client.world.ClientWorld)1 Inject (org.spongepowered.asm.mixin.injection.Inject)1