-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
chunky/src/java/se/llbit/chunky/block/minecraft/CreakingHeart.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,24 @@ | ||
package se.llbit.chunky.block.minecraft; | ||
|
||
import se.llbit.chunky.block.AbstractModelBlock; | ||
import se.llbit.chunky.model.minecraft.LogModel; | ||
import se.llbit.chunky.resources.Texture; | ||
|
||
public class CreakingHeart extends AbstractModelBlock { | ||
private final String description; | ||
|
||
public CreakingHeart(String name, String axis, String creaking) { | ||
super(name, Texture.creakingHeartTop); | ||
this.model = new LogModel( | ||
axis, | ||
creaking.equals("disabled") ? Texture.creakingHeart : Texture.creakingHeartActive, | ||
creaking.equals("disabled") ? Texture.creakingHeartTop : Texture.creakingHeartTopActive | ||
); | ||
this.description = String.format("axis=%s, creaking=%s", axis, creaking); | ||
} | ||
|
||
@Override | ||
public String description() { | ||
return description; | ||
} | ||
} |
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