Package com.minecolonies.api.util
Enum Class BlockPosUtil.DirectionResult
- All Implemented Interfaces:
Serializable,Comparable<BlockPosUtil.DirectionResult>,Constable
- Enclosing class:
- BlockPosUtil
Direction result from
BlockPosUtil.calcDirection(net.minecraft.core.BlockPos, net.minecraft.core.BlockPos).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentGet the long display of this direction, for example "North".net.minecraft.network.chat.ComponentGet the short display of this direction, for example "N".static BlockPosUtil.DirectionResultReturns the enum constant of this class with the specified name.static BlockPosUtil.DirectionResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORTH
-
SOUTH
-
WEST
-
EAST
-
NORTH_WEST
-
NORTH_EAST
-
SOUTH_WEST
-
SOUTH_EAST
-
UP
-
DOWN
-
SAME
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getLongText
public net.minecraft.network.chat.Component getLongText()Get the long display of this direction, for example "North".- Returns:
- the component.
-
getShortText
public net.minecraft.network.chat.Component getShortText()Get the short display of this direction, for example "N".- Returns:
- the component.
-