2020-04-26 06:58:38 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
public class AllBlocksNew {
|
|
|
|
|
|
|
|
private static final CreateRegistrate REGISTRATE = Create.registrate();
|
|
|
|
|
|
|
|
static { REGISTRATE.setModule("SCHEMATICS"); }
|
|
|
|
|
|
|
|
public static final RegistryEntry<SchematicannonBlock> SCHEMATICANNON = REGISTRATE.block("schematicannon", SchematicannonBlock::new)
|
|
|
|
.blockstate((ctx, prov) -> prov.simpleBlock(ctx.getEntry(), prov.models().getExistingFile(prov.modLoc("block/" + ctx.getName() + "/base"))))
|
|
|
|
.item()
|
|
|
|
.model((ctx, prov) -> prov.blockItem(ctx.getEntry()::getBlock, "/base"))
|
|
|
|
.build()
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final RegistryEntry<CreativeCrateBlock> CREATIVE_CRATE = REGISTRATE.block("creative_crate", CreativeCrateBlock::new)
|
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)
|
|
|
|
.blockstate((ctx, prov) -> prov.horizontalBlock(ctx.getEntry(), prov.models().getExistingFile(ctx.getId()), 0))
|
|
|
|
.simpleItem()
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static void register() {}
|
|
|
|
}
|