Guest User

Classe Tile Entity

a guest
Aug 3rd, 2017
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.lavapower.harmonia.common.entity;
  2.  
  3. import net.minecraft.nbt.NBTTagCompound;
  4. import net.minecraft.tileentity.TileEntity;
  5.  
  6. public class TileEntityStatue extends TileEntity
  7. {
  8. private String pseudo;
  9. private int direction;
  10.  
  11. @Override
  12. public void readFromNBT(NBTTagCompound compound)
  13. {
  14. super.readFromNBT(compound);
  15. this.pseudo=compound.getString("Pseudo");
  16. this.direction=compound.getInteger("Direction");
  17. }
  18.  
  19. @Override
  20. public void writeToNBT(NBTTagCompound compound)
  21. {
  22. super.writeToNBT(compound);
  23. compound.setString("Pseudo",pseudo);
  24. compound.setInteger("Direction",direction);
  25. }
  26.  
  27. public String getPseudo()
  28. {
  29. return pseudo;
  30. }
  31.  
  32. public void setPseudo(String pseudos)
  33. {
  34. pseudo = pseudos;
  35. }
  36.  
  37. public int getDirection()
  38. {
  39. return direction;
  40. }
  41.  
  42. public void setDirection(int pseudos)
  43. {
  44. direction = pseudos;
  45. }
  46. }
RAW Paste Data