Guest User

Untitled

a guest
Sep 18th, 2015
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.mightydanp.eot.inventory;
  2.  
  3. import com.mightydanp.eot.block.BlockEssenceOre;
  4.  
  5. import net.minecraft.tileentity.TileEntity;
  6.  
  7. public class TileEntityEssenceOre extends TileEntity {
  8.  
  9. public boolean isItDaytime;
  10.  
  11. public void updateEntity() {
  12. boolean flag = isItDaytime == false;
  13. boolean flag1 = false;
  14.  
  15.  
  16. if (this.worldObj.isRemote) {
  17. if (this.worldObj.isDaytime()){
  18. flag1 = false;
  19. BlockEssenceOre.updateBlockTexture(this.isItDaytime == false, this.worldObj, this.xCoord, this.yCoord, this.zCoord);
  20. }
  21. }
  22.  
  23. if (this.worldObj.isRemote) {
  24. if (!this.worldObj.isDaytime()){
  25. flag1 = true;
  26. BlockEssenceOre.updateBlockTexture(this.isItDaytime == true, this.worldObj, this.xCoord, this.yCoord, this.zCoord);
  27. }
  28. }
  29. }
  30. }
RAW Paste Data