trying to push new files
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package nmd.primal.forgecraft.items.parts;
|
||||
|
||||
import nmd.primal.forgecraft.items.BaseItem;
|
||||
|
||||
public class WeaponGuard extends BaseItem {
|
||||
|
||||
public WeaponGuard(String registryName) {
|
||||
super(registryName);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package nmd.primal.forgecraft.items.parts;
|
||||
|
||||
import nmd.primal.forgecraft.items.BaseItem;
|
||||
|
||||
public class WeaponHandle extends BaseItem {
|
||||
|
||||
public WeaponHandle(String registryName) {
|
||||
super(registryName);
|
||||
}
|
||||
}
|
||||
27
kfc/src/main/java/nmd/primal/forgecraft/util/SlotHelper.java
Normal file
27
kfc/src/main/java/nmd/primal/forgecraft/util/SlotHelper.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package nmd.primal.forgecraft.util;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface SlotHelper {
|
||||
|
||||
default void doFuelSlotManagement(ItemStack tileSlot, ItemStack playerSlot){
|
||||
|
||||
|
||||
|
||||
/***
|
||||
*
|
||||
* if fuelSlot is empty and playeritem is valid, set fuelSlot playerItem and clear player item
|
||||
*
|
||||
* if fuelSlot isn't empty and player item matches
|
||||
* if fuelSLot + playerItem <= 64 set Fuelslot to fuelSlot.count plus playerItem.count and clear playerItem
|
||||
* if fuelSlot + playeritem > 64
|
||||
* do 64 - fuelSlot
|
||||
* add that to fuel slot
|
||||
* decrment that from playerItem
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "forgecraft:items/boneguard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "forgecraft:items/bonehandle"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "forge:ore_shaped",
|
||||
"group": "forgecraft.bonehandle",
|
||||
"result": { "item": "forgecraft.bonehandle", "count": 2 },
|
||||
"pattern": [
|
||||
"T",
|
||||
"B"
|
||||
],
|
||||
"key": {
|
||||
"T": { "type": "forge:ore_dict", "ore": "toolWorkBlade" },
|
||||
"B": { "type": "forge:ore_dict", "ore": "bone" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "forge:ore_shaped",
|
||||
"group": "forgecraft.bonehandle",
|
||||
"result": { "item": "forgecraft.bonehandle", "count": 2 },
|
||||
"pattern": [
|
||||
"T",
|
||||
"B"
|
||||
],
|
||||
"key": {
|
||||
"T": { "type": "forge:ore_dict", "ore": "toolSaw" },
|
||||
"B": { "type": "forge:ore_dict", "ore": "bone" }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 282 B |
Binary file not shown.
|
After Width: | Height: | Size: 280 B |
Reference in New Issue
Block a user