Skip to content

Commit

Permalink
geodes mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
DaFuqs committed Jan 4, 2025
1 parent a017587 commit c7a548b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public void generate(FeatureContext<GeodeFeatureConfig> context, CallbackInfoRet
*
* @param context The GeodeFeatures feature config
*/
@Unique
private void generateGemstoneOres(FeatureContext<GeodeFeatureConfig> context) {
BlockState gemBlock = context.getConfig().layerConfig.innerLayerProvider.get(context.getRandom(), context.getOrigin());
if (gemBlock != null) {
Expand Down Expand Up @@ -66,6 +67,7 @@ private void generateGemstoneOres(FeatureContext<GeodeFeatureConfig> context) {
* @param blockState The blockstate the geode generates with
* @return the matching ore for that block state. Does return null if no matching ore exists. For example if another mod adds additional geodes
*/
@Unique
private BlockState getGemstoneOreForGeodeBlock(BlockState blockState) {
Block block = blockState.getBlock();
if (block.equals(Blocks.AMETHYST_BLOCK)) {
Expand All @@ -89,6 +91,7 @@ private BlockState getGemstoneOreForGeodeBlock(BlockState blockState) {
* @param blockState The blockstate the geode generates with
* @return the matching ore for that block state. Does return null if no matching ore exists. For example if another mod adds additional geodes
*/
@Unique
private BlockState getGemstoneDeepslateOreForGeodeBlock(BlockState blockState) {
Block block = blockState.getBlock();
if (block.equals(Blocks.AMETHYST_BLOCK)) {
Expand All @@ -112,6 +115,7 @@ private BlockState getGemstoneDeepslateOreForGeodeBlock(BlockState blockState) {
* @param blockState The blockstate the geode generates with
* @return the matching ore for that block state. Does return null if no matching ore exists. For example if another mod adds additional geodes
*/
@Unique
private BlockState getGemstoneBlackslagOreForGeodeBlock(BlockState blockState) {
Block block = blockState.getBlock();
if (block.equals(Blocks.AMETHYST_BLOCK)) {
Expand Down

0 comments on commit c7a548b

Please sign in to comment.