mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Fix Snowman Watcher with bad method name
This commit is contained in:
parent
d84ec1fd2c
commit
ad6e67569d
@ -253,7 +253,7 @@ public class FlagType<Y> {
|
||||
|
||||
public static FlagType<Integer> SLIME_SIZE = new FlagType<Integer>(SlimeWatcher.class, 0, 0);
|
||||
|
||||
public static FlagType<Byte> SNOWMAN_HAT = new FlagType<Byte>(SnowmanWatcher.class, 0, (byte) 0);
|
||||
public static FlagType<Byte> SNOWMAN_DERP = new FlagType<Byte>(SnowmanWatcher.class, 0, (byte) 0);
|
||||
|
||||
public static FlagType<Byte> SPIDER_CLIMB = new FlagType<Byte>(SpiderWatcher.class, 0, (byte) 0);
|
||||
|
||||
|
@ -3,21 +3,17 @@ package me.libraryaddict.disguise.disguisetypes.watchers;
|
||||
import me.libraryaddict.disguise.disguisetypes.Disguise;
|
||||
import me.libraryaddict.disguise.disguisetypes.FlagType;
|
||||
|
||||
public class SnowmanWatcher extends InsentientWatcher
|
||||
{
|
||||
public SnowmanWatcher(Disguise disguise)
|
||||
{
|
||||
public class SnowmanWatcher extends InsentientWatcher {
|
||||
public SnowmanWatcher(Disguise disguise) {
|
||||
super(disguise);
|
||||
}
|
||||
|
||||
public void setHat(boolean hat)
|
||||
{
|
||||
setData(FlagType.SNOWMAN_HAT, (byte) (hat ? 0 : 16));
|
||||
sendData(FlagType.SNOWMAN_HAT);
|
||||
public void setDerp(boolean derp) {
|
||||
setData(FlagType.SNOWMAN_DERP, (byte) (derp ? 0 : 16));
|
||||
sendData(FlagType.SNOWMAN_DERP);
|
||||
}
|
||||
|
||||
public boolean isHat()
|
||||
{
|
||||
return getData(FlagType.SNOWMAN_HAT) == 0;
|
||||
public boolean isDerp() {
|
||||
return getData(FlagType.SNOWMAN_DERP) == 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user