mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 08:54:12 +00:00
Initial Commit
This commit is contained in:
1 parent
608de3ab70
commit
c2e61a2ef6
4 files changed
+42
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user