Guest User

Classe TE

a guest
Aug 24th, 2017
141
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.mod.androria.entity;
  2.  
  3. import com.mod.androria.Reference;
  4. import com.trcgames.dbSynchronizer.DatabaseGetter;
  5. import com.trcgames.dbSynchronizer.database.DBFolder;
  6. import com.trcgames.dbSynchronizer.database.Database;
  7.  
  8. import net.minecraft.tileentity.TileEntity;
  9.  
  10. public class TileEntityTrappe extends TileEntity
  11. {
  12. @Override
  13. public void updateEntity()
  14. {
  15. Database database = DatabaseGetter.getInstance(Reference.MOD_ID);
  16. DBFolder dossier = database.getPersistentFolder();
  17. DBFolder xpStock = dossier.getDBFolder("MarteauCooldown");
  18. if(xpStock.getInt(String.valueOf(this.xCoord)+String.valueOf(this.yCoord)+String.valueOf(this.zCoord)) == 0)
  19. {
  20. xpStock.setInt(String.valueOf(this.xCoord)+String.valueOf(this.yCoord)+String.valueOf(this.zCoord), 0);
  21. }
  22. else
  23. {
  24. xpStock.setInt(String.valueOf(this.xCoord)+String.valueOf(this.yCoord)+String.valueOf(this.zCoord), xpStock.getInt(String.valueOf(this.xCoord)+String.valueOf(this.yCoord)+String.valueOf(this.zCoord))-1);
  25. }
  26. }
  27. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×