Unicopia/src/main/java/com/minelittlepony/unicopia/WorldConvertable.java
2022-12-19 19:50:15 +01:00

17 lines
327 B
Java

package com.minelittlepony.unicopia;
import net.minecraft.world.World;
public interface WorldConvertable {
/**
* Gets the minecraft world
*/
World asWorld();
/**
* Returns true if we're executing on the client.
*/
default boolean isClient() {
return asWorld().isClient();
}
}