Merge branch 'mc-1.16.2' into release-2.4.3
This commit is contained in:
@@ -48,8 +48,16 @@ public abstract class MixinWorldClient extends World implements RecordingEventHa
|
||||
private MinecraftClient client;
|
||||
|
||||
//#if MC>=11600
|
||||
//$$ protected MixinWorldClient(MutableWorldProperties mutableWorldProperties, RegistryKey<World> registryKey, RegistryKey<DimensionType> registryKey2, DimensionType dimensionType, Supplier<Profiler> profiler, boolean bl, boolean bl2, long l) {
|
||||
//$$ super(mutableWorldProperties, registryKey, registryKey2, dimensionType, profiler, bl, bl2, l);
|
||||
//$$ protected MixinWorldClient(MutableWorldProperties mutableWorldProperties, RegistryKey<World> registryKey,
|
||||
//#if MC<11602
|
||||
//$$ RegistryKey<DimensionType> registryKey2,
|
||||
//#endif
|
||||
//$$ DimensionType dimensionType, Supplier<Profiler> profiler, boolean bl, boolean bl2, long l) {
|
||||
//$$ super(mutableWorldProperties, registryKey,
|
||||
//#if MC<11602
|
||||
//$$ registryKey2,
|
||||
//#endif
|
||||
//$$ dimensionType, profiler, bl, bl2, l);
|
||||
//$$ }
|
||||
//#else
|
||||
//#if MC>=11400
|
||||
|
||||
@@ -625,7 +625,11 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
|
||||
false,
|
||||
//#if MC>=11600
|
||||
//$$ packet.method_29443(),
|
||||
//#if MC>=11602
|
||||
//$$ (net.minecraft.util.registry.DynamicRegistryManager.Impl) packet.getRegistryManager(),
|
||||
//#else
|
||||
//$$ (net.minecraft.util.registry.RegistryTracker.Modifiable) packet.getDimension(),
|
||||
//#endif
|
||||
//$$ packet.method_29444(),
|
||||
//$$ packet.getDimensionId(),
|
||||
//#else
|
||||
|
||||
@@ -39,6 +39,11 @@ import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
//#if MC>=11602
|
||||
//$$ import net.minecraft.util.registry.DynamicRegistryManager;
|
||||
//$$ import net.minecraft.util.registry.Registry;
|
||||
//#endif
|
||||
|
||||
//#if MC>=11600
|
||||
//$$ import net.minecraft.world.World;
|
||||
//#else
|
||||
@@ -195,7 +200,11 @@ public class QuickReplaySender extends ChannelHandlerAdapter implements ReplaySe
|
||||
replay.reset();
|
||||
ctx.fireChannelRead(new PlayerRespawnS2CPacket(
|
||||
//#if MC>=11600
|
||||
//#if MC>=11602
|
||||
//$$ DimensionType.addRegistryDefaults(new DynamicRegistryManager.Impl()).get(Registry.DIMENSION_TYPE_KEY).get(DimensionType.OVERWORLD_REGISTRY_KEY),
|
||||
//#else
|
||||
//$$ DimensionType.OVERWORLD_REGISTRY_KEY,
|
||||
//#endif
|
||||
//$$ World.OVERWORLD,
|
||||
//$$ 0,
|
||||
//$$ GameMode.SPECTATOR,
|
||||
|
||||
@@ -51,7 +51,11 @@ public abstract class MixinPlayerControllerMP {
|
||||
//#endif
|
||||
|
||||
//#if MC>=11400
|
||||
//#if MC>=11602
|
||||
//$$ @Inject(method = "createPlayer(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/stat/StatHandler;Lnet/minecraft/client/recipebook/ClientRecipeBook;ZZ)Lnet/minecraft/client/network/ClientPlayerEntity;", at=@At("HEAD"), cancellable = true)
|
||||
//#else
|
||||
@Inject(method = "createPlayer", at=@At("HEAD"), cancellable = true)
|
||||
//#endif
|
||||
private void replayModReplay_createReplayCamera(
|
||||
//#if MC>=11400
|
||||
ClientWorld worldIn,
|
||||
|
||||
Reference in New Issue
Block a user