mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-16 15:38:14 +01:00
Sort them
This commit is contained in:
parent
fddbabf931
commit
4d42dca712
@ -13,21 +13,21 @@ public class FallingBlockWatcher extends FlagWatcher {
|
||||
super(disguise);
|
||||
}
|
||||
|
||||
public void setBlock(ItemStack block) {
|
||||
this.block = block;
|
||||
if (getDisguise().getEntity() != null && getDisguise().getWatcher() == this) {
|
||||
DisguiseUtilities.refreshTrackers(getDisguise().getEntity());
|
||||
}
|
||||
}
|
||||
|
||||
public ItemStack getBlock() {
|
||||
return block;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FallingBlockWatcher clone(Disguise disguise) {
|
||||
FallingBlockWatcher watcher = (FallingBlockWatcher) super.clone(disguise);
|
||||
watcher.setBlock(getBlock());
|
||||
return watcher;
|
||||
}
|
||||
|
||||
public ItemStack getBlock() {
|
||||
return block;
|
||||
}
|
||||
|
||||
public void setBlock(ItemStack block) {
|
||||
this.block = block;
|
||||
if (getDisguise().getEntity() != null && getDisguise().getWatcher() == this) {
|
||||
DisguiseUtilities.refreshTrackers(getDisguise().getEntity());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,10 +12,6 @@ public class PaintingWatcher extends FlagWatcher {
|
||||
super(disguise);
|
||||
}
|
||||
|
||||
public Art getPainting() {
|
||||
return painting;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PaintingWatcher clone(Disguise disguise) {
|
||||
PaintingWatcher watcher = (PaintingWatcher) super.clone(disguise);
|
||||
@ -23,6 +19,10 @@ public class PaintingWatcher extends FlagWatcher {
|
||||
return watcher;
|
||||
}
|
||||
|
||||
public Art getPainting() {
|
||||
return painting;
|
||||
}
|
||||
|
||||
public void setPainting(Art newPainting) {
|
||||
this.painting = newPainting;
|
||||
if (getDisguise().getEntity() != null && getDisguise().getWatcher() == this) {
|
||||
@ -30,4 +30,8 @@ public class PaintingWatcher extends FlagWatcher {
|
||||
}
|
||||
}
|
||||
|
||||
public void setPainting(int paintingNo) {
|
||||
painting = Art.values()[paintingNo % Art.values().length];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -11,10 +11,6 @@ public class SplashPotionWatcher extends FlagWatcher {
|
||||
super(disguise);
|
||||
}
|
||||
|
||||
public int getPotionId() {
|
||||
return potionId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SplashPotionWatcher clone(Disguise disguise) {
|
||||
SplashPotionWatcher watcher = (SplashPotionWatcher) super.clone(disguise);
|
||||
@ -22,6 +18,10 @@ public class SplashPotionWatcher extends FlagWatcher {
|
||||
return watcher;
|
||||
}
|
||||
|
||||
public int getPotionId() {
|
||||
return potionId;
|
||||
}
|
||||
|
||||
public void setPotionId(int newPotionId) {
|
||||
this.potionId = newPotionId;
|
||||
if (getDisguise().getEntity() != null && getDisguise().getWatcher() == this) {
|
||||
|
Loading…
Reference in New Issue
Block a user