|
| linkHookToPlayer (FishingHook $entity) |
|
| unlinkHookFromPlayer () |
|
| isFishing () |
|
| getFishingHook () |
|
| setFishingHook (FishingHook $entity=null) |
|
| getDeviceModel () |
|
| getDeviceOS () |
|
| getItemInHand () |
|
| getLeaveMessage () |
|
| getClientId () |
|
| getClientSecret () |
|
| isBanned () |
|
| setBanned ($value) |
|
| isWhitelisted () |
|
| setWhitelisted ($value) |
|
| getPlayer () |
|
| getFirstPlayed () |
|
| getLastPlayed () |
|
| hasPlayedBefore () |
|
| setAllowFlight ($value) |
|
| getAllowFlight () |
|
| setFlying (bool $value) |
|
| isFlying () |
|
| setAutoJump ($value) |
|
| hasAutoJump () |
|
| allowMovementCheats () |
|
| setAllowMovementCheats (bool $value=false) |
|
| allowInstaBreak () |
|
| setAllowInstaBreak (bool $value=false) |
|
| spawnTo (Player $player) |
|
| getServer () |
|
| getRemoveFormat () |
|
| setRemoveFormat ($remove=true) |
|
| canSee (Player $player) |
|
| hidePlayer (Player $player) |
|
| showPlayer (Player $player) |
|
| canCollideWith (Entity $entity) |
|
| resetFallDistance () |
|
| getViewDistance () |
|
| setViewDistance (int $distance) |
|
| isOnline () |
|
| isOp () |
|
| setOp ($value) |
|
| isPermissionSet ($name) |
|
| hasPermission ($name) |
|
| addAttachment (Plugin $plugin, $name=null, $value=null) |
|
| removeAttachment (PermissionAttachment $attachment) |
|
| recalculatePermissions () |
|
| getEffectivePermissions () |
|
| sendCommandData () |
|
| __construct (SourceInterface $interface, $clientID, $ip, $port) |
|
| removeAchievement ($achievementId) |
|
| hasAchievement ($achievementId) |
|
| isConnected () |
|
| getDisplayName () |
|
| setDisplayName ($name) |
|
| setSkin ($str, $skinId) |
|
| getAddress () |
|
| getPort () |
|
| getNextPosition () |
|
| isSleeping () |
|
| getInAirTicks () |
|
| getSpawn () |
|
| hasValidSpawnPosition () |
|
| sendChunk ($x, $z, $payload) |
|
| batchDataPacket (DataPacket $packet) |
|
| dataPacket (DataPacket $packet, $needACK=false) |
|
| directDataPacket (DataPacket $packet, $needACK=false) |
|
| sleepOn (Vector3 $pos) |
|
| setSpawn (Vector3 $pos) |
|
| stopSleep () |
|
| awardAchievement ($achievementId) |
|
| getGamemode () |
|
| setGamemode (int $gm, bool $client=false) |
|
| sendGamemode () |
|
| sendSettings () |
|
| isSurvival () |
|
| isCreative () |
|
| isSpectator () |
|
| isAdventure () |
|
| isFireProof () |
|
| getDrops () |
|
| setDataProperty ($id, $type, $value) |
|
| setMotion (Vector3 $mot) |
|
| setMoving ($moving) |
|
| isMoving () |
|
| sendAttributes (bool $sendAll=false) |
|
| onUpdate ($currentTick) |
|
| checkNetwork () |
|
| canInteract (Vector3 $pos, $maxDistance, $maxDiff=0.5) |
|
| onPlayerPreLogin () |
|
| clearCreativeItems () |
|
| getCreativeItems () |
|
| addCreativeItem (Item $item) |
|
| removeCreativeItem (Item $item) |
|
| getCreativeItemIndex (Item $item) |
|
| getProtocol () |
|
| kick ($reason="", $isAdmin=true) |
|
| dropItem (Item $item) |
|
| sendActionBar (string $title, string $subtitle="", int $fadeIn=-1, int $stay=-1, int $fadeOut=-1) |
|
| addTitle (string $title, string $subtitle="", int $fadeIn=-1, int $stay=-1, int $fadeOut=-1) |
|
| addActionBarMessage (string $message) |
|
| removeTitles () |
|
| setTitleDuration (int $fadeIn, int $stay, int $fadeOut) |
|
| transfer (string $address, $port) |
|
| sendMessage ($message) |
|
| sendTranslation ($message, array $parameters=[]) |
|
| sendPopup ($message, $subtitle="") |
|
| sendTip ($message) |
|
| sendTitle ($title, $subtitle="", $fadein=20, $fadeout=20, $duration=5) |
|
| close ($message="", $reason="generic reason", $notify=true) |
|
| __debugInfo () |
|
| save ($async=false) |
|
| getName () |
|
| kill () |
|
| setHealth ($amount) |
|
| attack ($damage, EntityDamageEvent $source) |
|
| sendPosition (Vector3 $pos, $yaw=null, $pitch=null, $mode=MovePlayerPacket::MODE_NORMAL, array $targets=null) |
|
| teleport (Vector3 $pos, $yaw=null, $pitch=null) |
|
| teleportImmediate (Vector3 $pos, $yaw=null, $pitch=null) |
|
| getWindowId (Inventory $inventory) |
|
| addWindow (Inventory $inventory, $forceId=null) |
|
| removeWindow (Inventory $inventory) |
|
| setMetadata ($metadataKey, MetadataValue $metadataValue) |
|
| getMetadata ($metadataKey) |
|
| hasMetadata ($metadataKey) |
|
| removeMetadata ($metadataKey, Plugin $plugin) |
|
| onChunkChanged (Chunk $chunk) |
|
| onChunkLoaded (Chunk $chunk) |
|
| onChunkPopulated (Chunk $chunk) |
|
| onChunkUnloaded (Chunk $chunk) |
|
| onBlockChanged (Vector3 $block) |
|
| getLoaderId () |
|
| isLoaderActive () |
|
| addEffect (Effect $effect) |
|
| getSkinData () |
|
| getSkinId () |
|
| getUniqueId () |
|
| getRawUniqueId () |
|
| setSkin ($str, $skinId) |
|
| getFood () |
|
| setFood (float $new) |
|
| getMaxFood () |
|
| addFood (float $amount) |
|
| getSaturation () |
|
| setSaturation (float $saturation) |
|
| addSaturation (float $amount) |
|
| getExhaustion () |
|
| setExhaustion (float $exhaustion) |
|
| exhaust (float $amount, int $cause=PlayerExhaustEvent::CAUSE_CUSTOM) |
|
| getXpLevel () |
|
| setXpLevel (int $level) |
|
| addXpLevel (int $level) |
|
| takeXpLevel (int $level) |
|
| getXpProgress () |
|
| setXpProgress (float $progress) |
|
| getTotalXp () |
|
| setTotalXp (int $xp, bool $syncLevel=false) |
|
| addXp (int $xp, bool $syncLevel=false) |
|
| takeXp (int $xp, bool $syncLevel=false) |
|
| getRemainderXp () |
|
| getFilledXp () |
|
| recalculateXpProgress () |
|
| getXpSeed () |
|
| resetXpCooldown () |
|
| canPickupXp () |
|
| getInventory () |
|
| getEnderChestInventory () |
|
| getFloatingInventory () |
|
| getTransactionQueue () |
|
| getAbsorption () |
|
| setAbsorption (int $absorption) |
|
| entityBaseTick ($tickDiff=1, $EnchantL=0) |
|
| getName () |
|
| getDrops () |
|
| saveNBT () |
|
| spawnTo (Player $player) |
|
| close () |
|
| onUpdate ($tick) |
|
| willMove ($distance=36) |
|
| attack ($damage, EntityDamageEvent $source) |
|
| ifjump (Level $level, Vector3 $v3, $hate=false, $reason=false) |
|
| whatBlock (Level $level, $v3) |
|
| getMyYaw ($mx, $mz) |
|
| getMyPitch (Vector3 $from, Vector3 $to) |
|
| setHealth ($amount) |
|
| saveNBT () |
|
| getName () |
|
| hasLineOfSight (Entity $entity) |
|
| heal ($amount, EntityRegainHealthEvent $source) |
|
| attack ($damage, EntityDamageEvent $source) |
|
| knockBack (Entity $attacker, $damage, $x, $z, $base=0.4) |
|
| kill () |
|
| entityBaseTick ($tickDiff=1, $EnchantL=0) |
|
| getDrops () |
|
| getLineOfSight ($maxDistance, $maxLength=0, array $transparent=[]) |
|
| getTargetBlock ($maxDistance, array $transparent=[]) |
|
| __construct (Level $level, CompoundTag $nbt) |
|
| getHeight () |
|
| getWidth () |
|
| getLength () |
|
| setScale ($scale) |
|
| getScale () |
|
| getDropExpMin () |
|
| getDropExpMax () |
|
| getNameTag () |
|
| isNameTagVisible () |
|
| isNameTagAlwaysVisible () |
|
| setNameTag ($name) |
|
| setNameTagVisible ($value=true) |
|
| setNameTagAlwaysVisible ($value=true) |
|
| isSneaking () |
|
| setSneaking ($value=true) |
|
| isSprinting () |
|
| setSprinting ($value=true) |
|
| isGliding () |
|
| setGliding ($value=true) |
|
| isImmobile () |
|
| setImmobile ($value=true) |
|
| canClimb () |
|
| setCanClimb (bool $value) |
|
| canClimbWalls () |
|
| setCanClimbWalls (bool $value=true) |
|
| getOwningEntityId () |
|
| getOwningEntity () |
|
| setOwningEntity (Entity $owner) |
|
| getEffects () |
|
| removeAllEffects () |
|
| removeEffect ($effectId) |
|
| getEffect ($effectId) |
|
| hasEffect ($effectId) |
|
| addEffect (Effect $effect) |
|
| getSaveId () |
|
| saveNBT () |
|
| getViewers () |
|
| spawnTo (Player $player) |
|
| sendPotionEffects (Player $player) |
|
| sendData ($player, array $data=null) |
|
| despawnFrom (Player $player, bool $send=true) |
|
| attack ($damage, EntityDamageEvent $source) |
|
| heal ($amount, EntityRegainHealthEvent $source) |
|
| getHealth () |
|
| isAlive () |
|
| setHealth ($amount) |
|
| setLastDamageCause (EntityDamageEvent $type) |
|
| getLastDamageCause () |
|
| getAttributeMap () |
|
| getMaxHealth () |
|
| setMaxHealth ($amount) |
|
| canCollideWith (Entity $entity) |
|
| entityBaseTick ($tickDiff=1) |
|
| getDirectionVector () |
|
| getDirectionPlane () |
|
| onUpdate ($currentTick) |
|
| scheduleUpdate () |
|
| isOnFire () |
|
| setOnFire ($seconds) |
|
| isFireProof () |
|
| getDirection () |
|
| extinguish () |
|
| canTriggerWalking () |
|
| resetFallDistance () |
|
| getBoundingBox () |
|
| fall ($fallDistance) |
|
| handleLavaMovement () |
|
| getEyeHeight () |
|
| moveFlying () |
|
| onCollideWithPlayer (Human $entityPlayer) |
|
| getPosition () |
|
| getLocation () |
|
| isInsideOfPortal () |
|
| isInsideOfWater () |
|
| isInsideOfSolid () |
|
| isInsideOfFire () |
|
| fastMove ($dx, $dy, $dz) |
|
| move ($dx, $dy, $dz) |
|
| getBlocksAround () |
|
| setPositionAndRotation (Vector3 $pos, $yaw, $pitch) |
|
| setRotation ($yaw, $pitch) |
|
| setLocation (Location $pos) |
|
| setPosition (Vector3 $pos) |
|
| getMotion () |
|
| setMotion (Vector3 $motion) |
|
| isOnGround () |
|
| kill () |
|
| teleport (Vector3 $pos, $yaw=null, $pitch=null) |
|
| getId () |
|
| respawnToAll () |
|
| spawnToAll () |
|
| despawnFromAll () |
|
| close () |
|
| setDataProperty ($id, $type, $value) |
|
| linkEntity (Entity $entity) |
|
| sendLinkedData () |
|
| setLinked ($type=0, Entity $entity) |
|
| getLinkedEntity () |
|
| getLinkedType () |
|
| getDataProperty ($id) |
|
| getDataPropertyType ($id) |
|
| setDataFlag ($propertyId, $id, $value=true, $type=self::DATA_TYPE_LONG) |
|
| getDataFlag ($propertyId, $id) |
|
| __destruct () |
|
| setMetadata ($metadataKey, MetadataValue $metadataValue) |
|
| getMetadata ($metadataKey) |
|
| hasMetadata ($metadataKey) |
|
| removeMetadata ($metadataKey, Plugin $plugin) |
|
| __toString () |
|
| __construct ($x=0, $y=0, $z=0, $yaw=0.0, $pitch=0.0, Level $level=null) |
|
| asLocation () |
|
| add ($x, $y=0, $z=0, $yaw=0, $pitch=0) |
|
| getYaw () |
|
| getPitch () |
|
| fromObjectAdd (Vector3 $pos, $x, $y, $z) |
|
| __toString () |
|
| __construct ($x=0, $y=0, $z=0, Level $level=null) |
|
| asPosition () |
|
| 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) |
|
| asVector3 () |
|
| 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 () |
|
| getPosition () |
|
| getX () |
|
| getZ () |
|
| getLevel () |
|
Main class that handles networking, recovery, and packet sending to the server part