Shields
This commit is contained in:
parent
32027f948c
commit
4f3d9ddfca
3 changed files with 26 additions and 0 deletions
|
@ -10,6 +10,8 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||||
import reborncore.common.blocks.BlockMachineBase;
|
import reborncore.common.blocks.BlockMachineBase;
|
||||||
import reborncore.common.powerSystem.PoweredItem;
|
import reborncore.common.powerSystem.PoweredItem;
|
||||||
import reborncore.common.util.BucketHandler;
|
import reborncore.common.util.BucketHandler;
|
||||||
|
import reborncore.shields.api.Shield;
|
||||||
|
import reborncore.shields.api.ShieldRegistry;
|
||||||
import techreborn.Core;
|
import techreborn.Core;
|
||||||
import techreborn.blocks.BlockMachineFrame;
|
import techreborn.blocks.BlockMachineFrame;
|
||||||
import techreborn.events.OreUnifier;
|
import techreborn.events.OreUnifier;
|
||||||
|
@ -17,6 +19,7 @@ import techreborn.items.*;
|
||||||
import techreborn.items.armor.ItemLapotronPack;
|
import techreborn.items.armor.ItemLapotronPack;
|
||||||
import techreborn.items.armor.ItemLithiumBatpack;
|
import techreborn.items.armor.ItemLithiumBatpack;
|
||||||
import techreborn.items.tools.*;
|
import techreborn.items.tools.*;
|
||||||
|
import techreborn.shields.TechRebornShield;
|
||||||
|
|
||||||
public class ModItems {
|
public class ModItems {
|
||||||
|
|
||||||
|
@ -95,6 +98,8 @@ public class ModItems {
|
||||||
public static Item missingRecipe;
|
public static Item missingRecipe;
|
||||||
public static Item debug;
|
public static Item debug;
|
||||||
|
|
||||||
|
public static Shield trShield;
|
||||||
|
|
||||||
|
|
||||||
public static void init() throws InstantiationException, IllegalAccessException {
|
public static void init() throws InstantiationException, IllegalAccessException {
|
||||||
gems = new ItemGems();
|
gems = new ItemGems();
|
||||||
|
@ -335,6 +340,9 @@ public class ModItems {
|
||||||
|
|
||||||
MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
|
MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
|
||||||
|
|
||||||
|
trShield = new TechRebornShield("techreborn");
|
||||||
|
|
||||||
|
ShieldRegistry.registerShield(trShield);
|
||||||
|
|
||||||
Core.logHelper.info("TechReborns Items Loaded");
|
Core.logHelper.info("TechReborns Items Loaded");
|
||||||
|
|
||||||
|
|
18
src/main/java/techreborn/shields/TechRebornShield.java
Normal file
18
src/main/java/techreborn/shields/TechRebornShield.java
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
package techreborn.shields;
|
||||||
|
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import reborncore.shields.api.Shield;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by Mark on 21/03/2016.
|
||||||
|
*/
|
||||||
|
public class TechRebornShield extends Shield {
|
||||||
|
public TechRebornShield(String name) {
|
||||||
|
super(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ResourceLocation getShieldTexture() {
|
||||||
|
return new ResourceLocation("techreborn:textures/shields/trShield.png");
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue