|
|
| __construct (Level $level, CompoundTag $nbt) |
| |
|
| close () |
| |
|
| activate () |
| |
|
| deactivate () |
| |
|
| canUpdate () |
| |
|
| resetCooldownTicks () |
| |
|
| onUpdate () |
| |
| | getInventory () |
| |
| | getSize () |
| |
| | getItem ($index) |
| |
| | setItem ($index, Item $item) |
| |
|
| saveNBT () |
| |
| | getName () |
| |
| | hasName () |
| |
| | setName ($str) |
| |
|
| hasLock () |
| |
|
| setLock (string $itemName="") |
| |
|
| checkLock (string $key) |
| |
|
| getSpawnCompound () |
| |
|
| spawnTo (Player $player) |
| |
|
| __construct (Level $level, CompoundTag $nbt) |
| |
|
| spawnToAll () |
| |
| | getSpawnCompound () |
| |
| | updateCompoundTag (CompoundTag $nbt, Player $player) |
| |
| | getSaveId () |
| |
|
| __construct (Level $level, CompoundTag $nbt) |
| |
|
| getId () |
| |
|
| saveNBT () |
| |
| | getBlock () |
| |
|
| onUpdate () |
| |
|
| scheduleUpdate () |
| |
|
| close () |
| |
|
| getName () |
| |
| | __construct ($x=0, $y=0, $z=0, Level $level=null) |
| |
|
| add ($x, $y=0, $z=0) |
| |
| | getLevel () |
| |
| | setLevel (Level $level=null) |
| |
| | isValid () |
| |
| | getSide ($side, $step=1) |
| |
|
| __toString () |
| |
| | setComponents ($x, $y, $z) |
| |
|
| fromObjectAdd (Vector3 $pos, $x, $y, $z) |
| |
|
| __construct ($x=0, $y=0, $z=0) |
| |
|
| getX () |
| |
|
| getY () |
| |
|
| getZ () |
| |
|
| getFloorX () |
| |
|
| getFloorY () |
| |
|
| getFloorZ () |
| |
|
| getRight () |
| |
|
| getUp () |
| |
|
| getForward () |
| |
|
| getSouth () |
| |
|
| getWest () |
| |
| | add ($x, $y=0, $z=0) |
| |
| | subtract ($x=0, $y=0, $z=0) |
| |
|
| multiply ($number) |
| |
|
| divide ($number) |
| |
|
| ceil () |
| |
|
| floor () |
| |
|
| round () |
| |
|
| abs () |
| |
|
| getSide ($side, $step=1) |
| |
|
| distance (Vector3 $pos) |
| |
|
| distanceSquared (Vector3 $pos) |
| |
|
| maxPlainDistance ($x=0, $z=0) |
| |
|
| length () |
| |
|
| lengthSquared () |
| |
| | normalize () |
| |
|
| dot (Vector3 $v) |
| |
|
| cross (Vector3 $v) |
| |
|
| equals (Vector3 $v) |
| |
| | getIntermediateWithXValue (Vector3 $v, $x) |
| |
| | getIntermediateWithYValue (Vector3 $v, $y) |
| |
| | getIntermediateWithZValue (Vector3 $v, $z) |
| |
| | setComponents ($x, $y, $z) |
| |
| | fromObjectAdd (Vector3 $pos, $x, $y, $z) |
| |
|
| __toString () |
| |
|
|
| $inventory |
| |
|
| $isLocked = false |
| |
|
| $isPowered = false |
| |
|
| $lastUpdate |
| |
|
| $server |
| |
|
| $timings |
| |
|
|
static | init () |
| |
| static | createTile ($type, Level $level, CompoundTag $nbt,...$args) |
| |
| static | registerTile ($className) |
| |
|
static | fromObject (Vector3 $pos, Level $level=null) |
| |
| static | getOppositeSide (int $side) |
| |
|
static | createRandomDirection (Random $random) |
| |
|
const | BREWING_STAND = "BrewingStand" |
| |
|
const | CAULDRON = "Cauldron" |
| |
|
const | CHEST = "Chest" |
| |
|
const | DISPENSER = "Dispenser" |
| |
|
const | DAY_LIGHT_DETECTOR = "DLDetector" |
| |
|
const | DROPPER = "Dropper" |
| |
|
const | ENCHANT_TABLE = "EnchantTable" |
| |
|
const | ENDER_CHEST = "EnderChest" |
| |
|
const | FLOWER_POT = "FlowerPot" |
| |
|
const | FURNACE = "Furnace" |
| |
|
const | HOPPER = "Hopper" |
| |
|
const | ITEM_FRAME = "ItemFrame" |
| |
|
const | MOB_SPAWNER = "MobSpawner" |
| |
|
const | SIGN = "Sign" |
| |
|
const | SKULL = "Skull" |
| |
|
| $chunk |
| |
|
| $name |
| |
|
| $id |
| |
|
| $attach |
| |
|
| $metadata |
| |
|
| $closed = false |
| |
|
| $namedtag |
| |
|
| $tickTimer |
| |
|
| $level = null |
| |
|
const | SIDE_DOWN = 0 |
| |
|
const | SIDE_UP = 1 |
| |
|
const | SIDE_NORTH = 2 |
| |
|
const | SIDE_SOUTH = 3 |
| |
|
const | SIDE_WEST = 4 |
| |
|
const | SIDE_EAST = 5 |
| |
|
| $x |
| |
|
| $y |
| |
|
| $z |
| |
|
static | $tileCount = 1 |
| |
This method should not be used by plugins, use the Inventory
- Parameters
-
- Returns
- Item
Implements Container.
| setItem |
( |
|
$index, |
|
|
Item |
$item |
|
) |
| |
This method should not be used by plugins, use the Inventory
- Parameters
-
- Returns
- bool
Implements Container.
The documentation for this class was generated from the following file:
- src/pocketmine/tile/Hopper.php