NaturesAura/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAncientLeaves.java

34 lines
974 B
Java
Raw Normal View History

2018-10-13 23:46:30 +02:00
package de.ellpeck.naturesaura.blocks.tiles;
2018-10-14 14:27:18 +02:00
import de.ellpeck.naturesaura.aura.FiniteAuraContainer;
import de.ellpeck.naturesaura.aura.IAuraContainer;
import de.ellpeck.naturesaura.aura.IAuraContainerProvider;
import net.minecraft.nbt.NBTTagCompound;
public class TileEntityAncientLeaves extends TileEntityImpl implements IAuraContainerProvider {
private final FiniteAuraContainer container = new FiniteAuraContainer(50) {
@Override
public int getAuraColor() {
return 0xc46df9;
}
};
@Override
public IAuraContainer container() {
return this.container;
}
@Override
public void writeNBT(NBTTagCompound compound, boolean syncing) {
super.writeNBT(compound, syncing);
this.container.writeNBT(compound);
}
@Override
public void readNBT(NBTTagCompound compound, boolean syncing) {
super.readNBT(compound, syncing);
this.container.readNBT(compound);
}
2018-10-13 23:46:30 +02:00
}