Add witchwatcher (isAggressive and setAggressive)
This commit is contained in:
		| @@ -0,0 +1,20 @@ | ||||
| package me.libraryaddict.disguise.disguisetypes.watchers; | ||||
|  | ||||
| import me.libraryaddict.disguise.disguisetypes.Disguise; | ||||
|  | ||||
| public class WitchWatcher extends LivingWatcher { | ||||
|  | ||||
|     public WitchWatcher(Disguise disguise) { | ||||
|         super(disguise); | ||||
|     } | ||||
|  | ||||
|     public void setAggressive(boolean isTrue) { | ||||
|         setValue(21, (byte) (isTrue ? 1 : 0)); | ||||
|         sendData(21); | ||||
|     } | ||||
|  | ||||
|     public boolean isAggressive() { | ||||
|         return (Byte) getValue(21, (byte) 0) == 1; | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user