123456789101112131415161718192021222324252627282930313233343536 |
- package me.hammerle.supersnuvi.entity.components;
- import me.hammerle.supersnuvi.entity.Entity;
- public class Energy
- {
- public final static Energy NULL = new Energy();
-
- public void tick(Entity ent)
- {
- }
- public void addEnergy(float e)
- {
- }
-
- public final void addEnergyPercent(float percent)
- {
- addEnergy(percent * getMaxEnergy());
- }
-
- public float getMaxEnergy()
- {
- return 0.0f;
- }
-
- public float getEnergyPercent()
- {
- return getEnergy() / getMaxEnergy();
- }
-
- public float getEnergy()
- {
- return 0.0f;
- }
- }
|