Added pedestals

This commit is contained in:
Aleksey 2020-10-28 17:56:17 +03:00
parent a7dcba05a9
commit f34226e944
75 changed files with 806 additions and 414 deletions

View file

@ -1,10 +1,14 @@
package ru.betterend.blocks;
import net.minecraft.state.property.BooleanProperty;
import net.minecraft.state.property.EnumProperty;
import net.minecraft.util.StringIdentifiable;
public class BlockProperties {
public static final EnumProperty<TripleShape> TRIPLE_SHAPE = EnumProperty.of("shape", TripleShape.class);
public final static EnumProperty<State> STATE = EnumProperty.of("state", State.class);
public static final BooleanProperty HAS_ITEM = BooleanProperty.of("has_item");
public static final BooleanProperty ACTIVATED = BooleanProperty.of("active");
public static enum TripleShape implements StringIdentifiable {
TOP("top"),
@ -27,4 +31,16 @@ public class BlockProperties {
return name;
}
}
public static enum State implements StringIdentifiable {
DEFAULT,
BOTTOM,
TOP,
PILLAR;
@Override
public String asString() {
return this.name().toLowerCase();
}
}
}