-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
5 changed files
with
107 additions
and
79 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
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
28 changes: 28 additions & 0 deletions
28
src/main/java/fr/raksrinana/fallingtree/tree/TreePart.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,28 @@ | ||
package fr.raksrinana.fallingtree.tree; | ||
|
||
import fr.raksrinana.fallingtree.utils.TreePartType; | ||
import net.minecraft.util.math.BlockPos; | ||
|
||
public class TreePart{ | ||
private final BlockPos blockPos; | ||
private final TreePartType treePartType; | ||
private final int sequence; | ||
|
||
public TreePart(BlockPos blockPos, TreePartType treePartType, int sequence){ | ||
this.blockPos = blockPos; | ||
this.treePartType = treePartType; | ||
this.sequence = sequence; | ||
} | ||
|
||
public BlockPos getBlockPos(){ | ||
return blockPos; | ||
} | ||
|
||
public int getSequence(){ | ||
return sequence; | ||
} | ||
|
||
public TreePartType getTreePartType(){ | ||
return treePartType; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...aksrinana/fallingtree/utils/TreePart.java → ...inana/fallingtree/utils/TreePartType.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,5 +1,5 @@ | ||
package fr.raksrinana.fallingtree.utils; | ||
|
||
public enum TreePart{ | ||
public enum TreePartType{ | ||
LOG, WART, OTHER | ||
} |