2015-08-29 14:33:25 +02:00
/ *
2016-05-16 22:52:27 +02:00
* This file ( " InitBlocks.java " ) is part of the Actually Additions mod for Minecraft .
2015-08-29 14:33:25 +02:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http : //ellpeck.de/actaddlicense
2015-08-29 14:33:25 +02:00
* View the source code at https : //github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015 - 2017 Ellpeck
2015-08-29 14:33:25 +02:00
* /
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.blocks ;
2015-01-05 22:14:01 +01:00
2018-05-10 11:38:58 +02:00
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions ;
2016-01-05 04:47:35 +01:00
import de.ellpeck.actuallyadditions.mod.blocks.base.BlockPlant ;
2021-03-01 21:23:52 +01:00
import de.ellpeck.actuallyadditions.mod.items.ActuallyItems ;
2021-08-22 20:16:04 +02:00
import de.ellpeck.actuallyadditions.mod.items.metalists.Crystals ;
import de.ellpeck.actuallyadditions.mod.tile.* ;
import de.ellpeck.actuallyadditions.registration.AABlockReg ;
2021-02-27 13:24:45 +01:00
import net.minecraft.block.* ;
2021-02-28 15:47:54 +01:00
import net.minecraft.block.material.Material ;
2021-08-22 20:16:04 +02:00
import net.minecraft.item.Item ;
2021-02-28 15:47:54 +01:00
import net.minecraftforge.common.ToolType ;
2021-02-27 13:24:45 +01:00
import net.minecraftforge.fml.RegistryObject ;
import net.minecraftforge.registries.DeferredRegister ;
import net.minecraftforge.registries.ForgeRegistries ;
2015-02-09 17:25:05 +01:00
2021-02-28 11:35:10 +01:00
public final class ActuallyBlocks {
2021-02-27 13:24:45 +01:00
public static final DeferredRegister < Block > BLOCKS = DeferredRegister . create ( ForgeRegistries . BLOCKS , ActuallyAdditions . MODID ) ;
2015-01-05 22:14:01 +01:00
2021-08-22 20:16:04 +02:00
private static final Item . Properties defaultBlockItemProperties = new Item . Properties ( ) . group ( ActuallyAdditions . GROUP ) . maxStackSize ( 64 ) ;
2021-05-09 21:58:05 +02:00
public static final AbstractBlock . Properties miscBlockProperties = AbstractBlock . Properties . create ( Material . ROCK ) . harvestLevel ( 1 ) . harvestTool ( ToolType . PICKAXE ) . hardnessAndResistance ( 1 . 5f , 10f ) ;
2021-08-22 20:16:04 +02:00
// Casings
public static final AABlockReg < ActuallyBlock , AABlockItem , ? > WOOD_CASING = new AABlockReg < > ( " wood_casing " , ( ) - > new ActuallyBlock ( miscBlockProperties ) , ActuallyBlock : : createBlockItem ) ;
public static final AABlockReg < ActuallyBlock , AABlockItem , ? > IRON_CASING = new AABlockReg < > ( " iron_casing " , ( ) - > new ActuallyBlock ( miscBlockProperties ) , ActuallyBlock : : createBlockItem ) ;
public static final AABlockReg < ActuallyBlock , AABlockItem , ? > ENDER_CASING = new AABlockReg < > ( " ender_casing " , ( ) - > new ActuallyBlock ( miscBlockProperties ) , ActuallyBlock : : createBlockItem ) ;
public static final AABlockReg < ActuallyBlock , AABlockItem , ? > LAVA_FACTORY_CASING = new AABlockReg < > ( " lava_factory_casing " , ( ) - > new ActuallyBlock ( miscBlockProperties ) , ActuallyBlock : : createBlockItem ) ;
// Machines
public static final AABlockReg < BlockFeeder , AABlockItem , TileEntityFeeder > FEEDER = new AABlockReg < > ( " feeder " , BlockFeeder : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityFeeder : : new ) ;
public static final AABlockReg < BlockCrusher , AABlockItem , TileEntityCrusher > CRUSHER = new AABlockReg < > ( " crusher " , ( ) - > new BlockCrusher ( false ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityCrusher : : new ) ;
public static final AABlockReg < BlockCrusher , AABlockItem , TileEntityCrusher > CRUSHER_DOUBLE = new AABlockReg < > ( " crusher_double " , ( ) - > new BlockCrusher ( false ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityCrusherDouble : : new ) ;
public static final AABlockReg < BlockEnergizer , AABlockItem , TileEntityEnergizer > ENERGIZER = new AABlockReg < > ( " energizer " , ( ) - > new BlockEnergizer ( true ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityEnergizer : : new ) ;
public static final AABlockReg < BlockEnergizer , AABlockItem , TileEntityEnergizer > ENERVATOR = new AABlockReg < > ( " enervator " , ( ) - > new BlockEnergizer ( false ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityEnergizer : : new ) ;
public static final AABlockReg < BlockLavaFactoryController , AABlockItem , TileEntityLavaFactoryController > LAVA_FACTORY_CONTROLLER
= new AABlockReg < > ( " lava_factory_controller " , BlockLavaFactoryController : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityLavaFactoryController : : new ) ;
public static final AABlockReg < BlockLampPowerer , AABlockItem , ? > LAMP_POWERER = new AABlockReg < > ( " lamp_powerer " , BlockLampPowerer : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockCanolaPress , AABlockItem , TileEntityCanolaPress > CANOLA_PRESS = new AABlockReg < > ( " canola_press " , BlockCanolaPress : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityCanolaPress : : new ) ;
public static final AABlockReg < BlockLeafGenerator , AABlockItem , TileEntityLeafGenerator > LEAF_GENERATOR = new AABlockReg < > ( " leaf_generator " , BlockLeafGenerator : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityLeafGenerator : : new ) ;
public static final AABlockReg < BlockXPSolidifier , AABlockItem , TileEntityXPSolidifier > XP_SOLIDIFIER = new AABlockReg < > ( " xp_solidifier " , BlockXPSolidifier : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityXPSolidifier : : new ) ;
public static final AABlockReg < BlockBreaker , AABlockItem , TileEntityBreaker > BREAKER = new AABlockReg < > ( " breaker " , ( ) - > new BlockBreaker ( false ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityBreaker : : new ) ;
public static final AABlockReg < BlockBreaker , AABlockItem , TileEntityPlacer > PLACER = new AABlockReg < > ( " placer " , ( ) - > new BlockBreaker ( true ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityPlacer : : new ) ;
public static final AABlockReg < BlockDropper , AABlockItem , TileEntityDropper > DROPPER = new AABlockReg < > ( " dropper " , BlockDropper : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityDropper : : new ) ;
public static final AABlockReg < BlockFluidCollector , AABlockItem , TileEntityFluidCollector > FLUID_PLACER = new AABlockReg < > ( " fluid_placer " , ( ) - > new BlockFluidCollector ( true ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityFluidCollector : : new ) ;
public static final AABlockReg < BlockFluidCollector , AABlockItem , TileEntityFluidPlacer > FLUID_COLLECTOR = new AABlockReg < > ( " fluid_collector " , ( ) - > new BlockFluidCollector ( false ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityFluidPlacer : : new ) ;
public static final AABlockReg < BlockFarmer , AABlockItem , TileEntityFarmer > FARMER = new AABlockReg < > ( " farmer " , BlockFarmer : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityFarmer : : new ) ;
public static final AABlockReg < BlockBioReactor , AABlockItem , TileEntityBioReactor > BIOREACTOR = new AABlockReg < > ( " bio_reactor " , BlockBioReactor : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityBioReactor : : new ) ;
// Crystal Blocks
public static final AABlockReg < BlockCrystal , AABlockItem , ? > ENORI_CRYSTAL = new AABlockReg < > ( " enori_crystal_block " , ( ) - > new BlockCrystal ( false ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > RESTONIA_CRYSTAL = new AABlockReg < > ( " restonia_crystal_block " , ( ) - > new BlockCrystal ( false ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > PALIS_CRYSTAL = new AABlockReg < > ( " palis_crystal_block " , ( ) - > new BlockCrystal ( false ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > DIAMATINE_CRYSTAL = new AABlockReg < > ( " diamatine_crystal_block " , ( ) - > new BlockCrystal ( false ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > VOID_CRYSTAL = new AABlockReg < > ( " void_crystal_block " , ( ) - > new BlockCrystal ( false ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > EMERADIC_CRYSTAL = new AABlockReg < > ( " emeradic_crystal_block " , ( ) - > new BlockCrystal ( false ) , BlockCrystal : : createBlockItem ) ;
// Empowered Crystal Blocks
public static final AABlockReg < BlockCrystal , AABlockItem , ? > EMPOWERED_ENORI_CRYSTAL = new AABlockReg < > ( " empowered_enori_crystal_block " , ( ) - > new BlockCrystal ( true ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > EMPOWERED_RESTONIA_CRYSTAL = new AABlockReg < > ( " empowered_restonia_crystal_block " , ( ) - > new BlockCrystal ( true ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > EMPOWERED_PALIS_CRYSTAL = new AABlockReg < > ( " empowered_palis_crystal_block " , ( ) - > new BlockCrystal ( true ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > EMPOWERED_DIAMATINE_CRYSTAL = new AABlockReg < > ( " empowered_diamatine_crystal_block " , ( ) - > new BlockCrystal ( true ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > EMPOWERED_VOID_CRYSTAL = new AABlockReg < > ( " empowered_void_crystal_block " , ( ) - > new BlockCrystal ( true ) , BlockCrystal : : createBlockItem ) ;
public static final AABlockReg < BlockCrystal , AABlockItem , ? > EMPOWERED_EMERADIC_CRYSTAL = new AABlockReg < > ( " empowered_emeradic_crystal_block " , ( ) - > new BlockCrystal ( true ) , BlockCrystal : : createBlockItem ) ;
// Crystal Clusters
public static final AABlockReg < CrystalClusterBlock , AABlockItem , ? > ENORI_CRYSTAL_CLUSTER = new AABlockReg < > ( " enori_crystal_cluster " , ( ) - > new CrystalClusterBlock ( Crystals . IRON ) , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < CrystalClusterBlock , AABlockItem , ? > RESTONIA_CRYSTAL_CLUSTER = new AABlockReg < > ( " restonia_crystal_cluster " , ( ) - > new CrystalClusterBlock ( Crystals . REDSTONE ) , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < CrystalClusterBlock , AABlockItem , ? > PALIS_CRYSTAL_CLUSTER = new AABlockReg < > ( " palis_crystal_cluster " , ( ) - > new CrystalClusterBlock ( Crystals . LAPIS ) , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < CrystalClusterBlock , AABlockItem , ? > DIAMATINE_CRYSTAL_CLUSTER = new AABlockReg < > ( " diamatine_crystal_cluster " , ( ) - > new CrystalClusterBlock ( Crystals . DIAMOND ) , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < CrystalClusterBlock , AABlockItem , ? > VOID_CRYSTAL_CLUSTER = new AABlockReg < > ( " void_crystal_cluster " , ( ) - > new CrystalClusterBlock ( Crystals . COAL ) , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < CrystalClusterBlock , AABlockItem , ? > EMERADIC_CRYSTAL_CLUSTER = new AABlockReg < > ( " emeradic_crystal_cluster " , ( ) - > new CrystalClusterBlock ( Crystals . EMERALD ) , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
// LAMPS! SO MANY LAMPS
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_WHITE = new AABlockReg < > ( " lamp_white " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_ORANGE = new AABlockReg < > ( " lamp_orange " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_MAGENTA = new AABlockReg < > ( " lamp_magenta " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_LIGHT_BLUE = new AABlockReg < > ( " lamp_light_blue " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_YELLOW = new AABlockReg < > ( " lamp_yellow " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_LIME = new AABlockReg < > ( " lamp_lime " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_PINK = new AABlockReg < > ( " lamp_pink " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_GRAY = new AABlockReg < > ( " lamp_gray " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_LIGHT_GRAY = new AABlockReg < > ( " lamp_light_gray " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_CYAN = new AABlockReg < > ( " lamp_cyan " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_PURPLE = new AABlockReg < > ( " lamp_purple " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_BLUE = new AABlockReg < > ( " lamp_blue " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_BROWN = new AABlockReg < > ( " lamp_brown " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_GREEN = new AABlockReg < > ( " lamp_green " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_RED = new AABlockReg < > ( " lamp_red " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
public static final AABlockReg < BlockColoredLamp , AABlockItem , ? > LAMP_BLACK = new AABlockReg < > ( " lamp_black " , BlockColoredLamp : : new , ( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) ) ;
// Empowerer / Display Stands
public static final AABlockReg < BlockEmpowerer , AABlockItem , TileEntityEmpowerer > EMPOWERER = new AABlockReg < > ( " empowerer " , BlockEmpowerer : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityEmpowerer : : new ) ;
public static final AABlockReg < BlockDisplayStand , AABlockItem , TileEntityDisplayStand > DISPLAY_STAND = new AABlockReg < > ( " display_stand " , BlockDisplayStand : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityDisplayStand : : new ) ;
// Interface Blocks
public static final AABlockReg < BlockPlayerInterface , AABlockItem , TileEntityPlayerInterface > PLAYER_INTERFACE = new AABlockReg < > ( " player_interface " , BlockPlayerInterface : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityPlayerInterface : : new ) ;
public static final AABlockReg < BlockItemInterface , AABlockItem , TileEntityItemInterface > ITEM_VIEWER = new AABlockReg < > ( " item_viewer " , BlockItemInterface : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityItemInterface : : new ) ;
public static final AABlockReg < BlockItemInterfaceHopping , AABlockItem , TileEntityItemInterfaceHopping > ITEM_VIEWER_HOPPING = new AABlockReg < > ( " item_viewer_hopping " , BlockItemInterfaceHopping : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityItemInterfaceHopping : : new ) ;
// Phantom stuff
public static final AABlockReg < BlockPhantom , AABlockItem , TileEntityPhantomFace > PHANTOMFACE = new AABlockReg < > ( " phantomface " , ( ) - > new BlockPhantom ( BlockPhantom . Type . FACE ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityPhantomFace : : new ) ;
public static final AABlockReg < BlockPhantom , AABlockItem , TileEntityPhantomPlacer > PHANTOM_PLACER = new AABlockReg < > ( " phantom_placer " , ( ) - > new BlockPhantom ( BlockPhantom . Type . PLACER ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityPhantomPlacer : : new ) ;
public static final AABlockReg < BlockPhantom , AABlockItem , TileEntityPhantomLiquiface > PHANTOM_LIQUIFACE = new AABlockReg < > ( " phantom_liquiface " , ( ) - > new BlockPhantom ( BlockPhantom . Type . LIQUIFACE ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityPhantomLiquiface : : new ) ;
public static final AABlockReg < BlockPhantom , AABlockItem , TileEntityPhantomEnergyface > PHANTOM_ENERGYFACE = new AABlockReg < > ( " phantom_energyface " , ( ) - > new BlockPhantom ( BlockPhantom . Type . ENERGYFACE ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityPhantomEnergyface : : new ) ;
public static final AABlockReg < BlockPhantom , AABlockItem , TileEntityPhantomRedstoneface > PHANTOM_REDSTONEFACE = new AABlockReg < > ( " phantom_redstoneface " , ( ) - > new BlockPhantom ( BlockPhantom . Type . REDSTONEFACE ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityPhantomRedstoneface : : new ) ;
public static final AABlockReg < BlockPhantom , AABlockItem , TileEntityPhantomBreaker > PHANTOM_BREAKER = new AABlockReg < > ( " phantom_breaker " , ( ) - > new BlockPhantom ( BlockPhantom . Type . BREAKER ) ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityPhantomBreaker : : new ) ;
// Misc Tiles
public static final AABlockReg < BlockBatteryBox , AABlockItem , TileEntityBatteryBox > BATTERY_BOX = new AABlockReg < > ( " battery_box " , BlockBatteryBox : : new ,
( b ) - > new AABlockItem ( b , defaultBlockItemProperties ) , TileEntityBatteryBox : : new ) ;
//public static final RegistryObject<Block> WILD_PLANT = BLOCKS.register("wild", BlockWildPlant::new); //TODO: what is this?
2021-05-02 18:10:21 +02:00
public static final RegistryObject < Block > TINY_TORCH = BLOCKS . register ( " tiny_torch " , BlockTinyTorch : : new ) ;
public static final RegistryObject < Block > SHOCK_SUPPRESSOR = BLOCKS . register ( " shock_suppressor " , BlockShockSuppressor : : new ) ;
public static final RegistryObject < Block > FIREWORK_BOX = BLOCKS . register ( " firework_box " , BlockFireworkBox : : new ) ;
2021-05-05 18:15:25 +02:00
public static final RegistryObject < Block > MINER = BLOCKS . register ( " miner " , BlockVerticalDigger : : new ) ;
2021-05-02 18:10:21 +02:00
public static final RegistryObject < Block > ATOMIC_RECONSTRUCTOR = BLOCKS . register ( " atomic_reconstructor " , BlockAtomicReconstructor : : new ) ;
public static final RegistryObject < Block > LASER_RELAY = BLOCKS . register ( " laser_relay " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ENERGY_BASIC ) ) ;
public static final RegistryObject < Block > LASER_RELAY_ADVANCED = BLOCKS . register ( " laser_relay_advanced " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ENERGY_ADVANCED ) ) ;
public static final RegistryObject < Block > LASER_RELAY_EXTREME = BLOCKS . register ( " laser_relay_extreme " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ENERGY_EXTREME ) ) ;
public static final RegistryObject < Block > LASER_RELAY_FLUIDS = BLOCKS . register ( " laser_relay_fluids " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . FLUIDS ) ) ;
public static final RegistryObject < Block > LASER_RELAY_ITEM = BLOCKS . register ( " laser_relay_item " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ITEM ) ) ;
public static final RegistryObject < Block > LASER_RELAY_ITEM_WHITELIST = BLOCKS . register ( " laser_relay_item_whitelist " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ITEM_WHITELIST ) ) ;
public static final RegistryObject < Block > RANGED_COLLECTOR = BLOCKS . register ( " ranged_collector " , BlockRangedCollector : : new ) ;
public static final RegistryObject < Block > DIRECTIONAL_BREAKER = BLOCKS . register ( " directional_breaker " , BlockDirectionalBreaker : : new ) ;
2021-08-22 20:16:04 +02:00
2021-05-05 17:21:00 +02:00
public static final RegistryObject < Block > ETHETIC_GREEN_BLOCK = BLOCKS . register ( " ethetic_green_block " , BlockGeneric : : new ) ;
public static final RegistryObject < Block > ETHETIC_WHITE_BLOCK = BLOCKS . register ( " ethetic_white_block " , BlockGeneric : : new ) ;
public static final RegistryObject < Block > ETHETIC_GREEN_STAIRS = BLOCKS . register ( " ethetic_green_stairs " , ( ) - > new StairsBlock ( ( ) - > ETHETIC_GREEN_BLOCK . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( ETHETIC_GREEN_BLOCK . get ( ) ) ) ) ;
public static final RegistryObject < Block > ETHETIC_WHITE_STAIRS = BLOCKS . register ( " ethetic_white_stairs " , ( ) - > new StairsBlock ( ( ) - > ETHETIC_WHITE_BLOCK . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( ETHETIC_WHITE_BLOCK . get ( ) ) ) ) ;
public static final RegistryObject < Block > ETHETIC_GREEN_SLAB = BLOCKS . register ( " ethetic_green_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( ETHETIC_GREEN_BLOCK . get ( ) ) ) ) ;
public static final RegistryObject < Block > ETHETIC_WHITE_SLAB = BLOCKS . register ( " ethetic_white_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( ETHETIC_WHITE_BLOCK . get ( ) ) ) ) ;
2021-05-05 18:15:25 +02:00
public static final RegistryObject < Block > ETHETIC_GREEN_WALL = BLOCKS . register ( " ethetic_green_wall " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( ETHETIC_GREEN_BLOCK . get ( ) ) ) ) ;
public static final RegistryObject < Block > ETHETIC_WHITE_WALL = BLOCKS . register ( " ethetic_white_wall " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( ETHETIC_WHITE_BLOCK . get ( ) ) ) ) ;
2021-02-28 15:47:54 +01:00
2021-08-22 20:16:04 +02:00
2021-05-02 18:10:21 +02:00
// public static final RegistryObject<Block> blockTreasureChest = BLOCKS.register("treasure_chest", BlockTreasureChest::new);
public static final RegistryObject < Block > COAL_GENERATOR = BLOCKS . register ( " coal_generator " , BlockCoalGenerator : : new ) ;
public static final RegistryObject < Block > OIL_GENERATOR = BLOCKS . register ( " oil_generator " , BlockOilGenerator : : new ) ;
public static final RegistryObject < Block > FERMENTING_BARREL = BLOCKS . register ( " fermenting_barrel " , BlockFermentingBarrel : : new ) ;
public static final RegistryObject < Block > RICE = BLOCKS . register ( " rice " , ( ) - > new BlockPlant ( ActuallyItems . RICE_SEED . get ( ) ) ) ; // TODO: [port][replace] ensure values match these new BlockPlant(1, 2));
public static final RegistryObject < Block > CANOLA = BLOCKS . register ( " canola " , ( ) - > new BlockPlant ( ActuallyItems . CANOLA_SEED . get ( ) ) ) ; // TODO: [port][replace] ensure values match these new BlockPlant(2, 3));
public static final RegistryObject < Block > FLAX = BLOCKS . register ( " flax " , ( ) - > new BlockPlant ( ActuallyItems . FLAX_SEED . get ( ) ) ) ; // TODO: [port][replace] ensure values match these new BlockPlant(2, 4));
public static final RegistryObject < Block > COFFEE = BLOCKS . register ( " coffee " , ( ) - > new BlockPlant ( ActuallyItems . COFFEE_SEED . get ( ) ) ) ; // TODO: [port][replace] ensure values match these new BlockPlant(2, 2));
public static final RegistryObject < Block > FURNACE_DOUBLE = BLOCKS . register ( " furnace_double " , BlockFurnaceDouble : : new ) ;
// public static final RegistryObject<Block> blockFurnaceSolar = BLOCKS.register("furnace_solar", BlockFurnaceSolar::new);
public static final RegistryObject < Block > HEAT_COLLECTOR = BLOCKS . register ( " heat_collector " , BlockHeatCollector : : new ) ;
public static final RegistryObject < Block > GREENHOUSE_GLASS = BLOCKS . register ( " greenhouse_glass " , BlockGreenhouseGlass : : new ) ;
public static final RegistryObject < Block > COFFEE_MACHINE = BLOCKS . register ( " coffee_machine " , BlockCoffeeMachine : : new ) ;
public static final RegistryObject < Block > PHANTOM_BOOSTER = BLOCKS . register ( " phantom_booster " , BlockPhantomBooster : : new ) ;
2021-05-05 18:15:25 +02:00
public static final RegistryObject < Block > BLACK_QUARTZ_BLOCK = BLOCKS . register ( " black_quartz_block " , BlockGeneric : : new ) ;
2021-05-05 18:34:43 +02:00
public static final RegistryObject < Block > BLACK_QUARTZ_PILLAR_BLOCK = BLOCKS . register ( " black_quartz_pillar_block " , BlockGeneric : : new ) ;
public static final RegistryObject < Block > CHISELED_BLACK_QUARTZ_BLOCK = BLOCKS . register ( " chiseled_black_quartz_block " , BlockGeneric : : new ) ;
2021-05-05 18:15:25 +02:00
public static final RegistryObject < Block > BLACK_QUARTZ_WALL = BLOCKS . register ( " black_quartz_wall " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > CHISELED_BLACK_QUARTZ_WALL = BLOCKS . register ( " chiseled_black_quartz_wall " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
2021-05-05 18:34:43 +02:00
public static final RegistryObject < Block > BLACK_QUARTZ_PILLAR_WALL = BLOCKS . register ( " black_quartz_pillar_wall " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
2021-05-05 18:15:25 +02:00
public static final RegistryObject < Block > BLACK_QUARTZ_STAIR = BLOCKS . register ( " black_quartz_stair " , ( ) - > new StairsBlock ( ( ) - > blockMisc . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > CHISELED_BLACK_QUARTZ_STAIR = BLOCKS . register ( " chiseled_black_quartz_stair " , ( ) - > new StairsBlock ( ( ) - > blockMisc . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
2021-05-05 18:34:43 +02:00
public static final RegistryObject < Block > BLACK_QUARTZ_PILLAR_STAIR = BLOCKS . register ( " black_quartz_pillar_stair " , ( ) - > new StairsBlock ( ( ) - > blockMisc . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
2021-05-05 18:15:25 +02:00
public static final RegistryObject < Block > BLACK_QUARTZ_SLAB = BLOCKS . register ( " black_quartz_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > CHISELED_BLACK_QUARTZ_SLAB = BLOCKS . register ( " chiseled_black_quartz_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
2021-05-05 18:34:43 +02:00
public static final RegistryObject < Block > BLACK_QUARTZ_PILLAR_SLAB = BLOCKS . register ( " black_quartz_pillar_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
2021-02-28 15:47:54 +01:00
public static AbstractBlock . Properties defaultPickProps ( int harvestLevel , float hardness , float resistance ) {
return AbstractBlock . Properties . create ( Material . ROCK ) . harvestLevel ( harvestLevel ) . harvestTool ( ToolType . PICKAXE ) . hardnessAndResistance ( hardness , resistance ) . sound ( SoundType . STONE ) ;
}
public static AbstractBlock . Properties defaultPickProps ( int harvestLevel ) {
return AbstractBlock . Properties . create ( Material . ROCK ) . harvestLevel ( harvestLevel ) . harvestTool ( ToolType . PICKAXE ) . hardnessAndResistance ( 1 . 5F , 10 . 0F ) . sound ( SoundType . STONE ) ;
}
2021-02-27 13:24:45 +01:00
}