block cleanup #6
This commit is contained in:
parent
9a6abe495c
commit
7b25e6181e
27 changed files with 263 additions and 214 deletions
|
@ -9,7 +9,13 @@ import common.world.State;
|
|||
|
||||
public class BlockStainedGlassPane extends BlockPane
|
||||
{
|
||||
public static final BlockStainedGlassPane[] PANES = new BlockStainedGlassPane[DyeColor.values().length];
|
||||
|
||||
private final DyeColor color;
|
||||
|
||||
public static BlockStainedGlassPane getByColor(DyeColor color) {
|
||||
return PANES[color.getMetadata()];
|
||||
}
|
||||
|
||||
public BlockStainedGlassPane(DyeColor color)
|
||||
{
|
||||
|
@ -17,6 +23,7 @@ public class BlockStainedGlassPane extends BlockPane
|
|||
this.color = color;
|
||||
this.setDefaultState(this.getBaseState().withProperty(NORTH, Boolean.valueOf(false)).withProperty(EAST, Boolean.valueOf(false)).withProperty(SOUTH, Boolean.valueOf(false)).withProperty(WEST, Boolean.valueOf(false)));
|
||||
this.setTab(CheatTab.BLOCKS);
|
||||
PANES[color.ordinal()] = this;
|
||||
}
|
||||
|
||||
public DyeColor getColor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue