This commit is contained in:
Sen 2025-07-16 16:01:56 +02:00
parent 5a69c0545b
commit cf37d48292
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
122 changed files with 633 additions and 2384 deletions

View file

@ -7,7 +7,6 @@ import common.item.Item;
import common.item.block.ItemBlock;
import common.model.BlockLayer;
import common.properties.Property;
import common.world.State;
public class BlockStainedGlassPane extends BlockPane
{
@ -21,7 +20,7 @@ public class BlockStainedGlassPane extends BlockPane
public BlockStainedGlassPane(DyeColor color)
{
super(Material.TRANSLUCENT, false);
super(Material.TRANSLUCENT);
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);
@ -42,15 +41,11 @@ public class BlockStainedGlassPane extends BlockPane
return new Property[] {NORTH, EAST, WEST, SOUTH};
}
protected String getPaneBase(State state) {
protected String getPaneBase() {
return this.color.getName() + "_glass";
}
protected String getPaneEdge(State state) {
protected String getPaneEdge() {
return this.color.getName() + "_glass_pane";
}
protected Item getItemToRegister() {
return new ItemBlock(this, "");
}
}