Enum Class ContraptionMovementSetting
java.lang.Object
java.lang.Enum<ContraptionMovementSetting>
com.simibubi.create.foundation.config.ContraptionMovementSetting
- All Implemented Interfaces:
Serializable,Comparable<ContraptionMovementSetting>,Constable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanallAre(Collection<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> blocks, ContraptionMovementSetting are) static ContraptionMovementSettingget(net.minecraft.resources.ResourceLocation id) static ContraptionMovementSettingget(net.minecraft.world.level.block.Block block) static booleanisNoPickup(Collection<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> blocks) static voidregister(net.minecraft.resources.ResourceLocation id, Supplier<ContraptionMovementSetting> setting) static ContraptionMovementSettingReturns the enum constant of this class with the specified name.static ContraptionMovementSetting[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MOVABLE
-
NO_PICKUP
-
UNMOVABLE
-
-
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
-
register
public static void register(net.minecraft.resources.ResourceLocation id, Supplier<ContraptionMovementSetting> setting) -
get
-
get
-
allAre
protected static boolean allAre(Collection<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> blocks, ContraptionMovementSetting are) -
isNoPickup
public static boolean isNoPickup(Collection<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> blocks)
-