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 ;
2017-02-13 23:17:08 +01:00
import de.ellpeck.actuallyadditions.mod.items.metalists.TheCrystals ;
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 ;
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-02-27 13:24:45 +01:00
public static final RegistryObject < Block > blockMisc = BLOCKS . register ( " block_misc " , BlockMisc : : new ) ;
2021-02-27 16:33:00 +01:00
public static final RegistryObject < Block > blockLavaCasing = BLOCKS . register ( " block_misc " , BlockMisc : : new ) ;
2021-02-27 13:24:45 +01:00
public static final RegistryObject < Block > blockWildPlant = BLOCKS . register ( " block_wild " , BlockWildPlant : : new ) ;
public static final RegistryObject < Block > blockFeeder = BLOCKS . register ( " block_feeder " , BlockFeeder : : new ) ;
public static final RegistryObject < Block > blockGrinder = BLOCKS . register ( " block_grinder " , ( ) - > new BlockGrinder ( false ) ) ;
public static final RegistryObject < Block > blockGrinderDouble = BLOCKS . register ( " block_grinder_double " , ( ) - > new BlockGrinder ( true ) ) ;
public static final RegistryObject < Block > blockCrystalClusterRedstone = BLOCKS . register ( " block_crystal_cluster_redstone " , ( ) - > new BlockCrystalCluster ( TheCrystals . REDSTONE ) ) ;
public static final RegistryObject < Block > blockCrystalClusterLapis = BLOCKS . register ( " block_crystal_cluster_lapis " , ( ) - > new BlockCrystalCluster ( TheCrystals . LAPIS ) ) ;
public static final RegistryObject < Block > blockCrystalClusterDiamond = BLOCKS . register ( " block_crystal_cluster_diamond " , ( ) - > new BlockCrystalCluster ( TheCrystals . DIAMOND ) ) ;
public static final RegistryObject < Block > blockCrystalClusterCoal = BLOCKS . register ( " block_crystal_cluster_coal " , ( ) - > new BlockCrystalCluster ( TheCrystals . COAL ) ) ;
public static final RegistryObject < Block > blockCrystalClusterEmerald = BLOCKS . register ( " block_crystal_cluster_emerald " , ( ) - > new BlockCrystalCluster ( TheCrystals . EMERALD ) ) ;
public static final RegistryObject < Block > blockCrystalClusterIron = BLOCKS . register ( " block_crystal_cluster_iron " , ( ) - > new BlockCrystalCluster ( TheCrystals . IRON ) ) ;
public static final RegistryObject < Block > blockBatteryBox = BLOCKS . register ( " block_battery_box " , BlockBatteryBox : : new ) ;
public static final RegistryObject < Block > blockItemViewerHopping = BLOCKS . register ( " block_item_viewer_hopping " , BlockItemViewerHopping : : new ) ;
public static final RegistryObject < Block > blockFarmer = BLOCKS . register ( " block_farmer " , BlockFarmer : : new ) ;
public static final RegistryObject < Block > blockBioReactor = BLOCKS . register ( " block_bio_reactor " , BlockBioReactor : : new ) ;
public static final RegistryObject < Block > blockEmpowerer = BLOCKS . register ( " block_empowerer " , BlockEmpowerer : : new ) ;
public static final RegistryObject < Block > blockTinyTorch = BLOCKS . register ( " block_tiny_torch " , BlockTinyTorch : : new ) ;
public static final RegistryObject < Block > blockShockSuppressor = BLOCKS . register ( " block_shock_suppressor " , BlockShockSuppressor : : new ) ;
public static final RegistryObject < Block > blockDisplayStand = BLOCKS . register ( " block_display_stand " , BlockDisplayStand : : new ) ;
public static final RegistryObject < Block > blockPlayerInterface = BLOCKS . register ( " block_player_interface " , BlockPlayerInterface : : new ) ;
public static final RegistryObject < Block > blockItemViewer = BLOCKS . register ( " block_item_viewer " , BlockItemViewer : : new ) ;
public static final RegistryObject < Block > blockFireworkBox = BLOCKS . register ( " block_firework_box " , BlockFireworkBox : : new ) ;
public static final RegistryObject < Block > blockMiner = BLOCKS . register ( " block_miner " , BlockMiner : : new ) ;
public static final RegistryObject < Block > blockAtomicReconstructor = BLOCKS . register ( " block_atomic_reconstructor " , BlockAtomicReconstructor : : new ) ;
public static final RegistryObject < Block > blockLaserRelay = BLOCKS . register ( " block_laser_relay " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ENERGY_BASIC ) ) ;
public static final RegistryObject < Block > blockLaserRelayAdvanced = BLOCKS . register ( " block_laser_relay_advanced " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ENERGY_ADVANCED ) ) ;
public static final RegistryObject < Block > blockLaserRelayExtreme = BLOCKS . register ( " block_laser_relay_extreme " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ENERGY_EXTREME ) ) ;
public static final RegistryObject < Block > blockLaserRelayFluids = BLOCKS . register ( " block_laser_relay_fluids " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . FLUIDS ) ) ;
public static final RegistryObject < Block > blockLaserRelayItem = BLOCKS . register ( " block_laser_relay_item " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ITEM ) ) ;
public static final RegistryObject < Block > blockLaserRelayItemWhitelist = BLOCKS . register ( " block_laser_relay_item_whitelist " , ( ) - > new BlockLaserRelay ( BlockLaserRelay . Type . ITEM_WHITELIST ) ) ;
public static final RegistryObject < Block > blockRangedCollector = BLOCKS . register ( " block_ranged_collector " , BlockRangedCollector : : new ) ;
public static final RegistryObject < Block > blockDirectionalBreaker = BLOCKS . register ( " block_directional_breaker " , BlockDirectionalBreaker : : new ) ;
public static final RegistryObject < Block > blockLeafGenerator = BLOCKS . register ( " block_leaf_generator " , BlockLeafGenerator : : new ) ;
public static final RegistryObject < Block > blockXPSolidifier = BLOCKS . register ( " block_xp_solidifier " , BlockXPSolidifier : : new ) ;
public static final RegistryObject < Block > blockTestifiBucksGreenWall = BLOCKS . register ( " block_testifi_bucks_green_wall " , BlockGeneric : : new ) ;
public static final RegistryObject < Block > blockTestifiBucksWhiteWall = BLOCKS . register ( " block_testifi_bucks_white_wall " , BlockGeneric : : new ) ;
public static final RegistryObject < Block > blockTestifiBucksGreenStairs = BLOCKS . register ( " block_testifi_bucks_green_stairs " , ( ) - > new StairsBlock ( ( ) - > blockTestifiBucksGreenWall . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( blockTestifiBucksGreenWall . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockTestifiBucksWhiteStairs = BLOCKS . register ( " block_testifi_bucks_white_stairs " , ( ) - > new StairsBlock ( ( ) - > blockTestifiBucksWhiteWall . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( blockTestifiBucksWhiteWall . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockTestifiBucksGreenSlab = BLOCKS . register ( " block_testifi_bucks_green_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( blockTestifiBucksGreenWall . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockTestifiBucksWhiteSlab = BLOCKS . register ( " block_testifi_bucks_white_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( blockTestifiBucksWhiteWall . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockTestifiBucksGreenFence = BLOCKS . register ( " block_testifi_bucks_green_fence " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( blockTestifiBucksGreenWall . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockTestifiBucksWhiteFence = BLOCKS . register ( " block_testifi_bucks_white_fence " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( blockTestifiBucksWhiteWall . get ( ) ) ) ) ;
2021-02-28 15:47:54 +01:00
public static final RegistryObject < Block > CRYSTAL_ENORI = BLOCKS . register ( " crystal_enori_block " , ( ) - > new BlockCrystal ( false ) ) ;
public static final RegistryObject < Block > CRYSTAL_RESTONIA = BLOCKS . register ( " crystal_restonia_block " , ( ) - > new BlockCrystal ( false ) ) ;
public static final RegistryObject < Block > CRYSTAL_PALIS = BLOCKS . register ( " crystal_palis_block " , ( ) - > new BlockCrystal ( false ) ) ;
public static final RegistryObject < Block > CRYSTAL_DIAMATINE = BLOCKS . register ( " crystal_diamatine_block " , ( ) - > new BlockCrystal ( false ) ) ;
public static final RegistryObject < Block > CRYSTAL_VOID = BLOCKS . register ( " crystal_void_block " , ( ) - > new BlockCrystal ( false ) ) ;
public static final RegistryObject < Block > CRYSTAL_EMERADIC = BLOCKS . register ( " crystal_emeradic_block " , ( ) - > new BlockCrystal ( false ) ) ;
public static final RegistryObject < Block > CRYSTAL_EMPOWERED_ENORI = BLOCKS . register ( " crystal_enori_empowered_block " , ( ) - > new BlockCrystal ( true ) ) ;
public static final RegistryObject < Block > CRYSTAL_EMPOWERED_RESTONIA = BLOCKS . register ( " crystal_restonia_empowered_block " , ( ) - > new BlockCrystal ( true ) ) ;
public static final RegistryObject < Block > CRYSTAL_EMPOWERED_PALIS = BLOCKS . register ( " crystal_palis_empowered_block " , ( ) - > new BlockCrystal ( true ) ) ;
public static final RegistryObject < Block > CRYSTAL_EMPOWERED_DIAMATINE = BLOCKS . register ( " crystal_diamatine_empowered_block " , ( ) - > new BlockCrystal ( true ) ) ;
public static final RegistryObject < Block > CRYSTAL_EMPOWERED_VOID = BLOCKS . register ( " crystal_void_empowered_block " , ( ) - > new BlockCrystal ( true ) ) ;
public static final RegistryObject < Block > CRYSTAL_EMPOWERED_EMERADIC = BLOCKS . register ( " crystal_emeradic_empowered_block " , ( ) - > new BlockCrystal ( true ) ) ;
public static final RegistryObject < Block > LAMP_WHITE = BLOCKS . register ( " lamp_white_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_ORANGE = BLOCKS . register ( " lamp_orange_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_MAGENTA = BLOCKS . register ( " lamp_magenta_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_LIGHT_BLUE = BLOCKS . register ( " lamp_light_blue_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_YELLOW = BLOCKS . register ( " lamp_yellow_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_LIME = BLOCKS . register ( " lamp_lime_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_PINK = BLOCKS . register ( " lamp_pink_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_GRAY = BLOCKS . register ( " lamp_gray_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_LIGHT_GRAY = BLOCKS . register ( " lamp_light_gray_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_CYAN = BLOCKS . register ( " lamp_cyan_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_PURPLE = BLOCKS . register ( " lamp_purple_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_BLUE = BLOCKS . register ( " lamp_blue_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_BROWN = BLOCKS . register ( " lamp_brown_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_GREEN = BLOCKS . register ( " lamp_green_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_RED = BLOCKS . register ( " lamp_red_block " , BlockColoredLamp : : new ) ;
public static final RegistryObject < Block > LAMP_BLACK = BLOCKS . register ( " lamp_black_block " , BlockColoredLamp : : new ) ;
// public static final RegistryObject<Block> blockColoredLamp = BLOCKS.register("block_colored_lamp", () -> new BlockColoredLamp());
// public static final RegistryObject<Block> blockColoredLampOn = BLOCKS.register("block_colored_lamp_on", () -> new BlockColoredLamp());
2021-02-27 13:24:45 +01:00
public static final RegistryObject < Block > blockLampPowerer = BLOCKS . register ( " block_lamp_powerer " , BlockLampPowerer : : new ) ;
// public static final RegistryObject<Block> blockTreasureChest = BLOCKS.register("block_treasure_chest", BlockTreasureChest::new);
public static final RegistryObject < Block > blockEnergizer = BLOCKS . register ( " block_energizer " , ( ) - > new BlockEnergizer ( true ) ) ;
public static final RegistryObject < Block > blockEnervator = BLOCKS . register ( " block_enervator " , ( ) - > new BlockEnergizer ( false ) ) ;
public static final RegistryObject < Block > blockLavaFactoryController = BLOCKS . register ( " block_lava_factory_controller " , BlockLavaFactoryController : : new ) ;
public static final RegistryObject < Block > blockCanolaPress = BLOCKS . register ( " block_canola_press " , BlockCanolaPress : : new ) ;
public static final RegistryObject < Block > blockPhantomface = BLOCKS . register ( " block_phantomface " , ( ) - > new BlockPhantom ( BlockPhantom . Type . FACE ) ) ;
public static final RegistryObject < Block > blockPhantomPlacer = BLOCKS . register ( " block_phantom_placer " , ( ) - > new BlockPhantom ( BlockPhantom . Type . PLACER ) ) ;
public static final RegistryObject < Block > blockPhantomLiquiface = BLOCKS . register ( " block_phantom_liquiface " , ( ) - > new BlockPhantom ( BlockPhantom . Type . LIQUIFACE ) ) ;
public static final RegistryObject < Block > blockPhantomEnergyface = BLOCKS . register ( " block_phantom_energyface " , ( ) - > new BlockPhantom ( BlockPhantom . Type . ENERGYFACE ) ) ;
public static final RegistryObject < Block > blockPhantomRedstoneface = BLOCKS . register ( " block_phantom_redstoneface " , ( ) - > new BlockPhantom ( BlockPhantom . Type . REDSTONEFACE ) ) ;
public static final RegistryObject < Block > blockPhantomBreaker = BLOCKS . register ( " block_phantom_breaker " , ( ) - > new BlockPhantom ( BlockPhantom . Type . BREAKER ) ) ;
public static final RegistryObject < Block > blockCoalGenerator = BLOCKS . register ( " block_coal_generator " , BlockCoalGenerator : : new ) ;
public static final RegistryObject < Block > blockOilGenerator = BLOCKS . register ( " block_oil_generator " , BlockOilGenerator : : new ) ;
public static final RegistryObject < Block > blockFermentingBarrel = BLOCKS . register ( " block_fermenting_barrel " , BlockFermentingBarrel : : new ) ;
2021-03-01 21:23:52 +01:00
public static final RegistryObject < Block > blockRice = BLOCKS . register ( " block_rice " , ( ) - > new BlockPlant ( ActuallyItems . itemRiceSeed . get ( ) ) ) ; // TODO: [port][replace] ensure values match these new BlockPlant(1, 2));
public static final RegistryObject < Block > blockCanola = BLOCKS . register ( " block_canola " , ( ) - > new BlockPlant ( ActuallyItems . itemCanolaSeed . get ( ) ) ) ; // TODO: [port][replace] ensure values match these new BlockPlant(2, 3));
public static final RegistryObject < Block > blockFlax = BLOCKS . register ( " block_flax " , ( ) - > new BlockPlant ( ActuallyItems . itemFlaxSeed . get ( ) ) ) ; // TODO: [port][replace] ensure values match these new BlockPlant(2, 4));
public static final RegistryObject < Block > blockCoffee = BLOCKS . register ( " block_coffee " , ( ) - > new BlockPlant ( ActuallyItems . itemCoffeeSeed . get ( ) ) ) ; // TODO: [port][replace] ensure values match these new BlockPlant(2, 2));
2021-02-27 13:24:45 +01:00
public static final RegistryObject < Block > blockFurnaceDouble = BLOCKS . register ( " block_furnace_double " , BlockFurnaceDouble : : new ) ;
public static final RegistryObject < Block > blockInputter = BLOCKS . register ( " block_inputter " , ( ) - > new BlockInputter ( false ) ) ;
public static final RegistryObject < Block > blockInputterAdvanced = BLOCKS . register ( " block_inputter_advanced " , ( ) - > new BlockInputter ( true ) ) ;
2021-03-01 20:14:50 +01:00
// public static final RegistryObject<Block> blockFurnaceSolar = BLOCKS.register("block_furnace_solar", BlockFurnaceSolar::new);
2021-02-27 13:24:45 +01:00
public static final RegistryObject < Block > blockHeatCollector = BLOCKS . register ( " block_heat_collector " , BlockHeatCollector : : new ) ;
public static final RegistryObject < Block > blockGreenhouseGlass = BLOCKS . register ( " block_greenhouse_glass " , BlockGreenhouseGlass : : new ) ;
public static final RegistryObject < Block > blockBreaker = BLOCKS . register ( " block_breaker " , ( ) - > new BlockBreaker ( false ) ) ;
public static final RegistryObject < Block > blockPlacer = BLOCKS . register ( " block_placer " , ( ) - > new BlockBreaker ( true ) ) ;
public static final RegistryObject < Block > blockDropper = BLOCKS . register ( " block_dropper " , BlockDropper : : new ) ;
public static final RegistryObject < Block > blockFluidPlacer = BLOCKS . register ( " block_fluid_placer " , ( ) - > new BlockFluidCollector ( true ) ) ;
public static final RegistryObject < Block > blockFluidCollector = BLOCKS . register ( " block_fluid_collector " , ( ) - > new BlockFluidCollector ( false ) ) ;
public static final RegistryObject < Block > blockCoffeeMachine = BLOCKS . register ( " block_coffee_machine " , BlockCoffeeMachine : : new ) ;
public static final RegistryObject < Block > blockPhantomBooster = BLOCKS . register ( " block_phantom_booster " , BlockPhantomBooster : : new ) ;
public static final RegistryObject < Block > blockQuartzWall = BLOCKS . register ( " block_quartz_wall " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockChiseledQuartzWall = BLOCKS . register ( " block_chiseled_quartz_wall " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockPillarQuartzWall = BLOCKS . register ( " block_pillar_quartz_wall " , ( ) - > new WallBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockQuartzStair = BLOCKS . register ( " block_quartz_stair " , ( ) - > new StairsBlock ( ( ) - > blockMisc . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockChiseledQuartzStair = BLOCKS . register ( " block_chiseled_quartz_stair " , ( ) - > new StairsBlock ( ( ) - > blockMisc . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockPillarQuartzStair = BLOCKS . register ( " block_pillar_quartz_stair " , ( ) - > new StairsBlock ( ( ) - > blockMisc . get ( ) . getDefaultState ( ) , AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockQuartzSlab = BLOCKS . register ( " block_quartz_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockChiseledQuartzSlab = BLOCKS . register ( " block_chiseled_quartz_slab " , ( ) - > new SlabBlock ( AbstractBlock . Properties . from ( blockMisc . get ( ) ) ) ) ;
public static final RegistryObject < Block > blockPillarQuartzSlab = BLOCKS . register ( " block_pillar_quartz_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
}