SDF, tags registry
This commit is contained in:
parent
9ccd0d987b
commit
cf8955ea4b
14 changed files with 214 additions and 3 deletions
21
src/main/java/ru/betterend/registry/BlockTagRegistry.java
Normal file
21
src/main/java/ru/betterend/registry/BlockTagRegistry.java
Normal file
|
@ -0,0 +1,21 @@
|
|||
package ru.betterend.registry;
|
||||
|
||||
import net.fabricmc.fabric.api.tag.TagRegistry;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.tag.Tag;
|
||||
import net.minecraft.tag.Tag.Identified;
|
||||
import net.minecraft.util.Identifier;
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.util.TagHelper;
|
||||
|
||||
public class BlockTagRegistry {
|
||||
public static final Tag.Identified<Block> END_GROUND = makeTag("end_ground");
|
||||
|
||||
private static Tag.Identified<Block> makeTag(String name) {
|
||||
return (Identified<Block>) TagRegistry.block(new Identifier(BetterEnd.MOD_ID, name));
|
||||
}
|
||||
|
||||
public static void register() {
|
||||
TagHelper.addTag(END_GROUND, BlockRegistry.END_MOSS, BlockRegistry.END_MYCELIUM);
|
||||
}
|
||||
}
|
|
@ -2,10 +2,12 @@ package ru.betterend.registry;
|
|||
|
||||
import ru.betterend.world.features.EndFeature;
|
||||
import ru.betterend.world.features.EndLakeFeature;
|
||||
import ru.betterend.world.features.MossyGlowshroomFeature;
|
||||
import ru.betterend.world.features.StoneSpiralFeature;
|
||||
|
||||
public class FeatureRegistry {
|
||||
public static final EndFeature STONE_SPIRAL = new EndFeature("stone_spiral", new StoneSpiralFeature(), 2);
|
||||
public static final EndFeature MOSSY_GLOWSHROOM = new EndFeature("mossy_glowshroom", new MossyGlowshroomFeature(), 1);
|
||||
public static final EndFeature END_LAKE = EndFeature.MakeRawGenFeature("end_lake", new EndLakeFeature(), 100);
|
||||
|
||||
public static void register() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue