Pedestal column state, fabric dependency update

This commit is contained in:
Aleksey 2020-10-29 10:54:18 +03:00
parent 4ddeb92680
commit 105e22dda3
11 changed files with 241 additions and 81 deletions

View file

@ -6,7 +6,7 @@ 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 final static EnumProperty<PedestalState> PEDESTAL_STATE = EnumProperty.of("state", PedestalState.class);
public static final BooleanProperty HAS_ITEM = BooleanProperty.of("has_item");
public static final BooleanProperty ACTIVATED = BooleanProperty.of("active");
@ -32,15 +32,22 @@ public class BlockProperties {
}
}
public static enum State implements StringIdentifiable {
DEFAULT,
public static enum PedestalState implements StringIdentifiable {
PEDESTAL_TOP,
COLUMN_TOP,
BOTTOM,
TOP,
PILLAR;
PILLAR,
COLUMN,
DEFAULT;
@Override
public String asString() {
return this.name().toLowerCase();
}
@Override
public String toString() {
return this.asString();
}
}
}