Search in sources :

Example 1 with SpongeTeleportHelper

use of org.spongepowered.common.world.teleport.SpongeTeleportHelper in project SpongeCommon by SpongePowered.

the class MinecraftServerMixin_API method api$initializeSpongeFields.

@Inject(method = "<init>", at = @At("TAIL"))
public void api$initializeSpongeFields(final Thread p_i232576_1_, final RegistryAccess.RegistryHolder p_i232576_2_, final LevelStorageSource.LevelStorageAccess p_i232576_3_, final WorldData p_i232576_4_, final PackRepository p_i232576_5_, final Proxy p_i232576_6_, final DataFixer p_i232576_7_, final ServerResources p_i232576_8_, final MinecraftSessionService p_i232576_9_, final GameProfileRepository p_i232576_10_, final GameProfileCache p_i232576_11_, final ChunkProgressListenerFactory p_i232576_12_, final CallbackInfo ci) {
    this.api$scheduler = new ServerScheduler();
    this.api$playerDataHandler = new SpongePlayerDataManager(this);
    this.api$teleportHelper = new SpongeTeleportHelper();
    this.api$mapStorage = new SpongeMapStorage();
    this.api$registryHolder = new RegistryHolderLogic(p_i232576_2_);
    this.api$userManager = new SpongeUserManager((MinecraftServer) (Object) this);
}
Also used : ServerScheduler(org.spongepowered.common.scheduler.ServerScheduler) SpongePlayerDataManager(org.spongepowered.common.world.storage.SpongePlayerDataManager) RegistryHolderLogic(org.spongepowered.common.registry.RegistryHolderLogic) SpongeUserManager(org.spongepowered.common.user.SpongeUserManager) SpongeTeleportHelper(org.spongepowered.common.world.teleport.SpongeTeleportHelper) SpongeMapStorage(org.spongepowered.common.map.SpongeMapStorage) MinecraftServer(net.minecraft.server.MinecraftServer) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

MinecraftServer (net.minecraft.server.MinecraftServer)1 Inject (org.spongepowered.asm.mixin.injection.Inject)1 SpongeMapStorage (org.spongepowered.common.map.SpongeMapStorage)1 RegistryHolderLogic (org.spongepowered.common.registry.RegistryHolderLogic)1 ServerScheduler (org.spongepowered.common.scheduler.ServerScheduler)1 SpongeUserManager (org.spongepowered.common.user.SpongeUserManager)1 SpongePlayerDataManager (org.spongepowered.common.world.storage.SpongePlayerDataManager)1 SpongeTeleportHelper (org.spongepowered.common.world.teleport.SpongeTeleportHelper)1