PocketMine-MP
5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
MapDecoration.php
1
<?php
2
3
/*
4
* This file is part of BedrockProtocol.
5
* Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6
*
7
* BedrockProtocol is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*/
12
13
declare(strict_types=1);
14
15
namespace
pocketmine\network\mcpe\protocol\types;
16
17
use
pocketmine\color\Color
;
18
19
class
MapDecoration
{
20
public
function
__construct(
21
private
int
$icon,
22
private
int
$rotation,
23
private
int
$xOffset,
24
private
int
$yOffset,
25
private
string
$label,
26
private
Color
$color
27
){}
28
29
public
function
getIcon() :
int
{
30
return
$this->icon;
31
}
32
33
public
function
getRotation() :
int
{
34
return
$this->rotation;
35
}
36
37
public
function
getXOffset() :
int
{
38
return
$this->xOffset;
39
}
40
41
public
function
getYOffset() :
int
{
42
return
$this->yOffset;
43
}
44
45
public
function
getLabel() :
string
{
46
return
$this->label;
47
}
48
49
public
function
getColor() :
Color
{
50
return
$this->color;
51
}
52
}
pocketmine\color\Color
Definition
Color.php:29
pocketmine\network\mcpe\protocol\types\MapDecoration
Definition
MapDecoration.php:19
vendor
pocketmine
bedrock-protocol
src
types
MapDecoration.php
Generated by
1.12.0