Compare commits
3 Commits
forge-1.17
...
forge-1.17
Author | SHA1 | Date | |
---|---|---|---|
d901b9aba4 | |||
1b3b733457 | |||
ca6691de1a |
@ -11,7 +11,7 @@ buildscript {
|
||||
|
||||
apply plugin: 'net.minecraftforge.gradle'
|
||||
|
||||
def archiveVersion = "Forge-${project.mcVersion}-${project.buildVersion}" as Object
|
||||
def archiveVersion = "${project.mcVersion}-${project.buildVersion}" as Object
|
||||
|
||||
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
|
||||
|
||||
|
@ -2,12 +2,12 @@ org.gradle.jvmargs=-Xmx3G
|
||||
org.gradle.daemon=false
|
||||
|
||||
group = dev.micle
|
||||
archivesBaseName = TotemOfReviving
|
||||
archivesBaseName = TotemOfReviving-Forge
|
||||
modID = totemofreviving
|
||||
name = Micle's Totem of Reviving
|
||||
author = Micle
|
||||
|
||||
buildVersion = 2.0.0
|
||||
buildVersion = 2.0.2
|
||||
mcVersion = 1.17.1
|
||||
forgeVersion = 37.1.1
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
package dev.micle.totemofreviving;
|
||||
|
||||
import net.minecraft.client.multiplayer.ClientLevel;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.level.Level;
|
||||
|
||||
public interface ISideProxy {
|
||||
MinecraftServer getServer();
|
||||
|
||||
Player getClientPlayer();
|
||||
|
||||
ClientLevel getClientWorld();
|
||||
Level getClientWorld();
|
||||
}
|
||||
|
@ -5,9 +5,11 @@ import dev.micle.totemofreviving.data.DataGenerators;
|
||||
import dev.micle.totemofreviving.network.Network;
|
||||
import dev.micle.totemofreviving.setup.Registration;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.multiplayer.ClientLevel;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.AddReloadListenerEvent;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
@ -63,7 +65,7 @@ class SideProxy implements ISideProxy {
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClientLevel getClientWorld() {
|
||||
public Level getClientWorld() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -79,12 +81,14 @@ class SideProxy implements ISideProxy {
|
||||
private static void postSetup(FMLLoadCompleteEvent event) {}
|
||||
|
||||
@Override
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public Player getClientPlayer() {
|
||||
return Minecraft.getInstance().player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClientLevel getClientWorld() {
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public Level getClientWorld() {
|
||||
return Minecraft.getInstance().level;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user