forked from SlimeKnights/TinkersConstruct
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Kortako/1.7.10
Tinkers bows in Battlegear slots
- Loading branch information
Showing
8 changed files
with
697 additions
and
6 deletions.
There are no files selected for viewing
451 changes: 451 additions & 0 deletions
451
src/api/java/mods/battlegear2/api/core/InventoryPlayerBattle.java
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/api/java/mods/battlegear2/api/core/InventorySlotType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package mods.battlegear2.api.core; | ||
|
||
/** | ||
* Created by GotoLink on 24/04/2014. | ||
*/ | ||
public enum InventorySlotType { | ||
/** | ||
* The main inventory space (slots 0 to 99) | ||
*/ | ||
MAIN, | ||
/** | ||
* The armor inventory space (slots 100 to 149) | ||
*/ | ||
ARMOR, | ||
/** | ||
* The inventory space added by battlegear (slots 150 and above) | ||
*/ | ||
BATTLE | ||
} |
26 changes: 26 additions & 0 deletions
26
src/api/java/mods/battlegear2/api/core/UnhandledInventoryItemEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package mods.battlegear2.api.core; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraftforge.event.entity.player.PlayerEvent; | ||
|
||
/** | ||
* Created by GotoLink on 01/05/2014. | ||
* Event posted on {@link MinecraftForge.EVENT_BUS} from the player inventory {@link InventoryPlayerBattle#readFromNBT(NBTTagList)} | ||
* if the slot number is outside the expected boundaries | ||
*/ | ||
public class UnhandledInventoryItemEvent extends PlayerEvent { | ||
/** | ||
* The slot number read from NBT, that is outside the arrays limits | ||
*/ | ||
public final int inventorySlot; | ||
/** | ||
* The item read from the NBT, not null | ||
*/ | ||
public final ItemStack item; | ||
public UnhandledInventoryItemEvent(EntityPlayer player, int slot, ItemStack itemStack) { | ||
super(player); | ||
inventorySlot = slot; | ||
item = itemStack; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters