Add receptacles
This commit is contained in:
@@ -4,8 +4,6 @@ import electroblob.wizardry.Wizardry;
|
||||
import electroblob.wizardry.block.*;
|
||||
import electroblob.wizardry.tileentity.*;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockPlanks;
|
||||
import net.minecraft.block.SoundType;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.event.RegistryEvent;
|
||||
@@ -77,6 +75,8 @@ public final class WizardryBlocks {
|
||||
public static final Block acacia_lectern = placeholder();
|
||||
public static final Block dark_oak_lectern = placeholder();
|
||||
|
||||
public static final Block receptacle = placeholder();
|
||||
|
||||
/**
|
||||
* Sets both the registry and unlocalised names of the given block, then registers it with the given registry. Use
|
||||
* this instead of {@link Block#setRegistryName(String)} and {@link Block#setTranslationKey(String)} during
|
||||
@@ -134,6 +134,8 @@ public final class WizardryBlocks {
|
||||
registerBlock(registry, "acacia_lectern", new BlockLectern());
|
||||
registerBlock(registry, "dark_oak_lectern", new BlockLectern());
|
||||
|
||||
registerBlock(registry, "receptacle", new BlockReceptacle());
|
||||
|
||||
}
|
||||
|
||||
/** Called from the preInit method in the main mod class to register all the tile entities. */
|
||||
@@ -148,5 +150,6 @@ public final class WizardryBlocks {
|
||||
GameRegistry.registerTileEntity(TileEntityShrineCore.class, new ResourceLocation(Wizardry.MODID, "shrine_core"));
|
||||
GameRegistry.registerTileEntity(TileEntityBookshelf.class, new ResourceLocation(Wizardry.MODID, "bookshelf"));
|
||||
GameRegistry.registerTileEntity(TileEntityLectern.class, new ResourceLocation(Wizardry.MODID, "lectern"));
|
||||
GameRegistry.registerTileEntity(TileEntityReceptacle.class, new ResourceLocation(Wizardry.MODID, "receptacle"));
|
||||
}
|
||||
}
|
||||
@@ -416,6 +416,8 @@ public final class WizardryItems {
|
||||
registerItemBlock(registry, WizardryBlocks.acacia_lectern);
|
||||
registerItemBlock(registry, WizardryBlocks.dark_oak_lectern);
|
||||
|
||||
registerItemBlock(registry, WizardryBlocks.receptacle);
|
||||
|
||||
// Items
|
||||
|
||||
registerItem(registry, "magic_crystal", new ItemCrystal());
|
||||
|
||||
@@ -29,6 +29,7 @@ public final class WizardrySounds {
|
||||
public static final SoundEvent BLOCK_PEDESTAL_ACTIVATE = createSound("block.pedestal.activate");
|
||||
public static final SoundEvent BLOCK_PEDESTAL_CONQUER = createSound("block.pedestal.conquer");
|
||||
public static final SoundEvent BLOCK_LECTERN_LOCATE_SPELL = createSound("block.lectern.locate_spell");
|
||||
public static final SoundEvent BLOCK_RECEPTACLE_IGNITE = createSound("block.receptacle.ignite");
|
||||
|
||||
public static final SoundEvent ITEM_WAND_SWITCH_SPELL = createSound("item.wand.switch_spell");
|
||||
public static final SoundEvent ITEM_WAND_LEVELUP = createSound("item.wand.levelup");
|
||||
@@ -156,6 +157,7 @@ public final class WizardrySounds {
|
||||
event.getRegistry().register(BLOCK_PEDESTAL_ACTIVATE);
|
||||
event.getRegistry().register(BLOCK_PEDESTAL_CONQUER);
|
||||
event.getRegistry().register(BLOCK_LECTERN_LOCATE_SPELL);
|
||||
event.getRegistry().register(BLOCK_RECEPTACLE_IGNITE);
|
||||
|
||||
event.getRegistry().register(ITEM_WAND_SWITCH_SPELL);
|
||||
event.getRegistry().register(ITEM_WAND_LEVELUP);
|
||||
|
||||
Reference in New Issue
Block a user