Advertisement
Guest User

Untitled

a guest
Sep 11th, 2015
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  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 void updateEntity() {
  10. boolean flag1 = false;
  11.  
  12. if (!this.worldObj.isRemote) {
  13. if(this.worldObj.isDaytime()){
  14. flag1 = true;
  15. BlockEssenceOre.updateBlockState(this.worldObj.isDaytime(), this.worldObj, this.xCoord, this.yCoord, this.zCoord);
  16. }else{
  17. flag1 = false;
  18. BlockEssenceOre.updateBlockState(!this.worldObj.isDaytime(), this.worldObj, this.xCoord, this.yCoord, this.zCoord);
  19. }
  20. }
  21.  
  22. if (flag1) {
  23. this.markDirty();
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement