-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(flesh-mound): add chamber decorations such as pillars, orifices,…
… etc.
- Loading branch information
1 parent
648650c
commit 8f0bdb2
Showing
18 changed files
with
439 additions
and
81 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
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
23 changes: 21 additions & 2 deletions
23
src/main/java/com/github/elenterius/biomancy/world/mound/Chamber.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,7 +1,26 @@ | ||
package com.github.elenterius.biomancy.world.mound; | ||
|
||
import com.github.elenterius.biomancy.world.mound.decorator.ChamberDecorator; | ||
import com.github.elenterius.biomancy.world.spatial.geometry.Shape; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.phys.Vec3; | ||
|
||
public interface Chamber { | ||
Vec3 getOrigin(); | ||
public interface Chamber extends Shape { | ||
|
||
int seed(); | ||
|
||
ChamberDecorator getDecorator(); | ||
|
||
Vec3 origin(); | ||
|
||
// default boolean containsValidBlock(Level level, BlockPos pos, BlockState blockState) { | ||
// if (!contains(pos)) return false; | ||
// ChamberDecorator.Result result = getDecorator().isBlockPartOfDecoration(this, level, pos, blockState); | ||
// return result == ChamberDecorator.Result.POSITION_IS_VALID_AND_MATERIAL_IS_INVALID; | ||
// } | ||
|
||
default boolean contains(BlockPos pos) { | ||
return contains(pos.getX() + 0.5d, pos.getY() + 0.5d, pos.getZ() + 0.5d); | ||
} | ||
|
||
} |
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
5 changes: 5 additions & 0 deletions
5
src/main/java/com/github/elenterius/biomancy/world/mound/ChamberFactoryType.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,5 @@ | ||
package com.github.elenterius.biomancy.world.mound; | ||
|
||
enum ChamberFactoryType { | ||
DEFAULT, CRADLE, END_CAP_MAIN_SPIRE, END_CAP_SUB_SPIRE | ||
} |
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
Oops, something went wrong.