Run formatter
This commit is contained in:
parent
61c44a831b
commit
08258fd6ef
606 changed files with 13464 additions and 22975 deletions
|
@ -4,38 +4,32 @@ import WayofTime.bloodmagic.api.Constants;
|
|||
import WayofTime.bloodmagic.tile.base.TileTicking;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class TilePhantomBlock extends TileTicking
|
||||
{
|
||||
public class TilePhantomBlock extends TileTicking {
|
||||
private int ticksRemaining = 10;
|
||||
|
||||
public TilePhantomBlock() {
|
||||
}
|
||||
|
||||
public TilePhantomBlock(int ticksRemaining)
|
||||
{
|
||||
public TilePhantomBlock(int ticksRemaining) {
|
||||
this.ticksRemaining = ticksRemaining;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(NBTTagCompound tagCompound)
|
||||
{
|
||||
public void deserialize(NBTTagCompound tagCompound) {
|
||||
this.ticksRemaining = tagCompound.getInteger(Constants.NBT.TICKS_REMAINING);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTTagCompound serialize(NBTTagCompound tagCompound)
|
||||
{
|
||||
public NBTTagCompound serialize(NBTTagCompound tagCompound) {
|
||||
tagCompound.setInteger(Constants.NBT.TICKS_REMAINING, ticksRemaining);
|
||||
return tagCompound;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpdate()
|
||||
{
|
||||
public void onUpdate() {
|
||||
ticksRemaining--;
|
||||
|
||||
if (ticksRemaining <= 0)
|
||||
{
|
||||
if (ticksRemaining <= 0) {
|
||||
getWorld().setBlockToAir(getPos());
|
||||
getWorld().removeTileEntity(getPos());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue