Removed unused functions
This commit is contained in:
parent
1ccb1af517
commit
e8d8461e1d
4 changed files with 2 additions and 52 deletions
|
@ -58,7 +58,7 @@ public abstract class WorldOpenFlowsMixin {
|
||||||
Function<RegistryAccess, WorldDimensions> function,
|
Function<RegistryAccess, WorldDimensions> function,
|
||||||
CallbackInfo ci
|
CallbackInfo ci
|
||||||
) {
|
) {
|
||||||
WorldsTogether.LOGGER.info("called createFreshLevel...");
|
WorldsTogether.LOGGER.warning("called createFreshLevel...");
|
||||||
//TODO: 1.19.3 no mor dimensions at this stage...
|
//TODO: 1.19.3 no mor dimensions at this stage...
|
||||||
//WorldBootstrap.InFreshLevel.setupNewWorld(levelID, worldGenSettings, this.levelSource, Optional.empty());
|
//WorldBootstrap.InFreshLevel.setupNewWorld(levelID, worldGenSettings, this.levelSource, Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
package org.betterx.worlds.together.mixin.common;
|
|
||||||
|
|
||||||
import org.betterx.worlds.together.world.event.WorldBootstrap;
|
|
||||||
|
|
||||||
import com.mojang.datafixers.DataFixer;
|
|
||||||
import com.mojang.serialization.Dynamic;
|
|
||||||
import com.mojang.serialization.Lifecycle;
|
|
||||||
import net.minecraft.nbt.CompoundTag;
|
|
||||||
import net.minecraft.nbt.Tag;
|
|
||||||
import net.minecraft.resources.RegistryOps;
|
|
||||||
import net.minecraft.world.level.LevelSettings;
|
|
||||||
import net.minecraft.world.level.levelgen.WorldOptions;
|
|
||||||
import net.minecraft.world.level.storage.LevelVersion;
|
|
||||||
import net.minecraft.world.level.storage.PrimaryLevelData;
|
|
||||||
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
import org.jetbrains.annotations.Nullable;
|
|
||||||
|
|
||||||
@Mixin(PrimaryLevelData.class)
|
|
||||||
public class PrimaryLevelDataMixin {
|
|
||||||
@Inject(method = "parse", at = @At("HEAD"))
|
|
||||||
private static void bcl_parse(
|
|
||||||
Dynamic<Tag> dynamic,
|
|
||||||
DataFixer dataFixer,
|
|
||||||
int i,
|
|
||||||
@Nullable CompoundTag compoundTag,
|
|
||||||
LevelSettings levelSettings,
|
|
||||||
LevelVersion levelVersion,
|
|
||||||
PrimaryLevelData.SpecialWorldProperty specialWorldProperty,
|
|
||||||
WorldOptions worldOptions,
|
|
||||||
Lifecycle lifecycle,
|
|
||||||
CallbackInfoReturnable<PrimaryLevelData> cir
|
|
||||||
) {
|
|
||||||
if (dynamic.getOps() instanceof RegistryOps<Tag> regOps) {
|
|
||||||
WorldBootstrap.InGUI.registryReadyOnLoadedWorld(Optional.of(regOps));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -158,14 +158,8 @@ public class WorldBootstrap {
|
||||||
Helpers.onRegistryReady(worldGenSettingsComponent.registryHolder());
|
Helpers.onRegistryReady(worldGenSettingsComponent.registryHolder());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registryReadyOnLoadedWorld(Optional<RegistryOps<Tag>> registryOps) {
|
|
||||||
// if (registryOps.orElse(null) instanceof RegistryOpsAccessor acc) {
|
|
||||||
// Helpers.onRegistryReady(acc.bcl_getRegistryAccess());
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void registryReady(RegistryAccess access) {
|
public static void registryReady(RegistryAccess access) {
|
||||||
//Helpers.onRegistryReady(access);
|
Helpers.onRegistryReady(access);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setupNewWorld(
|
public static void setupNewWorld(
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
"MinecraftServerMixinLate",
|
"MinecraftServerMixinLate",
|
||||||
"NoiseBasedChunkGeneratorMixin",
|
"NoiseBasedChunkGeneratorMixin",
|
||||||
"NoiseGeneratorSettingsMixin",
|
"NoiseGeneratorSettingsMixin",
|
||||||
"PrimaryLevelDataMixin",
|
|
||||||
"RegistryDataLoaderMixin",
|
"RegistryDataLoaderMixin",
|
||||||
"RegistryOpsAccessor",
|
"RegistryOpsAccessor",
|
||||||
"TagLoaderMixin",
|
"TagLoaderMixin",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue