23 public const NETWORK_ID = ProtocolInfo::CONTAINER_SET_DATA_PACKET;
25 public const PROPERTY_FURNACE_SMELT_PROGRESS = 0;
26 public const PROPERTY_FURNACE_REMAINING_FUEL_TIME = 1;
27 public const PROPERTY_FURNACE_MAX_FUEL_TIME = 2;
28 public const PROPERTY_FURNACE_STORED_XP = 3;
29 public const PROPERTY_FURNACE_FUEL_AUX = 4;
31 public const PROPERTY_BREWING_STAND_BREW_TIME = 0;
32 public const PROPERTY_BREWING_STAND_FUEL_AMOUNT = 1;
33 public const PROPERTY_BREWING_STAND_FUEL_TOTAL = 2;
42 public static function create(
int $windowId,
int $property,
int $value) : self{
44 $result->windowId = $windowId;
45 $result->property = $property;
46 $result->value = $value;
51 $this->windowId = Byte::readUnsigned($in);
52 $this->
property = VarInt::readSignedInt($in);
53 $this->value = VarInt::readSignedInt($in);
57 Byte::writeUnsigned($out, $this->windowId);
58 VarInt::writeSignedInt($out, $this->property);
59 VarInt::writeSignedInt($out, $this->value);
63 return $handler->handleContainerSetData($this);