PocketMine-MP
5.28.3 git-d5a1007c80fcee27feb2251cf5dcf1ad5a59a85c
Loading...
Searching...
No Matches
EntityFrostWalkerEvent.php
1
<?php
2
3
/*
4
*
5
* ____ _ _ __ __ _ __ __ ____
6
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
7
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
8
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
9
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
10
*
11
* This program is free software: you can redistribute it and/or modify
12
* it under the terms of the GNU Lesser General Public License as published by
13
* the Free Software Foundation, either version 3 of the License, or
14
* (at your option) any later version.
15
*
16
* @author PocketMine Team
17
* @link http://www.pocketmine.net/
18
*
19
*
20
*/
21
22
declare(strict_types=1);
23
24
namespace
pocketmine\event\entity
;
25
26
use
pocketmine\block\Block
;
27
use
pocketmine\block\Liquid
;
28
use
pocketmine\entity\Living
;
29
use
pocketmine\event\Cancellable
;
30
use pocketmine\event\CancellableTrait;
31
37
class
EntityFrostWalkerEvent
extends
EntityEvent
implements
Cancellable
{
38
use
CancellableTrait
;
39
40
public
function
__construct(
41
Living
$entity
,
42
private
int
$radius,
43
private
Liquid
$liquid,
44
private
Block
$targetBlock
45
){
46
$this->entity =
$entity
;
47
}
48
49
public
function
getRadius() :
int
{
50
return
$this->radius;
51
}
52
53
public
function
setRadius(
int
$radius) :
void
{
54
$this->radius = $radius;
55
}
56
60
public
function
getLiquid
() :
Liquid
{
61
return $this->liquid;
62
}
63
67
public
function
setLiquid
(
Liquid
$liquid) : void{
68
$this->liquid = $liquid;
69
}
70
74
public
function
getTargetBlock
() :
Block
{
75
return $this->targetBlock;
76
}
77
81
public
function
setTargetBlock
(
Block
$targetBlock) : void{
82
$this->targetBlock = $targetBlock;
83
}
84
}
pocketmine\block\Block
Definition
Block.php:62
pocketmine\block\Liquid
Definition
Liquid.php:39
pocketmine\entity\Living
Definition
Living.php:87
pocketmine\event\entity\EntityEvent
Definition
EntityEvent.php:35
pocketmine\event\entity\EntityEvent\$entity
Entity $entity
Definition
EntityEvent.php:37
pocketmine\event\entity\EntityFrostWalkerEvent
Definition
EntityFrostWalkerEvent.php:37
pocketmine\event\entity\EntityFrostWalkerEvent\getLiquid
getLiquid()
Definition
EntityFrostWalkerEvent.php:60
pocketmine\event\entity\EntityFrostWalkerEvent\setLiquid
setLiquid(Liquid $liquid)
Definition
EntityFrostWalkerEvent.php:67
pocketmine\event\entity\EntityFrostWalkerEvent\setTargetBlock
setTargetBlock(Block $targetBlock)
Definition
EntityFrostWalkerEvent.php:81
pocketmine\event\entity\EntityFrostWalkerEvent\getTargetBlock
getTargetBlock()
Definition
EntityFrostWalkerEvent.php:74
pocketmine\event\Cancellable
Definition
Cancellable.php:34
pocketmine\event\entity
Definition
EntityBlockChangeEvent.php:24
pocketmine\event\CancellableTrait
trait CancellableTrait
Definition
CancellableTrait.php:34
src
event
entity
EntityFrostWalkerEvent.php
Generated by
1.12.0