Enum Class CartAssembleRailType
java.lang.Object
java.lang.Enum<CartAssembleRailType>
com.simibubi.create.content.contraptions.components.structureMovement.mounted.CartAssembleRailType
- All Implemented Interfaces:
Serializable,Comparable<CartAssembleRailType>,Constable,net.minecraft.util.StringRepresentable
public enum CartAssembleRailType
extends Enum<CartAssembleRailType>
implements net.minecraft.util.StringRepresentable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.BlockgetBlock()net.minecraft.world.item.ItemgetItem()booleanmatches(net.minecraft.world.level.block.state.BlockState rail) static CartAssembleRailTypeReturns the enum constant of this class with the specified name.static CartAssembleRailType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGULAR
-
POWERED_RAIL
-
DETECTOR_RAIL
-
ACTIVATOR_RAIL
-
CONTROLLER_RAIL
-
-
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
-
getBlock
public net.minecraft.world.level.block.Block getBlock() -
getItem
public net.minecraft.world.item.Item getItem() -
matches
public boolean matches(net.minecraft.world.level.block.state.BlockState rail) -
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-