Portal block
This commit is contained in:
parent
439e96a526
commit
59a0d0df6c
18 changed files with 765 additions and 1 deletions
|
@ -27,6 +27,7 @@ import ru.betterend.blocks.BlockPath;
|
|||
import ru.betterend.blocks.BlockTerrain;
|
||||
import ru.betterend.blocks.BlockUmbrellaMoss;
|
||||
import ru.betterend.blocks.BlockUmbrellaMossTall;
|
||||
import ru.betterend.blocks.EndPortalBlock;
|
||||
import ru.betterend.blocks.EndStoneSmelter;
|
||||
import ru.betterend.blocks.EnderBlock;
|
||||
import ru.betterend.blocks.EternalRunedFlavolite;
|
||||
|
@ -99,6 +100,9 @@ public class BlockRegistry {
|
|||
// Blocks With Entity //
|
||||
public static final Block END_STONE_SMELTER = registerBlock("end_stone_smelter", new EndStoneSmelter());
|
||||
|
||||
//Technical
|
||||
public static final Block END_PORTAL_BLOCK = registerBlock("end_portal_block", new EndPortalBlock());
|
||||
|
||||
public static void register() {}
|
||||
|
||||
public static Block registerBlock(String name, Block block) {
|
||||
|
|
|
@ -6,12 +6,15 @@ import net.minecraft.particle.DefaultParticleType;
|
|||
import net.minecraft.util.registry.Registry;
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.particle.ParticleGlowingSphere;
|
||||
import ru.betterend.particle.PaticlePortalSphere;
|
||||
|
||||
public class ParticleRegistry {
|
||||
public static final DefaultParticleType GLOWING_SPHERE = register("glowing_sphere");
|
||||
public static final DefaultParticleType PORTAL_SPHERE = register("portal_sphere");
|
||||
|
||||
public static void register() {
|
||||
ParticleFactoryRegistry.getInstance().register(GLOWING_SPHERE, ParticleGlowingSphere.FactoryGlowingSphere::new);
|
||||
ParticleFactoryRegistry.getInstance().register(PORTAL_SPHERE, PaticlePortalSphere.FactoryPortalSphere::new);
|
||||
}
|
||||
|
||||
private static DefaultParticleType register(String name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue