Unicopia/src/main/java/com/minelittlepony/unicopia/WorldConvertable.java

18 lines
327 B
Java
Raw Normal View History

package com.minelittlepony.unicopia;
import net.minecraft.world.World;
public interface WorldConvertable {
/**
* Gets the minecraft world
*/
World asWorld();
2022-12-19 19:50:15 +01:00
/**
* Returns true if we're executing on the client.
*/
default boolean isClient() {
return asWorld().isClient();
}
}