public enum TerrainTools extends java.lang.Enum<TerrainTools>
| Enum Constant and Description |
|---|
Clear |
Fill |
Flatten |
Overlay |
Place |
Replace |
| Modifier and Type | Field and Description |
|---|---|
AllIcons |
icon |
java.lang.String |
translationKey |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isReplaceable(net.minecraft.block.BlockState toReplace) |
boolean |
requiresSelectedBlock() |
void |
run(net.minecraft.world.World world,
java.util.List<net.minecraft.util.math.BlockPos> targetPositions,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState paintedState,
net.minecraft.nbt.CompoundNBT data,
net.minecraft.entity.player.PlayerEntity player) |
static TerrainTools |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TerrainTools[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TerrainTools Fill
public static final TerrainTools Place
public static final TerrainTools Replace
public static final TerrainTools Clear
public static final TerrainTools Overlay
public static final TerrainTools Flatten
public java.lang.String translationKey
public AllIcons icon
public static TerrainTools[] values()
for (TerrainTools c : TerrainTools.values()) System.out.println(c);
public static TerrainTools 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 boolean requiresSelectedBlock()
public void run(net.minecraft.world.World world,
java.util.List<net.minecraft.util.math.BlockPos> targetPositions,
net.minecraft.util.Direction facing,
@Nullable
net.minecraft.block.BlockState paintedState,
@Nullable
net.minecraft.nbt.CompoundNBT data,
net.minecraft.entity.player.PlayerEntity player)
public static boolean isReplaceable(net.minecraft.block.BlockState toReplace)