-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow specifying GUI textures for Terraform hanging signs
- Loading branch information
Showing
7 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...orm-wood-api-v1/src/main/java/com/terraformersmc/terraform/sign/TerraformHangingSign.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.terraformersmc.terraform.sign; | ||
|
||
import net.minecraft.util.Identifier; | ||
|
||
public interface TerraformHangingSign extends TerraformSign { | ||
Identifier getGuiTexture(); | ||
} |
13 changes: 10 additions & 3 deletions
13
...i-v1/src/main/java/com/terraformersmc/terraform/sign/block/TerraformHangingSignBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
package com.terraformersmc.terraform.sign.block; | ||
|
||
import com.terraformersmc.terraform.sign.TerraformSign; | ||
import com.terraformersmc.terraform.sign.TerraformHangingSign; | ||
|
||
import net.minecraft.block.HangingSignBlock; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.util.SignType; | ||
|
||
public class TerraformHangingSignBlock extends HangingSignBlock implements TerraformSign { | ||
public class TerraformHangingSignBlock extends HangingSignBlock implements TerraformHangingSign { | ||
private final Identifier texture; | ||
private final Identifier guiTexture; | ||
|
||
public TerraformHangingSignBlock(Identifier texture, Settings settings) { | ||
public TerraformHangingSignBlock(Identifier texture, Identifier guiTexture, Settings settings) { | ||
super(settings, SignType.OAK); | ||
this.texture = texture; | ||
this.guiTexture = guiTexture; | ||
} | ||
|
||
@Override | ||
public Identifier getTexture() { | ||
return texture; | ||
} | ||
|
||
@Override | ||
public Identifier getGuiTexture() { | ||
return guiTexture; | ||
} | ||
} |
13 changes: 10 additions & 3 deletions
13
.../src/main/java/com/terraformersmc/terraform/sign/block/TerraformWallHangingSignBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
package com.terraformersmc.terraform.sign.block; | ||
|
||
import com.terraformersmc.terraform.sign.TerraformSign; | ||
import com.terraformersmc.terraform.sign.TerraformHangingSign; | ||
|
||
import net.minecraft.block.WallHangingSignBlock; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.util.SignType; | ||
|
||
public class TerraformWallHangingSignBlock extends WallHangingSignBlock implements TerraformSign { | ||
public class TerraformWallHangingSignBlock extends WallHangingSignBlock implements TerraformHangingSign { | ||
private final Identifier texture; | ||
private final Identifier guiTexture; | ||
|
||
public TerraformWallHangingSignBlock(Identifier texture, Settings settings) { | ||
public TerraformWallHangingSignBlock(Identifier texture, Identifier guiTexture, Settings settings) { | ||
super(settings, SignType.OAK); | ||
this.texture = texture; | ||
this.guiTexture = guiTexture; | ||
} | ||
|
||
@Override | ||
public Identifier getTexture() { | ||
return texture; | ||
} | ||
|
||
@Override | ||
public Identifier getGuiTexture() { | ||
return guiTexture; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes