Skip to content

Commit

Permalink
Allow specifying wood types for Terraform signs
Browse files Browse the repository at this point in the history
Fixes #75
  • Loading branch information
haykam821 committed Aug 2, 2024
1 parent 0d569eb commit 4c2d3ed
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ public class TerraformHangingSignBlock extends HangingSignBlock implements Terra
private final Identifier texture;
private final Identifier guiTexture;

public TerraformHangingSignBlock(Identifier texture, Identifier guiTexture, Settings settings) {
super(WoodType.OAK, BlockSettingsLock.lock(settings));
public TerraformHangingSignBlock(Identifier texture, Identifier guiTexture, WoodType woodType, Settings settings) {
super(woodType, BlockSettingsLock.lock(settings));
this.texture = texture;
this.guiTexture = guiTexture;
}

public TerraformHangingSignBlock(Identifier texture, Identifier guiTexture, Settings settings) {
this(texture, guiTexture, WoodType.OAK, settings);
}

@Override
public Identifier getTexture() {
return texture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
public class TerraformSignBlock extends SignBlock implements TerraformSign {
private final Identifier texture;

public TerraformSignBlock(Identifier texture, Settings settings) {
super(WoodType.OAK, BlockSettingsLock.lock(settings));
public TerraformSignBlock(Identifier texture, WoodType woodType, Settings settings) {
super(woodType, BlockSettingsLock.lock(settings));
this.texture = texture;
}

public TerraformSignBlock(Identifier texture, Settings settings) {
this(texture, WoodType.OAK, settings);
}

@Override
public Identifier getTexture() {
return texture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ public class TerraformWallHangingSignBlock extends WallHangingSignBlock implemen
private final Identifier texture;
private final Identifier guiTexture;

public TerraformWallHangingSignBlock(Identifier texture, Identifier guiTexture, Settings settings) {
super(WoodType.OAK, BlockSettingsLock.lock(settings));
public TerraformWallHangingSignBlock(Identifier texture, Identifier guiTexture, WoodType woodType, Settings settings) {
super(woodType, BlockSettingsLock.lock(settings));
this.texture = texture;
this.guiTexture = guiTexture;
}

public TerraformWallHangingSignBlock(Identifier texture, Identifier guiTexture, Settings settings) {
this(texture, guiTexture, WoodType.OAK, settings);
}

@Override
public Identifier getTexture() {
return texture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
public class TerraformWallSignBlock extends WallSignBlock implements TerraformSign {
private final Identifier texture;

public TerraformWallSignBlock(Identifier texture, Settings settings) {
super(WoodType.OAK, BlockSettingsLock.lock(settings)); // TODO: take a look at this again
public TerraformWallSignBlock(Identifier texture, WoodType woodType, Settings settings) {
super(woodType, BlockSettingsLock.lock(settings));
this.texture = texture;
}

public TerraformWallSignBlock(Identifier texture, Settings settings) {
this(texture, WoodType.OAK, settings);
}

@Override
public Identifier getTexture() {
return texture;
Expand Down

0 comments on commit 4c2d3ed

Please sign in to comment.