2020-04-26 06:58:38 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
2020-05-02 18:07:46 +02:00
|
|
|
import static com.simibubi.create.modules.Sections.SCHEMATICS;
|
|
|
|
|
2020-04-26 06:58:38 +02:00
|
|
|
import com.simibubi.create.modules.schematics.block.CreativeCrateBlock;
|
|
|
|
import com.simibubi.create.modules.schematics.block.SchematicTableBlock;
|
|
|
|
import com.simibubi.create.modules.schematics.block.SchematicannonBlock;
|
|
|
|
import com.tterrag.registrate.util.RegistryEntry;
|
|
|
|
|
2020-05-02 18:07:46 +02:00
|
|
|
import net.minecraft.block.Blocks;
|
|
|
|
|
2020-04-26 06:58:38 +02:00
|
|
|
public class AllBlocksNew {
|
|
|
|
|
|
|
|
private static final CreateRegistrate REGISTRATE = Create.registrate();
|
|
|
|
|
2020-05-02 18:07:46 +02:00
|
|
|
// Tools for strucuture movement and replication
|
|
|
|
static { REGISTRATE.startSection(SCHEMATICS); }
|
2020-04-26 06:58:38 +02:00
|
|
|
|
|
|
|
public static final RegistryEntry<SchematicannonBlock> SCHEMATICANNON = REGISTRATE.block("schematicannon", SchematicannonBlock::new)
|
2020-05-02 18:07:46 +02:00
|
|
|
.initialProperties(() -> Blocks.DISPENSER)
|
2020-04-26 06:58:38 +02:00
|
|
|
.blockstate((ctx, prov) -> prov.simpleBlock(ctx.getEntry(), prov.models().getExistingFile(prov.modLoc("block/" + ctx.getName() + "/base"))))
|
|
|
|
.item()
|
2020-05-02 18:07:46 +02:00
|
|
|
.model((ctx, prov) -> prov.blockItem(ctx.getEntry()::getBlock, "/item"))
|
2020-04-26 06:58:38 +02:00
|
|
|
.build()
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final RegistryEntry<CreativeCrateBlock> CREATIVE_CRATE = REGISTRATE.block("creative_crate", CreativeCrateBlock::new)
|
2020-05-02 18:07:46 +02:00
|
|
|
.initialProperties(() -> Blocks.CHEST)
|
2020-04-26 18:11:44 +02:00
|
|
|
.blockstate((ctx, prov) -> prov.simpleBlock(ctx.getEntry(), prov.models().getExistingFile(ctx.getId())))
|
2020-04-26 06:58:38 +02:00
|
|
|
.simpleItem()
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final RegistryEntry<SchematicTableBlock> SCHEMATIC_TABLE = REGISTRATE.block("schematic_table", SchematicTableBlock::new)
|
2020-05-02 18:07:46 +02:00
|
|
|
.initialProperties(() -> Blocks.LECTERN)
|
2020-04-26 06:58:38 +02:00
|
|
|
.blockstate((ctx, prov) -> prov.horizontalBlock(ctx.getEntry(), prov.models().getExistingFile(ctx.getId()), 0))
|
|
|
|
.simpleItem()
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static void register() {}
|
|
|
|
}
|