Distribution

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.game.Distribution;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

Distribution is an enum with 2 constants. They are accessible like so:

script.zs
// Distribution.CLIENT
<constant:neoforge:game/distribution:client>
// Distribution.DEDICATED_SERVER
<constant:neoforge:game/distribution:dedicated_server>

Members

Getter
script.zs
// Dist.isClient as bool
<constant:neoforge:game/distribution:client>.isClient

Return Type: bool

Getter
script.zs
// Dist.isDedicatedServer as bool
<constant:neoforge:game/distribution:client>.isDedicatedServer

Return Type: bool