SHARE
TWEET

ModBlocks.class

a guest Dec 11th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.mystic.dimensionatlantis.init;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5. import com.mystic.dimensionatlantis.blocks.AquamarineOre;
  6. import com.mystic.dimensionatlantis.blocks.BlockBase;
  7. import com.mystic.dimensionatlantis.blocks.fluids.BlockDenseWaterFluid;
  8. import com.mystic.dimensionatlantis.blocks.fluids.FluidDenseWater;
  9. import com.mystic.dimensionatlantis.util.Reference;
  10. import net.minecraft.block.Block;
  11. import net.minecraft.block.material.Material;
  12. import net.minecraft.util.ResourceLocation;
  13. import net.minecraftforge.fluids.Fluid;
  14. import net.minecraftforge.fluids.FluidRegistry;
  15. import net.minecraftforge.fml.common.registry.ForgeRegistries;
  16.  
  17. public class ModBlocks
  18. {
  19.     public static final List<Block> BLOCKS = new ArrayList<Block>();
  20.    
  21.     public static final Block ANCIENT_SPRUCE_WOOD_MOSS = new BlockBase("ancient_spruce_wood_moss", Material.WOOD);
  22.     public static final Block ANCIENT_ACACIA_WOOD_MOSS = new BlockBase("ancient_acacia_wood_moss", Material.WOOD);
  23.     public static final Block ANCIENT_BIRCH_WOOD_MOSS = new BlockBase("ancient_birch_wood_moss", Material.WOOD);
  24.     public static final Block ANCIENT_DARK_OAK_WOOD_MOSS = new BlockBase("ancient_dark_oak_wood_moss", Material.WOOD);
  25.     public static final Block ANCIENT_JUNGLE_WOOD_MOSS = new BlockBase("ancient_jungle_wood_moss", Material.WOOD);
  26.     public static final Block ANCIENT_OAK_WOOD_MOSS = new BlockBase("ancient_oak_wood_moss", Material.WOOD);
  27.     public static final Block AQUAMARINE_ORE = new AquamarineOre("aquamarine_ore", Material.ROCK);
  28.     public static final Block ATLANTEAN_CORE = new BlockBase("atlantean_core", Material.GLASS);
  29.    
  30.    
  31.     // stuff for fluid
  32.     public static Block dense_water;
  33.     public static Fluid dense_water_fluid;
  34.    
  35.    
  36.     //fluid
  37.     public static void init()
  38.     {
  39.          
  40.          dense_water_fluid = FluidDenseWater.instance;
  41.          FluidRegistry.addBucketForFluid(dense_water_fluid);
  42.          dense_water = registerFluidBlock(dense_water_fluid, new BlockDenseWaterFluid(dense_water_fluid), "dense_water");
  43.        
  44.     }
  45.    
  46.     public static Block registerFluidBlock(Fluid fluid, Block fluidBlock, String name)
  47.     {
  48.         fluidBlock.setRegistryName(new ResourceLocation(Reference.MOD_ID, name));
  49.         ForgeRegistries.BLOCKS.register(fluidBlock);
  50.         com.mystic.dimensionatlantis.proxy.ClientProxy.registerFluidBlockRendering(fluidBlock, name);
  51.         fluid.setBlock(fluidBlock);
  52.         return fluidBlock;
  53.     }
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top