mirror of
https://github.com/JonasunderscoreJones/nicer-skies.git
synced 2025-10-22 19:29:18 +02:00
rename ClientLevelAccessor to remove C# convention
This commit is contained in:
parent
0a26fbafde
commit
094d9e716e
3 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
package codes.ztereohype.nicerskies;
|
||||
|
||||
public interface IClientLevelAccessor {
|
||||
public interface ClientLevelAccessor {
|
||||
long nicerSkies_getHashedSeed();
|
||||
}
|
|
@ -1,12 +1,12 @@
|
|||
package codes.ztereohype.nicerskies.core;
|
||||
|
||||
import codes.ztereohype.nicerskies.IClientLevelAccessor;
|
||||
import codes.ztereohype.nicerskies.ClientLevelAccessor;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
||||
public class NebulaSeedManager {
|
||||
public static long getSeed() {
|
||||
if (Minecraft.getInstance().level != null) {
|
||||
return ((IClientLevelAccessor) Minecraft.getInstance().level).nicerSkies_getHashedSeed();
|
||||
return ((ClientLevelAccessor) Minecraft.getInstance().level).nicerSkies_getHashedSeed();
|
||||
}
|
||||
return 321L; // handpicked decent default ;)
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package codes.ztereohype.nicerskies.mixin;
|
||||
|
||||
import codes.ztereohype.nicerskies.IClientLevelAccessor;
|
||||
import codes.ztereohype.nicerskies.ClientLevelAccessor;
|
||||
import net.minecraft.client.multiplayer.ClientLevel;
|
||||
import net.minecraft.client.multiplayer.ClientPacketListener;
|
||||
import net.minecraft.client.renderer.LevelRenderer;
|
||||
|
@ -15,7 +15,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||
import java.util.function.Supplier;
|
||||
|
||||
@Mixin(ClientLevel.class)
|
||||
public class ClientLevelMixin implements IClientLevelAccessor {
|
||||
public class ClientLevelMixin implements ClientLevelAccessor {
|
||||
@Unique
|
||||
private long hashedSeed;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue