EnchantOption
Table of Contents
-
$cost
: int
-
$equipActivatedEnchantments
: array<string|int, mixed>
-
$heldActivatedEnchantments
: array<string|int, mixed>
-
$name
: string
-
$optionId
: int
-
$selfActivatedEnchantments
: array<string|int, mixed>
-
$slotFlags
: int
-
__construct()
: mixed
-
getCost()
: int
-
getEquipActivatedEnchantments()
: array<string|int, Enchant>
-
getHeldActivatedEnchantments()
: array<string|int, Enchant>
-
getName()
: string
-
getOptionId()
: int
-
getSelfActivatedEnchantments()
: array<string|int, Enchant>
-
getSlotFlags()
: int
-
read()
: self
-
write()
: void
-
readEnchantList()
: array<string|int, Enchant>
-
writeEnchantList()
: void
$cost
private
int
$cost
$equipActivatedEnchantments
private
array<string|int, mixed>
$equipActivatedEnchantments
$heldActivatedEnchantments
private
array<string|int, mixed>
$heldActivatedEnchantments
$name
private
string
$name
$optionId
private
int
$optionId
$selfActivatedEnchantments
private
array<string|int, mixed>
$selfActivatedEnchantments
$slotFlags
private
int
$slotFlags
__construct()
public
__construct(int $cost, int $slotFlags, array<string|int, Enchant> $equipActivatedEnchantments, array<string|int, Enchant> $heldActivatedEnchantments, array<string|int, Enchant> $selfActivatedEnchantments, string $name, int $optionId) : mixed
Parameters
-
$cost
: int
-
-
$slotFlags
: int
-
-
$equipActivatedEnchantments
: array<string|int, Enchant>
-
-
$heldActivatedEnchantments
: array<string|int, Enchant>
-
-
$selfActivatedEnchantments
: array<string|int, Enchant>
-
-
$name
: string
-
-
$optionId
: int
-
Return values
mixed
—
getCost()
public
getCost() : int
Return values
int
—
getEquipActivatedEnchantments()
public
getEquipActivatedEnchantments() : array<string|int, Enchant>
Return values
array<string|int, Enchant>
—
getHeldActivatedEnchantments()
public
getHeldActivatedEnchantments() : array<string|int, Enchant>
Return values
array<string|int, Enchant>
—
getName()
public
getName() : string
Return values
string
—
getOptionId()
public
getOptionId() : int
Return values
int
—
getSelfActivatedEnchantments()
public
getSelfActivatedEnchantments() : array<string|int, Enchant>
Return values
array<string|int, Enchant>
—
getSlotFlags()
public
getSlotFlags() : int
Return values
int
—
read()
public
static read(PacketSerializer $in) : self
Parameters
-
$in
: PacketSerializer
-
Return values
self
—
write()
public
write(PacketSerializer $out) : void
Parameters
-
$out
: PacketSerializer
-
Return values
void
—
readEnchantList()
private
static readEnchantList(PacketSerializer $in) : array<string|int, Enchant>
Parameters
-
$in
: PacketSerializer
-
Return values
array<string|int, Enchant>
—
writeEnchantList()
private
static writeEnchantList(PacketSerializer $out, array<string|int, Enchant> $list) : void
Parameters
-
$out
: PacketSerializer
-
-
$list
: array<string|int, Enchant>
-
Return values
void
—