WIP: End Crystal render
This commit is contained in:
parent
05f189eadc
commit
cf2bdf541b
3 changed files with 61 additions and 12 deletions
|
@ -17,6 +17,7 @@ public class PedestalBlockEntity extends BlockEntity implements Inventory, Ticka
|
|||
private ItemStack activeItem = ItemStack.EMPTY;
|
||||
|
||||
private EternalRitual linkedRitual;
|
||||
private final int maxAge = 314;
|
||||
private int age;
|
||||
|
||||
public PedestalBlockEntity() {
|
||||
|
@ -38,6 +39,10 @@ public class PedestalBlockEntity extends BlockEntity implements Inventory, Ticka
|
|||
public int getAge() {
|
||||
return this.age;
|
||||
}
|
||||
|
||||
public int getMaxAge() {
|
||||
return this.maxAge;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
|
@ -123,7 +128,7 @@ public class PedestalBlockEntity extends BlockEntity implements Inventory, Ticka
|
|||
public void tick() {
|
||||
if (!isEmpty()) {
|
||||
this.age++;
|
||||
if (age > 314) {
|
||||
if (age > maxAge) {
|
||||
this.age = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue