Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
Hopper Class Reference
Inheritance diagram for Hopper:
[legend]
Collaboration diagram for Hopper:
[legend]

Public Member Functions

 __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 ()
 
- Public Member Functions inherited from Spawnable
 spawnTo (Player $player)
 
 __construct (Level $level, CompoundTag $nbt)
 
 spawnToAll ()
 
 getSpawnCompound ()
 
 updateCompoundTag (CompoundTag $nbt, Player $player)
 
- Public Member Functions inherited from Tile
 getSaveId ()
 
 __construct (Level $level, CompoundTag $nbt)
 
 getId ()
 
 saveNBT ()
 
 getBlock ()
 
 onUpdate ()
 
 scheduleUpdate ()
 
 close ()
 
 getName ()
 
- Public Member Functions inherited from Position
 __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)
 
- Public Member Functions inherited from Vector3
 __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 ()
 

Protected Member Functions

 getSlotIndex ($index)
 
- Protected Member Functions inherited from Spawnable
 onChanged ()
 

Protected Attributes

 $inventory
 
 $isLocked = false
 
 $isPowered = false
 
- Protected Attributes inherited from Tile
 $lastUpdate
 
 $server
 
 $timings
 

Additional Inherited Members

- Static Public Member Functions inherited from Tile
static init ()
 
static createTile ($type, Level $level, CompoundTag $nbt,...$args)
 
static registerTile ($className)
 
- Static Public Member Functions inherited from Position
static fromObject (Vector3 $pos, Level $level=null)
 
- Static Public Member Functions inherited from Vector3
static getOppositeSide (int $side)
 
static createRandomDirection (Random $random)
 
- Data Fields inherited from Tile
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
 
- Data Fields inherited from Position
 $level = null
 
- Data Fields inherited from Vector3
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 Public Attributes inherited from Tile
static $tileCount = 1
 

Member Function Documentation

getInventory ( )
Returns
HopperInventory

Implements InventoryHolder.

getItem (   $index)

This method should not be used by plugins, use the Inventory

Parameters
int$index
Returns
Item

Implements Container.

getName ( )
Returns
string

Implements Nameable.

getSize ( )
Returns
int

Implements Container.

getSlotIndex (   $index)
protected
Parameters
$index
Returns
int
hasName ( )
Returns
bool

Implements Nameable.

setItem (   $index,
Item  $item 
)

This method should not be used by plugins, use the Inventory

Parameters
int$index
Item$item
Returns
bool

Implements Container.

setName (   $str)
Parameters
void$str

Implements Nameable.


The documentation for this class was generated from the following file: