Some more cleanup

This commit is contained in:
Sollace 2020-05-28 18:30:23 +02:00
parent 2f6ffe43a9
commit d712554639
4 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@ package com.minelittlepony.unicopia;
import java.util.stream.Collectors;
import com.minelittlepony.unicopia.item.UItems;
import com.minelittlepony.unicopia.util.collection.Weighted;
import com.minelittlepony.unicopia.util.Weighted;
import java.util.Arrays;
import java.util.HashSet;

View file

@ -8,7 +8,7 @@ public interface Suppressable {
/**
* Returns true if this spell is currently still suppressed.
*/
boolean getSuppressed();
boolean isSuppressed();
/**
* Returns true if this spell can be suppressed by the given other spell and caster.

View file

@ -90,7 +90,7 @@ public class DisguiseSpell extends AbstractSpell implements AttachableSpell, Sup
}
@Override
public boolean getSuppressed() {
public boolean isSuppressed() {
return suppressionCounter > 0;
}
@ -330,7 +330,7 @@ public class DisguiseSpell extends AbstractSpell implements AttachableSpell, Sup
public boolean update(Caster<?> source, boolean tick) {
LivingEntity owner = source.getOwner();
if (getSuppressed()) {
if (isSuppressed()) {
suppressionCounter--;
owner.setInvisible(false);
@ -446,7 +446,7 @@ public class DisguiseSpell extends AbstractSpell implements AttachableSpell, Sup
@Override
public void render(Caster<?> source) {
if (getSuppressed()) {
if (isSuppressed()) {
source.spawnParticles(MagicParticleEffect.UNICORN, 5);
source.spawnParticles(UParticles.CHANGELING_MAGIC, 5);
} else if (source.getWorld().random.nextInt(30) == 0) {
@ -516,7 +516,7 @@ public class DisguiseSpell extends AbstractSpell implements AttachableSpell, Sup
@Override
public float getTargetEyeHeight(Pony player) {
if (entity != null && !getSuppressed()) {
if (entity != null && !isSuppressed()) {
if (entity instanceof FallingBlockEntity) {
return 0.5F;
}
@ -527,7 +527,7 @@ public class DisguiseSpell extends AbstractSpell implements AttachableSpell, Sup
@Override
public float getTargetBodyHeight(Pony player) {
if (entity != null && !getSuppressed()) {
if (entity != null && !isSuppressed()) {
if (entity instanceof FallingBlockEntity) {
return 0.9F;
}

View file

@ -1,4 +1,4 @@
package com.minelittlepony.unicopia.util.collection;
package com.minelittlepony.unicopia.util;
import java.util.List;
import java.util.Optional;