mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Added all blocks from old version
This commit is contained in:
parent
bbea6ba4d8
commit
447e9ee35a
58 changed files with 972 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.blocks.ActuallyBlocks;
|
||||||
|
import de.ellpeck.actuallyadditions.common.items.ActuallyItems;
|
||||||
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
||||||
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||||
|
|
||||||
|
@Mod(ActuallyAdditions.MOD_ID)
|
||||||
|
public class ActuallyAdditions {
|
||||||
|
public static final String MOD_ID = "actuallyadditions";
|
||||||
|
|
||||||
|
public ActuallyAdditions() {
|
||||||
|
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||||
|
|
||||||
|
ActuallyBlocks.BLOCKS.register(eventBus);
|
||||||
|
ActuallyItems.ITEMS.register(eventBus);
|
||||||
|
|
||||||
|
eventBus.addListener(this::setup);
|
||||||
|
eventBus.addListener(this::clientSetup);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setup(FMLCommonSetupEvent event) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void clientSetup(FMLClientSetupEvent event) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,288 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
||||||
|
import de.ellpeck.actuallyadditions.common.blocks.types.Crystals;
|
||||||
|
import de.ellpeck.actuallyadditions.common.blocks.types.LaserRelays;
|
||||||
|
import de.ellpeck.actuallyadditions.common.blocks.types.PhantomType;
|
||||||
|
import net.minecraft.block.*;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
public class ActuallyBlocks {
|
||||||
|
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, ActuallyAdditions.MOD_ID);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCrystalClusterRedstone
|
||||||
|
= BLOCKS.register("crystal_cluster_redstone_block", () -> new CrystalClusterBlock(Crystals.REDSTONE));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCrystalClusterLapis
|
||||||
|
= BLOCKS.register("crystal_cluster_lapis_block", () -> new CrystalClusterBlock(Crystals.LAPIS));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCrystalClusterDiamond
|
||||||
|
= BLOCKS.register("crystal_cluster_diamond_block", () -> new CrystalClusterBlock(Crystals.DIAMOND));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCrystalClusterCoal
|
||||||
|
= BLOCKS.register("crystal_cluster_coal_block", () -> new CrystalClusterBlock(Crystals.COAL));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCrystalClusterEmerald
|
||||||
|
= BLOCKS.register("crystal_cluster_emerald_block", () -> new CrystalClusterBlock(Crystals.EMERALD));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCrystalClusterIron
|
||||||
|
= BLOCKS.register("crystal_cluster_iron_block", () -> new CrystalClusterBlock(Crystals.IRON));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockBatteryBox
|
||||||
|
= BLOCKS.register("battery_box_block", BatteryBoxBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockItemViewerHopping
|
||||||
|
= BLOCKS.register("item_viewer_hopping_block", ItemViewerHoppingBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFarmer
|
||||||
|
= BLOCKS.register("farmer_block", FarmerBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockBioReactor
|
||||||
|
= BLOCKS.register("bio_reactor_block", BioReactorBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockEmpowerer
|
||||||
|
= BLOCKS.register("empowerer_block", EmpowererBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTinyTorch
|
||||||
|
= BLOCKS.register("tiny_torch_block", TinyTorchBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockShockSuppressor
|
||||||
|
= BLOCKS.register("shock_suppressor_block", ShockSuppressorBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockDisplayStand
|
||||||
|
= BLOCKS.register("display_stand_block", DisplayStandBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPlayerInterface
|
||||||
|
= BLOCKS.register("player_interface_block", PlayerInterfaceBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockItemViewer
|
||||||
|
= BLOCKS.register("item_viewer_block", ItemViewerBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFireworkBox
|
||||||
|
= BLOCKS.register("firework_box_block", FireworkBoxBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockMiner
|
||||||
|
= BLOCKS.register("miner_block", MinerBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockAtomicReconstructor
|
||||||
|
= BLOCKS.register("atomic_reconstructor_block", AtomicReconstructorBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCrystal
|
||||||
|
= BLOCKS.register("crystal_block", () -> new CrystalBlock(false));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCrystalEmpowered
|
||||||
|
= BLOCKS.register("crystal_empowered_block", () -> new CrystalBlock(true));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockBlackLotus
|
||||||
|
= BLOCKS.register("black_lotus_block", BlackLotusBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLaserRelay
|
||||||
|
= BLOCKS.register("laser_relay_block", () -> new LaserRelayBlock(LaserRelays.ENERGY_BASIC));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLaserRelayAdvanced
|
||||||
|
= BLOCKS.register("laser_relay_advanced_block", () -> new LaserRelayBlock(LaserRelays.ENERGY_ADVANCED));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLaserRelayExtreme
|
||||||
|
= BLOCKS.register("laser_relay_extreme_block", () -> new LaserRelayBlock(LaserRelays.ENERGY_EXTREME));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLaserRelayFluids
|
||||||
|
= BLOCKS.register("laser_relay_fluids_block", () -> new LaserRelayBlock(LaserRelays.FLUIDS));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLaserRelayItem
|
||||||
|
= BLOCKS.register("laser_relay_item_block", () -> new LaserRelayBlock(LaserRelays.ITEM));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLaserRelayItemWhitelist
|
||||||
|
= BLOCKS.register("laser_relay_item_whitelist_block", () -> new LaserRelayBlock(LaserRelays.ITEM_WHITELIST));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockRangedCollector
|
||||||
|
= BLOCKS.register("ranged_collector_block", RangedCollectorBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockDirectionalBreaker
|
||||||
|
= BLOCKS.register("directional_breaker_block", DirectionalBreakerBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLeafGenerator
|
||||||
|
= BLOCKS.register("leaf_generator_block", LeafGeneratorBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockSmileyCloud
|
||||||
|
= BLOCKS.register("smiley_cloud_block", SmileyCloudBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockXPSolidifier
|
||||||
|
= BLOCKS.register("xp_solidifier_block", XPSolidifierBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTestifiBucksGreenWall
|
||||||
|
= BLOCKS.register("testifi_bucks_green_wall_block", GenericBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTestifiBucksWhiteWall
|
||||||
|
= BLOCKS.register("testifi_bucks_white_wall_block", GenericBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTestifiBucksGreenStairs
|
||||||
|
= BLOCKS.register("testifi_bucks_green_stairs_block", () -> new StairsBlock(() -> blockTestifiBucksGreenWall.get().getDefaultState(), Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTestifiBucksWhiteStairs
|
||||||
|
= BLOCKS.register("testifi_bucks_white_stairs_block", () -> new StairsBlock(() -> blockTestifiBucksWhiteWall.get().getDefaultState(), Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTestifiBucksGreenSlab
|
||||||
|
= BLOCKS.register("testifi_bucks_green_slab_block", () -> new SlabBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTestifiBucksWhiteSlab
|
||||||
|
= BLOCKS.register("testifi_bucks_white_slab_block", () -> new SlabBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTestifiBucksGreenFence
|
||||||
|
= BLOCKS.register("testifi_bucks_green_fence_block", () -> new WallBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTestifiBucksWhiteFence
|
||||||
|
= BLOCKS.register("testifi_bucks_white_fence_block", () -> new WallBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockColoredLamp
|
||||||
|
= BLOCKS.register("colored_lamp_block", () -> new ColoredLampBlock(false));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockColoredLampOn
|
||||||
|
= BLOCKS.register("colored_lamp_on_block", () -> new ColoredLampBlock(true));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLampPowerer
|
||||||
|
= BLOCKS.register("lamp_powerer_block", LampPowererBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockTreasureChest
|
||||||
|
= BLOCKS.register("treasure_chest_block", TreasureChestBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockEnergizer
|
||||||
|
= BLOCKS.register("energizer_block", () -> new EnergizerBlock(true));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockEnervator
|
||||||
|
= BLOCKS.register("enervator_block", () -> new EnergizerBlock(false));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockLavaFactoryController
|
||||||
|
= BLOCKS.register("lava_factory_controller_block", LavaFactoryControllerBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCanolaPress
|
||||||
|
= BLOCKS.register("canola_press_block", CanolaPressBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPhantomface
|
||||||
|
= BLOCKS.register("phantomface_block", () -> new PhantomBlock(PhantomType.FACE));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPhantomPlacer
|
||||||
|
= BLOCKS.register("phantom_placer_block", () -> new PhantomBlock(PhantomType.PLACER));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPhantomLiquiface
|
||||||
|
= BLOCKS.register("phantom_liquiface_block", () -> new PhantomBlock(PhantomType.LIQUIFACE));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPhantomEnergyface
|
||||||
|
= BLOCKS.register("phantom_energyface_block", () -> new PhantomBlock(PhantomType.ENERGYFACE));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPhantomRedstoneface
|
||||||
|
= BLOCKS.register("phantom_redstoneface_block", () -> new PhantomBlock(PhantomType.REDSTONEFACE));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPhantomBreaker
|
||||||
|
= BLOCKS.register("phantom_breaker_block", () -> new PhantomBlock(PhantomType.BREAKER));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCoalGenerator
|
||||||
|
= BLOCKS.register("coal_generator_block", CoalGeneratorBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockOilGenerator
|
||||||
|
= BLOCKS.register("oil_generator_block", OilGeneratorBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFermentingBarrel
|
||||||
|
= BLOCKS.register("fermenting_barrel_block", FermentingBarrelBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockRice
|
||||||
|
= BLOCKS.register("rice_block", () -> new PlantBlock(1, 2));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCanola
|
||||||
|
= BLOCKS.register("canola_block", () -> new PlantBlock(2, 3));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFlax
|
||||||
|
= BLOCKS.register("flax_block", () -> new PlantBlock(2, 4));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCoffee
|
||||||
|
= BLOCKS.register("coffee_block", () -> new PlantBlock(2, 2));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockMisc
|
||||||
|
= BLOCKS.register("misc_block", () -> new Block(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFeeder
|
||||||
|
= BLOCKS.register("feeder_block", FeederBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockGrinder
|
||||||
|
= BLOCKS.register("grinder_block", () -> new GrinderBlock(false));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockGrinderDouble
|
||||||
|
= BLOCKS.register("grinder_double_block", () -> new GrinderBlock(true));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFurnaceDouble
|
||||||
|
= BLOCKS.register("furnace_double_block", FurnaceDoubleBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockInputter
|
||||||
|
= BLOCKS.register("inputter_block", () -> new InputterBlock(false));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockInputterAdvanced
|
||||||
|
= BLOCKS.register("inputter_advanced_block", () -> new InputterBlock(true));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFishingNet
|
||||||
|
= BLOCKS.register("fishing_net_block", FishingNetBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFurnaceSolar
|
||||||
|
= BLOCKS.register("furnace_solar_block", FurnaceSolarBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockHeatCollector
|
||||||
|
= BLOCKS.register("heat_collector_block", HeatCollectorBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockItemRepairer
|
||||||
|
= BLOCKS.register("item_repairer_block", ItemRepairerBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockGreenhouseGlass
|
||||||
|
= BLOCKS.register("greenhouse_glass_block", GreenhouseGlassBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockBreaker
|
||||||
|
= BLOCKS.register("breaker_block", () -> new BreakerBlock(false));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPlacer
|
||||||
|
= BLOCKS.register("placer_block", () -> new BreakerBlock(true));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockDropper
|
||||||
|
= BLOCKS.register("dropper_block", () -> new DropperBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFluidPlacer
|
||||||
|
= BLOCKS.register("fluid_placer_block", () -> new FluidCollectorBlock(true));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockFluidCollector
|
||||||
|
= BLOCKS.register("fluid_collector_block", () -> new FluidCollectorBlock(false));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockCoffeeMachine
|
||||||
|
= BLOCKS.register("coffee_machine_block", CoffeeMachineBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPhantomBooster
|
||||||
|
= BLOCKS.register("phantom_booster_block", PhantomBoosterBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockWildPlant
|
||||||
|
= BLOCKS.register("wild_block", WildPlantBlock::new);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockQuartzWall
|
||||||
|
= BLOCKS.register("quartz_wall_block", () -> new WallBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockChiseledQuartzWall
|
||||||
|
= BLOCKS.register("chiseled_quartz_wall_block", () -> new WallBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPillarQuartzWall
|
||||||
|
= BLOCKS.register("pillar_quartz_wall_block", () -> new WallBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockQuartzStair
|
||||||
|
= BLOCKS.register("quartz_stair_block", () -> new StairsBlock(() -> blockBlackLotus.get().getDefaultState(), Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockChiseledQuartzStair
|
||||||
|
= BLOCKS.register("chiseled_quartz_stair_block", () -> new StairsBlock(() -> blockBlackLotus.get().getDefaultState(), Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPillarQuartzStair
|
||||||
|
= BLOCKS.register("pillar_quartz_stair_block", () -> new StairsBlock(() -> blockBlackLotus.get().getDefaultState(), Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockQuartzSlab
|
||||||
|
= BLOCKS.register("quartz_slab_block", () -> new SlabBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockChiseledQuartzSlab
|
||||||
|
= BLOCKS.register("chiseled_quartz_slab_block", () -> new SlabBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> blockPillarQuartzSlab
|
||||||
|
= BLOCKS.register("pillar_quartz_slab_block", () -> new SlabBlock(Block.Properties.create(Material.ROCK)));
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class AtomicReconstructorBlock extends Block {
|
||||||
|
public AtomicReconstructorBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BatteryBoxBlock extends Block {
|
||||||
|
public BatteryBoxBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BioReactorBlock extends Block {
|
||||||
|
public BioReactorBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlackLotusBlock extends Block {
|
||||||
|
public BlackLotusBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BreakerBlock extends Block {
|
||||||
|
public BreakerBlock(boolean isPlacer) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class CanolaPressBlock extends Block {
|
||||||
|
public CanolaPressBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class CoalGeneratorBlock extends Block {
|
||||||
|
public CoalGeneratorBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class CoffeeMachineBlock extends Block {
|
||||||
|
public CoffeeMachineBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class ColoredLampBlock extends Block {
|
||||||
|
public ColoredLampBlock(boolean isLit) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class CrystalBlock extends Block {
|
||||||
|
public CrystalBlock(boolean isEmpowered) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.blocks.types.Crystals;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class CrystalClusterBlock extends Block {
|
||||||
|
public CrystalClusterBlock(Crystals crystal) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class DirectionalBreakerBlock extends Block {
|
||||||
|
public DirectionalBreakerBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class DisplayStandBlock extends Block {
|
||||||
|
public DisplayStandBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class EmpowererBlock extends Block {
|
||||||
|
public EmpowererBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class EnergizerBlock extends Block {
|
||||||
|
public EnergizerBlock(boolean isEnergizer) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class FarmerBlock extends Block {
|
||||||
|
public FarmerBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class FeederBlock extends Block {
|
||||||
|
|
||||||
|
public FeederBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class FermentingBarrelBlock extends Block {
|
||||||
|
public FermentingBarrelBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class FireworkBoxBlock extends Block {
|
||||||
|
public FireworkBoxBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class FishingNetBlock extends Block {
|
||||||
|
public FishingNetBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class FluidCollectorBlock extends Block {
|
||||||
|
public FluidCollectorBlock(boolean isPlacer) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class FurnaceDoubleBlock extends Block {
|
||||||
|
public FurnaceDoubleBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class FurnaceSolarBlock extends Block {
|
||||||
|
public FurnaceSolarBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraftforge.common.ToolType;
|
||||||
|
|
||||||
|
public class GenericBlock extends Block {
|
||||||
|
public GenericBlock() {
|
||||||
|
super(Properties.create(Material.ROCK)
|
||||||
|
.hardnessAndResistance(1.5F, 10.0F)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
.harvestLevel(0)
|
||||||
|
.sound(SoundType.STONE));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class GreenhouseGlassBlock extends Block {
|
||||||
|
public GreenhouseGlassBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class GrinderBlock extends Block {
|
||||||
|
public GrinderBlock(boolean isDouble) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class HeatCollectorBlock extends Block {
|
||||||
|
public HeatCollectorBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class InputterBlock extends Block {
|
||||||
|
public InputterBlock(boolean isAdvanced) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class ItemRepairerBlock extends Block {
|
||||||
|
public ItemRepairerBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class ItemViewerBlock extends Block {
|
||||||
|
public ItemViewerBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class ItemViewerHoppingBlock extends Block {
|
||||||
|
public ItemViewerHoppingBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class LampPowererBlock extends Block {
|
||||||
|
public LampPowererBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.blocks.types.LaserRelays;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class LaserRelayBlock extends Block {
|
||||||
|
public LaserRelayBlock(LaserRelays relayType) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class LavaFactoryControllerBlock extends Block {
|
||||||
|
public LavaFactoryControllerBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class LeafGeneratorBlock extends Block {
|
||||||
|
public LeafGeneratorBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class MinerBlock extends Block {
|
||||||
|
public MinerBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class OilGeneratorBlock extends Block {
|
||||||
|
public OilGeneratorBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.blocks.types.PhantomType;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class PhantomBlock extends Block {
|
||||||
|
public PhantomBlock(PhantomType type) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class PhantomBoosterBlock extends Block {
|
||||||
|
public PhantomBoosterBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.CropsBlock;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class PlantBlock extends CropsBlock {
|
||||||
|
public PlantBlock(int minDropAmount, int maxDropAmount) {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class PlayerInterfaceBlock extends Block {
|
||||||
|
public PlayerInterfaceBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class RangedCollectorBlock extends Block {
|
||||||
|
public RangedCollectorBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class ShockSuppressorBlock extends Block {
|
||||||
|
public ShockSuppressorBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class SmileyCloudBlock extends Block {
|
||||||
|
public SmileyCloudBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class TinyTorchBlock extends Block {
|
||||||
|
public TinyTorchBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class TreasureChestBlock extends Block {
|
||||||
|
public TreasureChestBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class WildPlantBlock extends Block {
|
||||||
|
public WildPlantBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class XPSolidifierBlock extends Block {
|
||||||
|
public XPSolidifierBlock() {
|
||||||
|
super(Properties.create(Material.ROCK));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks.types;
|
||||||
|
|
||||||
|
import net.minecraft.util.IStringSerializable;
|
||||||
|
|
||||||
|
public enum Crystals implements IStringSerializable {
|
||||||
|
REDSTONE("red", 0xFF2F21, 158F / 255F, 43F / 255F, 39F / 255F),
|
||||||
|
LAPIS("blue", 0x5171FF, 37F / 255F, 49F / 255F, 147F / 255F),
|
||||||
|
DIAMOND("light_blue", 0x35F1FF, 99F / 255F, 135F / 255F, 210F / 255F),
|
||||||
|
COAL("black", 0x434442, 0.2F, 0.2F, 0.2F),
|
||||||
|
EMERALD("green", 0x44E033, 54F / 255F, 75F / 255F, 24F / 255F),
|
||||||
|
IRON("white", 0xCEDDD4, 0.8F, 0.8F, 0.8F);
|
||||||
|
|
||||||
|
public final String name;
|
||||||
|
public final float[] conversionColorParticles;
|
||||||
|
public final int clusterColor;
|
||||||
|
|
||||||
|
Crystals(String name, int clusterColor, float... conversionColorParticles) {
|
||||||
|
this.name = name;
|
||||||
|
this.conversionColorParticles = conversionColorParticles;
|
||||||
|
this.clusterColor = clusterColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks.types;
|
||||||
|
|
||||||
|
public enum LaserRelays {
|
||||||
|
ENERGY_BASIC,
|
||||||
|
ENERGY_ADVANCED,
|
||||||
|
ENERGY_EXTREME,
|
||||||
|
FLUIDS,
|
||||||
|
ITEM,
|
||||||
|
ITEM_WHITELIST
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.blocks.types;
|
||||||
|
|
||||||
|
public enum PhantomType {
|
||||||
|
FACE,
|
||||||
|
PLACER,
|
||||||
|
BREAKER,
|
||||||
|
LIQUIFACE,
|
||||||
|
ENERGYFACE,
|
||||||
|
REDSTONEFACE
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
package de.ellpeck.actuallyadditions.common.items;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
public class ActuallyItems {
|
||||||
|
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, ActuallyAdditions.MOD_ID);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package de.ellpeck.actuallyadditions.data;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
||||||
|
import net.minecraft.data.DataGenerator;
|
||||||
|
import net.minecraftforge.client.model.generators.ExistingFileHelper;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.GatherDataEvent;
|
||||||
|
|
||||||
|
@Mod.EventBusSubscriber(modid = ActuallyAdditions.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||||
|
public final class ActuallyGens {
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void runGenerator(GatherDataEvent event) {
|
||||||
|
DataGenerator generator = event.getGenerator();
|
||||||
|
|
||||||
|
if( event.includeClient() ) {
|
||||||
|
ExistingFileHelper helper = event.getExistingFileHelper();
|
||||||
|
|
||||||
|
generator.addProvider(new GeneratorBlockStates(generator, helper));
|
||||||
|
generator.addProvider(new GeneratorItemModels(generator, helper));
|
||||||
|
generator.addProvider(new GeneratorLanguage(generator));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
package de.ellpeck.actuallyadditions.data;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.data.DataGenerator;
|
||||||
|
import net.minecraftforge.client.model.generators.BlockStateProvider;
|
||||||
|
import net.minecraftforge.client.model.generators.ConfiguredModel;
|
||||||
|
import net.minecraftforge.client.model.generators.ExistingFileHelper;
|
||||||
|
|
||||||
|
public class GeneratorBlockStates extends BlockStateProvider {
|
||||||
|
public GeneratorBlockStates(DataGenerator gen, ExistingFileHelper exFileHelper) {
|
||||||
|
super(gen, ActuallyAdditions.MOD_ID, exFileHelper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void registerStatesAndModels() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buildCubeAll(Block block) {
|
||||||
|
getVariantBuilder(block).forAllStates(state ->
|
||||||
|
ConfiguredModel.builder().modelFile(cubeAll(block)).build()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
package de.ellpeck.actuallyadditions.data;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.data.DataGenerator;
|
||||||
|
import net.minecraftforge.client.model.generators.ExistingFileHelper;
|
||||||
|
import net.minecraftforge.client.model.generators.ItemModelProvider;
|
||||||
|
import net.minecraftforge.client.model.generators.ModelFile;
|
||||||
|
|
||||||
|
public class GeneratorItemModels extends ItemModelProvider {
|
||||||
|
public GeneratorItemModels(DataGenerator generator, ExistingFileHelper existingFileHelper) {
|
||||||
|
super(generator, ActuallyAdditions.MOD_ID, existingFileHelper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void registerModels() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void registerBlockModel(Block block) {
|
||||||
|
String path = block.getRegistryName().getPath();
|
||||||
|
getBuilder(path).parent(new ModelFile.UncheckedModelFile(modLoc("block/" + path)));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "Item Models";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
package de.ellpeck.actuallyadditions.data;
|
||||||
|
|
||||||
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
||||||
|
import net.minecraft.data.DataGenerator;
|
||||||
|
import net.minecraftforge.common.data.LanguageProvider;
|
||||||
|
|
||||||
|
public class GeneratorLanguage extends LanguageProvider {
|
||||||
|
public GeneratorLanguage(DataGenerator gen) {
|
||||||
|
super(gen, ActuallyAdditions.MOD_ID, "en_us");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void addTranslations() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Very simply, prefixes all the keys with the mod_id.{key} instead of
|
||||||
|
* having to input it manually
|
||||||
|
*/
|
||||||
|
private void addPrefixed(String key, String text) {
|
||||||
|
add(String.format("%s.%s", ActuallyAdditions.MOD_ID, key), text);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue