Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
608de3a
commit c2e61a2
Showing
4 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
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
10 changes: 10 additions & 0 deletions
10
src/main/java/tconstruct/api/IPlayerExtendedInventoryWrapper.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,10 @@ | ||
package tconstruct.api; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.inventory.IInventory; | ||
|
||
public interface IPlayerExtendedInventoryWrapper | ||
{ | ||
public IInventory getKnapsackInventory(EntityPlayer player); | ||
public IInventory getAccessoryInventory(EntityPlayer player); | ||
} |
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,13 @@ | ||
package tconstruct.api; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
|
||
public class TConstructAPI | ||
{ | ||
public static String PROP_NAME; | ||
|
||
public static IPlayerExtendedInventoryWrapper getInventoryWrapper(EntityPlayer player) | ||
{ | ||
return (IPlayerExtendedInventoryWrapper) player.getExtendedProperties(PROP_NAME); | ||
} | ||
} |
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