mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 13:57:59 +01:00
17 lines
327 B
Java
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();
|
|
}
|
|
}
|