-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly register features (apparently this got missed in the post-1.…
…12 update). Replace `AtChunk` with `Placement.NOOP`. Fix a number of small errors in `PredicateDeserializer` and add tests for various different combinations of predicates, fixes #55.
- Loading branch information
1 parent
a28f657
commit 8fa0ede
Showing
10 changed files
with
96 additions
and
46 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
38 changes: 0 additions & 38 deletions
38
src/main/java/com/alcatrazescapee/oreveins/world/AtChunk.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/main/java/com/alcatrazescapee/oreveins/world/ModFeatures.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,20 @@ | ||
/* | ||
* Part of the Realistic Ore Veins Mod by AlcatrazEscapee | ||
* Work under Copyright. See the project LICENSE.md for details. | ||
*/ | ||
|
||
package com.alcatrazescapee.oreveins.world; | ||
|
||
import net.minecraft.world.gen.feature.Feature; | ||
import net.minecraftforge.fml.RegistryObject; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
|
||
import static com.alcatrazescapee.oreveins.OreVeins.MOD_ID; | ||
|
||
public class ModFeatures | ||
{ | ||
public static final DeferredRegister<Feature<?>> FEATURES = new DeferredRegister<>(ForgeRegistries.FEATURES, MOD_ID); | ||
|
||
public static final RegistryObject<VeinsFeature> VEINS = FEATURES.register("veins", VeinsFeature::new); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/resources/data/oreveins/oreveins/tests/test_biome_rules_and.json
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,12 @@ | ||
{ | ||
"type": "sphere", | ||
"ore": "minecraft:white_wool", | ||
"stone": "minecraft:stone", | ||
"biomes": { | ||
"type": "and", | ||
"biomes": [ | ||
{"type": "tag", "biomes": "hot"}, | ||
{"type": "tag", "biomes": "dry"} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/resources/data/oreveins/oreveins/tests/test_biome_rules_not_not.json
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,14 @@ | ||
{ | ||
"type": "sphere", | ||
"ore": "minecraft:white_wool", | ||
"stone": "minecraft:stone", | ||
"biomes": { | ||
"type": "not", | ||
"biomes": { | ||
"type": "not", | ||
"biomes": [ | ||
"minecraft:plains" | ||
] | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/resources/data/oreveins/oreveins/tests/test_biome_rules_not_or.json
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,15 @@ | ||
{ | ||
"type": "sphere", | ||
"ore": "minecraft:white_wool", | ||
"stone": "minecraft:stone", | ||
"biomes": { | ||
"type": "not", | ||
"biomes": { | ||
"type": "or", | ||
"biomes": [ | ||
"minecraft:plains", | ||
"minecraft:forest" | ||
] | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/resources/data/oreveins/oreveins/tests/test_biome_rules_or.json
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,12 @@ | ||
{ | ||
"type": "sphere", | ||
"ore": "minecraft:white_wool", | ||
"stone": "minecraft:stone", | ||
"biomes": { | ||
"type": "or", | ||
"biomes": [ | ||
"minecraft:plains", | ||
"minecraft:forest" | ||
] | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/resources/data/oreveins/oreveins/tests/test_biome_rules_or_list.json
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,9 @@ | ||
{ | ||
"type": "sphere", | ||
"ore": "minecraft:white_wool", | ||
"stone": "minecraft:stone", | ||
"biomes": [ | ||
"minecraft:plains", | ||
"minecraft:forest" | ||
] | ||
} |