mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
1 parent
80eb12e59d
commit
ca2ed1ff7a
139 files changed
+1034
-4067
No files matched your search
@@ -87,7 +87,7 @@ public class CustomPlantTypeTest
|
||||
|
||||
public static class CustomPlantBlock extends FlowerBlock implements IPlantable
|
||||
{
|
||||
public static PlantType pt = PlantType.create("CustomPlantType");
|
||||
public static PlantType pt = PlantType.get("CustomPlantType");
|
||||
|
||||
public CustomPlantBlock()
|
||||
{
|
||||
|
||||
@@ -41,8 +41,8 @@ public class FlowerPotTest
|
||||
static final String MODID = "flower_pot_test";
|
||||
static final String BLOCK_ID = "test_flower_pot";
|
||||
|
||||
private static final DeferredRegister<Block> BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, MODID);
|
||||
private static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, MODID);
|
||||
private static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
|
||||
private static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
|
||||
|
||||
public static final RegistryObject<FlowerPotBlock> EMPTY_FLOWER_POT = BLOCKS.register(BLOCK_ID, () -> new FlowerPotBlock(null, Blocks.AIR.delegate, Block.Properties.from(Blocks.FLOWER_POT)));
|
||||
public static final RegistryObject<FlowerPotBlock> OAK_FLOWER_POT = BLOCKS.<FlowerPotBlock>register(
|
||||
|
||||
Reference in new issue
Block a user