25 public const ID = AttributeValueType::BOOL;
27 public const OPERATION_OVERRIDE =
"override";
28 public const OPERATION_ALPHA_BLEND =
"alpha_blend";
29 public const OPERATION_AND =
"and";
30 public const OPERATION_NAND =
"nand";
31 public const OPERATION_OR =
"or";
32 public const OPERATION_NOR =
"nor";
33 public const OPERATION_XOR =
"xor";
34 public const OPERATION_XNOR =
"xnor";
36 public function __construct(
38 private string $operation,
41 public function getTypeId() :
int{
45 public function getValue() :
bool{
return $this->value; }
47 public function getOperation() :
string{
return $this->operation; }
49 public static function read(ByteBufferReader $in) :
self{
50 $value = CommonTypes::getBool($in);
51 $operation = CommonTypes::getString($in);
59 public function write(ByteBufferWriter $out) :
void{
60 CommonTypes::putBool($out, $this->value);
61 CommonTypes::putString($out, $this->operation);