Guest User

TileEntity

a guest
Apr 5th, 2016
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package dmz.icefeeling.ivi.tests;
  2.  
  3. import net.minecraft.entity.player.EntityPlayer;
  4. import net.minecraft.inventory.IInventory;
  5. import net.minecraft.item.ItemStack;
  6. import net.minecraft.tileentity.TileEntity;
  7. import net.minecraft.util.IChatComponent;
  8.  
  9. public class TileEntityObsidianAnvil extends TileEntity implements IInventory {
  10.    
  11.    
  12.     private ItemStack[] Slots = new ItemStack[1];
  13.     private String customName;
  14.  
  15.    
  16.    
  17.     @Override
  18.     public String getName() {
  19.         // TODO Auto-generated method stub
  20.         return null;
  21.     }
  22.  
  23.     @Override
  24.     public boolean hasCustomName() {
  25.         // TODO Auto-generated method stub
  26.         return false;
  27.     }
  28.  
  29.     @Override
  30.     public IChatComponent getDisplayName() {
  31.         // TODO Auto-generated method stub
  32.         return null;
  33.     }
  34.  
  35.     @Override
  36.     public int getSizeInventory() {
  37.         // TODO Auto-generated method stub
  38.         return this.Slots.length;
  39.     }
  40.  
  41.     @Override
  42.     public ItemStack getStackInSlot(int index) {
  43.         // TODO Auto-generated method stub
  44.         return this.Slots[index];
  45.     }
  46.  
  47.     @Override
  48.     public ItemStack decrStackSize(int index, int count) {
  49.         // TODO Auto-generated method stub
  50.         return null;
  51.     }
  52.  
  53.     @Override
  54.     public ItemStack removeStackFromSlot(int index) {
  55.         // TODO Auto-generated method stub
  56.         return null;
  57.     }
  58.  
  59.     @Override
  60.     public void setInventorySlotContents(int index, ItemStack stack) {
  61.         // TODO Auto-generated method stub
  62.        
  63.     }
  64.  
  65.     @Override
  66.     public int getInventoryStackLimit() {
  67.         // TODO Auto-generated method stub
  68.         return 0;
  69.     }
  70.  
  71.     @Override
  72.     public boolean isUseableByPlayer(EntityPlayer player) {
  73.         return this.worldObj.getTileEntity(this.getPos()) == this && player.getDistanceSq((double) this.pos.getX() + 0.5D, (double) this.pos.getY() + 0.5D, (double) this.pos.getZ() + 0.5D) <= 64.0D;
  74.     }
  75.  
  76.     @Override
  77.     public void openInventory(EntityPlayer player) {
  78.         // TODO Auto-generated method stub
  79.        
  80.     }
  81.  
  82.     @Override
  83.     public void closeInventory(EntityPlayer player) {
  84.         // TODO Auto-generated method stub
  85.        
  86.     }
  87.  
  88.     @Override
  89.     public boolean isItemValidForSlot(int index, ItemStack stack) {
  90.         // TODO Auto-generated method stub
  91.         return false;
  92.     }
  93.  
  94.     @Override
  95.     public int getField(int id) {
  96.         // TODO Auto-generated method stub
  97.         return 0;
  98.     }
  99.  
  100.     @Override
  101.     public void setField(int id, int value) {
  102.         // TODO Auto-generated method stub
  103.        
  104.     }
  105.  
  106.     @Override
  107.     public int getFieldCount() {
  108.         // TODO Auto-generated method stub
  109.         return 0;
  110.     }
  111.  
  112.     @Override
  113.     public void clear() {
  114.         // TODO Auto-generated method stub
  115.        
  116.     }      
  117.    
  118. }
RAW Paste Data