public enum ContraptionMovementSetting extends java.lang.Enum<ContraptionMovementSetting>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContraptionMovementSetting.IMovementSettingProvider |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
allAre(java.util.Collection<net.minecraft.world.gen.feature.template.Template.BlockInfo> blocks,
ContraptionMovementSetting are) |
static ContraptionMovementSetting |
get(net.minecraft.block.Block block) |
static ContraptionMovementSetting |
get(net.minecraft.util.ResourceLocation id) |
static boolean |
isNoPickup(java.util.Collection<net.minecraft.world.gen.feature.template.Template.BlockInfo> blocks) |
static void |
register(net.minecraft.util.ResourceLocation id,
java.util.function.Supplier<ContraptionMovementSetting> setting) |
static ContraptionMovementSetting |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContraptionMovementSetting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContraptionMovementSetting MOVABLE
public static final ContraptionMovementSetting NO_PICKUP
public static final ContraptionMovementSetting UNMOVABLE
public static ContraptionMovementSetting[] values()
for (ContraptionMovementSetting c : ContraptionMovementSetting.values()) System.out.println(c);
public static ContraptionMovementSetting valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static void register(net.minecraft.util.ResourceLocation id,
java.util.function.Supplier<ContraptionMovementSetting> setting)
@Nullable public static ContraptionMovementSetting get(net.minecraft.block.Block block)
@Nullable public static ContraptionMovementSetting get(net.minecraft.util.ResourceLocation id)
protected static boolean allAre(java.util.Collection<net.minecraft.world.gen.feature.template.Template.BlockInfo> blocks,
ContraptionMovementSetting are)
public static boolean isNoPickup(java.util.Collection<net.minecraft.world.gen.feature.template.Template.BlockInfo> blocks)