Guest User

Untitled

a guest
Feb 3rd, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public int x()
  2. {
  3. return xCoord;
  4. }
  5. public int y()
  6. {
  7. return yCoord;
  8. }
  9. public int z()
  10. {
  11. return zCoord;
  12. }
  13. public boolean isServer()
  14. {
  15. return !isClient();
  16. }
  17. public boolean isClient()
  18. {
  19. return getWorldObj().isRemote;
  20. }
  21. @Override
  22. public void readFromNBT(NBTTagCompound nbtTagCompound)
  23. {
  24. loadDataFromNBT(nbtTagCompound);
  25. }
  26. @Override
  27. public void writeToNBT(NBTTagCompound nbtTagCompound)
  28. {
  29. addDataToNBT(nbtTagCompound);
  30. }
  31. protected void addDataToNBT(NBTTagCompound nbtTagCompound)
  32. {
  33.  
  34. }
  35. protected void loadDataFromNBT(NBTTagCompound nbtTagCompound)
  36. {
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment