├── tests ├── phpstan │ ├── stubs │ │ ├── pthreads.stub │ │ ├── leveldb.stub │ │ └── chunkutils.stub │ └── configs │ │ ├── pthreads-bugs.neon │ │ ├── com-dotnet-magic.neon │ │ ├── phpunit-wiring-tests.neon │ │ └── php-bugs.neon ├── plugins │ └── TesterPlugin │ │ ├── plugin.yml │ │ └── src │ │ └── pmmp │ │ └── TesterPlugin │ │ └── TestFailedException.php ├── travis │ └── setup-php.yml └── phpunit │ ├── level │ └── format │ │ └── io │ │ ├── InterfaceLevelProvider.php │ │ └── AbstractLevelProvider.php │ ├── block │ ├── StrangeNewBlock.php │ ├── MyCustomBlock.php │ └── OutOfBoundsBlock.php │ └── network │ └── mcpe │ └── protocol │ └── TestPacket.php ├── .editorconfig ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── api-change-request.md │ ├── crash.md │ ├── config.yml │ └── bug_report.md ├── support.yml └── PULL_REQUEST_TEMPLATE.md ├── src └── pocketmine │ ├── network │ └── mcpe │ │ ├── README.md │ │ ├── VerifyLoginException.php │ │ └── protocol │ │ └── types │ │ ├── DimensionIds.php │ │ ├── UIProfile.php │ │ ├── PlayerPermissions.php │ │ ├── ScoreboardIdentityPacketEntry.php │ │ ├── CommandEnum.php │ │ ├── GameRuleType.php │ │ ├── CommandOutputMessage.php │ │ ├── EducationEditionOffer.php │ │ └── InputMode.php │ ├── resources │ └── resource_packs.yml │ ├── entity │ ├── NPC.php │ ├── Rideable.php │ ├── Damageable.php │ ├── Creature.php │ ├── Monster.php │ ├── Ageable.php │ ├── Vehicle.php │ ├── projectile │ │ └── ProjectileSource.php │ ├── InvalidSkinException.php │ ├── Explosive.php │ └── Animal.php │ ├── utils │ ├── ServerException.php │ └── InternetException.php │ ├── event │ ├── block │ │ ├── BlockFormEvent.php │ │ ├── LeavesDecayEvent.php │ │ └── BlockUpdateEvent.php │ ├── plugin │ │ ├── PluginEnableEvent.php │ │ └── PluginDisableEvent.php │ ├── player │ │ ├── PlayerBucketFillEvent.php │ │ ├── PlayerBucketEmptyEvent.php │ │ ├── cheat │ │ │ └── PlayerCheatEvent.php │ │ ├── PlayerJumpEvent.php │ │ └── PlayerEvent.php │ ├── entity │ │ └── EntityArmorChangeEvent.php │ ├── level │ │ ├── LevelLoadEvent.php │ │ ├── LevelSaveEvent.php │ │ ├── LevelInitEvent.php │ │ ├── ChunkPopulateEvent.php │ │ ├── ChunkUnloadEvent.php │ │ └── LevelUnloadEvent.php │ ├── server │ │ ├── NetworkInterfaceUnregisterEvent.php │ │ ├── ServerEvent.php │ │ └── NetworkInterfaceRegisterEvent.php │ └── Cancellable.php │ ├── level │ ├── format │ │ ├── ChunkException.php │ │ └── io │ │ │ ├── region │ │ │ ├── RegionException.php │ │ │ └── CorruptedRegionException.php │ │ │ └── exception │ │ │ ├── CorruptedChunkException.php │ │ │ └── UnsupportedChunkFormatException.php │ ├── LevelException.php │ ├── biome │ │ ├── HellBiome.php │ │ ├── UnknownBiome.php │ │ ├── SmallMountainsBiome.php │ │ └── DesertBiome.php │ ├── generator │ │ ├── InvalidGeneratorOptionsException.php │ │ └── object │ │ │ └── PopulatorObject.php │ ├── particle │ │ ├── LavaParticle.php │ │ ├── BubbleParticle.php │ │ ├── FlameParticle.php │ │ ├── PortalParticle.php │ │ ├── ExplodeParticle.php │ │ ├── SporeParticle.php │ │ ├── WaterParticle.php │ │ ├── LavaDripParticle.php │ │ ├── SplashParticle.php │ │ ├── WaterDripParticle.php │ │ ├── EntityFlameParticle.php │ │ ├── InkParticle.php │ │ ├── RainSplashParticle.php │ │ ├── HugeExplodeParticle.php │ │ ├── SnowballPoofParticle.php │ │ ├── AngryVillagerParticle.php │ │ ├── HappyVillagerParticle.php │ │ ├── HeartParticle.php │ │ ├── SmokeParticle.php │ │ ├── CriticalParticle.php │ │ ├── HugeExplodeSeedParticle.php │ │ ├── EnchantmentTableParticle.php │ │ ├── RedstoneParticle.php │ │ ├── TerrainParticle.php │ │ └── BlockForceFieldParticle.php │ └── sound │ │ ├── Sound.php │ │ ├── DoorSound.php │ │ ├── FizzSound.php │ │ ├── PopSound.php │ │ ├── ClickSound.php │ │ ├── GhastSound.php │ │ ├── LaunchSound.php │ │ ├── AnvilUseSound.php │ │ └── DoorBumpSound.php │ ├── form │ └── FormValidationException.php │ ├── command │ ├── utils │ │ ├── CommandException.php │ │ └── InvalidCommandSyntaxException.php │ ├── PluginIdentifiableCommand.php │ └── CommandExecutor.php │ ├── resourcepacks │ └── ResourcePackException.php │ ├── block │ ├── Reserved6.php │ ├── Solid.php │ ├── InfoUpdate.php │ ├── StillLava.php │ ├── StillWater.php │ ├── PoweredRail.php │ ├── MossyCobblestone.php │ ├── DoubleStoneSlab2.php │ ├── ActivatorRail.php │ ├── DetectorRail.php │ ├── Transparent.php │ ├── TrappedChest.php │ ├── WoodenDoor.php │ ├── RedSandstoneStairs.php │ ├── RedstoneRail.php │ ├── Furnace.php │ ├── LitPumpkin.php │ ├── RedstoneTorch.php │ ├── WeightedPressurePlateHeavy.php │ ├── BrownMushroom.php │ ├── LitRedstoneLamp.php │ ├── RedstoneTorchUnlit.php │ ├── StainedGlass.php │ ├── StainedClay.php │ ├── Sponge.php │ └── StainedGlassPane.php │ ├── plugin │ ├── PluginException.php │ ├── EventExecutor.php │ └── PluginLoadOrder.php │ ├── inventory │ ├── transaction │ │ └── TransactionValidationException.php │ ├── InventoryHolder.php │ ├── CustomInventory.php │ └── Recipe.php │ ├── item │ ├── Book.php │ ├── Arrow.php │ ├── Clock.php │ ├── Compass.php │ ├── Dye.php │ ├── Bowl.php │ ├── GlassBottle.php │ ├── Minecart.php │ ├── FishingRod.php │ ├── Hoe.php │ ├── Stick.php │ ├── Totem.php │ ├── BlazeRod.php │ ├── Boat.php │ ├── Coal.php │ ├── Bread.php │ ├── Apple.php │ ├── Cookie.php │ ├── Melon.php │ ├── Steak.php │ ├── Beetroot.php │ ├── GoldBoots.php │ ├── RawBeef.php │ ├── RawFish.php │ ├── Clownfish.php │ ├── DriedKelp.php │ ├── GoldHelmet.php │ ├── IronBoots.php │ ├── IronHelmet.php │ ├── LeatherCap.php │ ├── RawMutton.php │ ├── RawRabbit.php │ └── RawSalmon.php │ ├── permission │ └── PermissionRemovedExecutor.php │ ├── tile │ ├── EnchantTable.php │ └── Nameable.php │ ├── GlobalConstants.php │ ├── scheduler │ └── GarbageCollectionTask.php │ └── Collectable.php ├── .travis.yml ├── .gitmodules ├── doxygen └── index.md ├── .gitattributes ├── .gitignore └── start.cmd /tests/phpstan/stubs/pthreads.stub: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | class Threaded implements \Traversable{} 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org/ 2 | root = yes 3 | 4 | [*] 5 | indent_size = 4 6 | indent_style = tab 7 | 8 | [*.yml] 9 | indent_size = 2 10 | indent_style = space 11 | -------------------------------------------------------------------------------- /tests/plugins/TesterPlugin/plugin.yml: -------------------------------------------------------------------------------- 1 | name: TesterPlugin 2 | main: pmmp\TesterPlugin\Main 3 | version: 0.1.0 4 | api: [3.2.0] 5 | load: POSTWORLD 6 | author: pmmp 7 | description: Plugin used to run tests on PocketMine-MP 8 | -------------------------------------------------------------------------------- /tests/phpstan/configs/pthreads-bugs.neon: -------------------------------------------------------------------------------- 1 | parameters: 2 | ignoreErrors: 3 | - 4 | message: "#^Variable \\$GLOBALS in isset\\(\\) always exists and is not nullable\\.$#" 5 | count: 1 6 | path: ../../../src/pocketmine/MemoryManager.php 7 | 8 | -------------------------------------------------------------------------------- /tests/phpstan/configs/com-dotnet-magic.neon: -------------------------------------------------------------------------------- 1 | parameters: 2 | ignoreErrors: 3 | - 4 | message: "#^Access to an undefined property COM\\:\\:\\$StaticPortMappingCollection\\.$#" 5 | count: 2 6 | path: ../../../src/pocketmine/network/upnp/UPnP.php 7 | 8 | -------------------------------------------------------------------------------- /tests/phpstan/stubs/leveldb.stub: -------------------------------------------------------------------------------- 1 | $read_options 7 | * 8 | * @return string|false 9 | */ 10 | public function get($key, array $read_options = []){} 11 | } -------------------------------------------------------------------------------- /tests/phpstan/configs/phpunit-wiring-tests.neon: -------------------------------------------------------------------------------- 1 | parameters: 2 | ignoreErrors: 3 | - 4 | message: "#^Parameter \\#1 \\$class of static method pocketmine\\\\level\\\\format\\\\io\\\\LevelProviderManager\\:\\:addProvider\\(\\) expects class\\-string\\, string given\\.$#" 5 | count: 2 6 | path: ../../phpunit/level/format/io/LevelProviderManagerTest.php 7 | 8 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: pocketminemp 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | custom: https://github.com/pmmp/PocketMine-MP#donate 9 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/api-change-request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: API change request 3 | about: Suggest a change, addition or removal to the plugin API 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | ## Description 12 | 13 | 14 | 15 | ## Justification 16 | 17 | 18 | 19 | ## Alternative methods 20 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/crash.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Crash 3 | about: Report a crash in PocketMine-MP (not plugins) 4 | title: Server crashed 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | 12 | Link to crashdump: 13 | 14 | 15 | ### Additional comments (optional) 16 | -------------------------------------------------------------------------------- /tests/travis/setup-php.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | php: 3 | - 7.3 4 | - 7.4 5 | 6 | before_script: 7 | - phpenv config-rm xdebug.ini 8 | - echo | pecl install channel://pecl.php.net/yaml-2.1.0 9 | - git clone https://github.com/pmmp/pthreads.git 10 | - cd pthreads 11 | - git checkout b81ab29df58fa0fb239a9d5ca1c2380a0d087feb 12 | - phpize 13 | - ./configure 14 | - make 15 | - make install 16 | - cd .. 17 | - echo "extension=pthreads.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 18 | - composer self-update --2 19 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Help & support on Discord 4 | url: https://discord.gg/bmSAZBG 5 | about: We don't accept support requests on the issue tracker. Please try asking on Discord instead. 6 | - name: Help & support on forums 7 | url: https://forums.pmmp.io 8 | about: We don't accept support requests on the issue tracker. Please try asking on forums instead. 9 | - name: Documentation 10 | url: https://pmmp.rtfd.io 11 | about: PocketMine-MP documentation 12 | -------------------------------------------------------------------------------- /tests/phpstan/configs/php-bugs.neon: -------------------------------------------------------------------------------- 1 | parameters: 2 | ignoreErrors: 3 | - 4 | message: "#^Method ReflectionMethod\\:\\:getClosure\\(\\) invoked with 0 parameters, 1 required\\.$#" 5 | count: 1 6 | path: ../../phpunit/network/mcpe/StupidJsonDecodeTest.php 7 | 8 | - 9 | message: "#^Property pocketmine\\\\network\\\\mcpe\\\\StupidJsonDecodeTest\\:\\:\\$stupidJsonDecodeFunc \\(Closure\\(string, bool\\)\\: mixed\\) does not accept Closure\\|null\\.$#" 10 | count: 1 11 | path: ../../phpunit/network/mcpe/StupidJsonDecodeTest.php 12 | 13 | -------------------------------------------------------------------------------- /src/pocketmine/network/mcpe/README.md: -------------------------------------------------------------------------------- 1 | # Minecraft: Bedrock Edition network & protocol components 2 | This directory (the `pocketmine\network\mcpe` namespace) contains code specific to the current version of Minecraft: Bedrock Edition. 3 | 4 | ## WARNING 5 | This namespace should be considered **INTERNAL in its entirety**. Publicly exposed API in this namespace can and will change frequently, and without warning. 6 | 7 | This namespace **IS NOT COVERED BY THE API VERSION SYSTEM**. If your plugin uses any code in this namespace, it can and will break without warning. 8 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | import: 2 | source: ./tests/travis/setup-php.yml 3 | 4 | script: 5 | - composer install --prefer-dist 6 | - ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G 7 | - ./vendor/bin/phpunit --bootstrap vendor/autoload.php --fail-on-warning tests/phpunit 8 | - composer install --no-dev --prefer-dist 9 | - ./tests/travis.sh -t4 10 | 11 | cache: 12 | directories: 13 | - $HOME/.composer/cache/files 14 | - $HOME/.composer/cache/vcs 15 | 16 | notifications: 17 | email: 18 | recipients: 19 | - team@pmmp.io 20 | on_success: change 21 | on_failure: always 22 | -------------------------------------------------------------------------------- /tests/phpstan/stubs/chunkutils.stub: -------------------------------------------------------------------------------- 1 | $color_array 22 | * 23 | * @return string 24 | */ 25 | public static function convertBiomeColors($color_array){} 26 | } 27 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "src/pocketmine/lang/locale"] 2 | path = src/pocketmine/lang/locale 3 | url = https://github.com/pmmp/Language.git 4 | [submodule "tests/preprocessor"] 5 | path = build/preprocessor 6 | url = https://github.com/pmmp/preprocessor.git 7 | [submodule "tests/plugins/DevTools"] 8 | path = tests/plugins/DevTools 9 | url = https://github.com/pmmp/DevTools.git 10 | [submodule "build/php"] 11 | path = build/php 12 | url = https://github.com/pmmp/php-build-scripts.git 13 | [submodule "src/pocketmine/resources/vanilla"] 14 | path = src/pocketmine/resources/vanilla 15 | url = https://github.com/pmmp/BedrockData.git 16 | -------------------------------------------------------------------------------- /doxygen/index.md: -------------------------------------------------------------------------------- 1 | ## PocketMine-MP API Documentation 2 | 3 | This site contains auto-generated API documentation for PocketMine-MP (and dependencies which are not outsourced). Documentation here is regenerated for every release. 4 | 5 | This site can be accessed via https://apidoc.pmmp.io. 6 | 7 | ### Additional developer resources 8 | - [DevTools](https://github.com/pmmp/DevTools/) - Development tools plugin for creating plugins 9 | - [ExamplePlugin](https://github.com/pmmp/ExamplePlugin/) - Example plugin demonstrating some basic API features 10 | - [DeveloperDocs](https://github.com/pmmp/DeveloperDocs/) - Reference, guides and specifications for the PocketMine-MP API 11 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | *.php text eol=lf 4 | *.sh text eol=lf 5 | *.txt text eol=lf 6 | *.properties text eol=lf 7 | *.bat text eol=crlf 8 | *.cmd text eol=crlf 9 | *.ps1 text eol=crlf 10 | 11 | # Custom for Visual Studio 12 | *.cs diff=csharp 13 | *.sln merge=union 14 | *.csproj merge=union 15 | *.vbproj merge=union 16 | *.fsproj merge=union 17 | *.dbproj merge=union 18 | 19 | # Standard to msysgit 20 | *.doc diff=astextplain 21 | *.DOC diff=astextplain 22 | *.docx diff=astextplain 23 | *.DOCX diff=astextplain 24 | *.dot diff=astextplain 25 | *.DOT diff=astextplain 26 | *.pdf diff=astextplain 27 | *.PDF diff=astextplain 28 | *.rtf diff=astextplain 29 | *.RTF diff=astextplain 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | players/* 2 | worlds/* 3 | plugin_data/* 4 | plugins/* 5 | bin*/* 6 | timings/* 7 | crashdumps/* 8 | *.log 9 | *.txt 10 | *.phar 11 | server.properties 12 | /pocketmine.yml 13 | memory_dumps/* 14 | resource_packs/ 15 | server.lock 16 | /phpstan.neon 17 | 18 | # Common IDEs 19 | .idea/ 20 | nbproject/* 21 | 22 | # Windows image file caches 23 | Thumbs.db 24 | 25 | # Folder config file 26 | Desktop.ini 27 | 28 | # Mac crap 29 | .DS_Store 30 | /nbproject/private/ 31 | 32 | # Sphinx-doc 33 | /docs/build/ 34 | !/docs/requirements.txt 35 | 36 | # Composer 37 | vendor/* 38 | 39 | # Travis files 40 | test_data/* 41 | 42 | # Doxygen 43 | Documentation/* 44 | 45 | # PHPUnit 46 | /.phpunit.result.cache 47 | 48 | # php-cs-fixer 49 | /.php_cs.cache 50 | -------------------------------------------------------------------------------- /src/pocketmine/resources/resource_packs.yml: -------------------------------------------------------------------------------- 1 | #This configuration file controls global resources used on your PocketMine-MP server. 2 | 3 | #Choose whether players must use your chosen resource packs to join the server. 4 | #NOTE: This will do nothing if there are no resource packs in the stack below. 5 | force_resources: false 6 | resource_stack: 7 | #Resource packs here are applied from bottom to top. This means that resources in higher packs will override those in lower packs. 8 | #Entries here must indicate the filename of the resource pack. 9 | #Example 10 | # - natural.zip 11 | # - vanilla.zip 12 | #If you want to force clients to use vanilla resources, you must place a vanilla resource pack in your resources folder and add it to the stack here. 13 | -------------------------------------------------------------------------------- /.github/support.yml: -------------------------------------------------------------------------------- 1 | # Configuration for support-requests - https://github.com/dessant/support-requests 2 | 3 | # Label used to mark issues as support requests 4 | supportLabel: "Support request" 5 | # Comment to post on issues marked as support requests. Add a link 6 | # to a support page, or set to `false` to disable 7 | supportComment: > 8 | Thanks, but this issue tracker is not intended for support requests. Please read the guidelines on [submitting an issue](https://github.com/pmmp/PocketMine-MP/blob/master/CONTRIBUTING.md#creating-an-issue). 9 | 10 | 11 | [Docs](https://pmmp.rtfd.io) | [Discord](https://discord.gg/bmSAZBG) | [Forums](https://forums.pmmp.io) 12 | 13 | # Whether to close issues marked as support requests 14 | close: true 15 | # Whether to lock issues marked as support requests 16 | lock: false 17 | -------------------------------------------------------------------------------- /src/pocketmine/entity/NPC.php: -------------------------------------------------------------------------------- 1 | getGenericFlag(self::DATA_FLAG_BABY); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/pocketmine/event/level/ChunkPopulateEvent.php: -------------------------------------------------------------------------------- 1 | applyDamage(1); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/pocketmine/inventory/InventoryHolder.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | ### Relevant issues 5 | 6 | 12 | 13 | ## Changes 14 | ### API changes 15 | 16 | 17 | ### Behavioural changes 18 | 19 | 20 | ## Backwards compatibility 21 | 22 | 23 | ## Follow-up 24 | 25 | 34 | 35 | ## Tests 36 | 41 | -------------------------------------------------------------------------------- /src/pocketmine/block/DoubleStoneSlab2.php: -------------------------------------------------------------------------------- 1 | meta & ~self::FLAG_POWERED]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/pocketmine/event/block/BlockUpdateEvent.php: -------------------------------------------------------------------------------- 1 | 32 | */ 33 | public $enumValues = []; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/pocketmine/network/mcpe/protocol/types/GameRuleType.php: -------------------------------------------------------------------------------- 1 | meta === 1){ 30 | $this->name = "Charcoal"; 31 | } 32 | } 33 | 34 | public function getFuelTime() : int{ 35 | return 1600; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/pocketmine/level/biome/SmallMountainsBiome.php: -------------------------------------------------------------------------------- 1 | setElevation(63, 97); 32 | } 33 | 34 | public function getName() : string{ 35 | return "Small Mountains"; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/pocketmine/GlobalConstants.php: -------------------------------------------------------------------------------- 1 | getRuntimeId()); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/pocketmine/network/mcpe/protocol/types/InputMode.php: -------------------------------------------------------------------------------- 1 | getVariant()) . " Stained Glass"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/pocketmine/item/Bread.php: -------------------------------------------------------------------------------- 1 | getVariant()) . " Stained Clay"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/pocketmine/event/server/NetworkInterfaceRegisterEvent.php: -------------------------------------------------------------------------------- 1 | 21 | * PocketMine-MP: 22 | * PHP: 23 | * Server OS: 24 | * Game version: PE/Win10 (delete as appropriate) 25 | 26 | ### Plugins 27 | 28 | 29 | - If you remove all plugins, does the issue still occur? 30 | - If the issue is **not** reproducible without plugins: 31 | - Have you asked for help on our forums before creating an issue? 32 | - Can you provide sample, *minimal* reproducing code for the issue? If so, paste it in the bottom section 33 | 34 | ### Crashdump, backtrace or other files 35 | 36 | 37 | -------------------------------------------------------------------------------- /src/pocketmine/event/player/PlayerJumpEvent.php: -------------------------------------------------------------------------------- 1 | player = $player; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/pocketmine/level/sound/ClickSound.php: -------------------------------------------------------------------------------- 1 | isGarbage; 33 | } 34 | 35 | /** 36 | * @return void 37 | */ 38 | public function setGarbage(){ 39 | $this->isGarbage = true; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/pocketmine/item/Beetroot.php: -------------------------------------------------------------------------------- 1 | meta = $meta; 32 | } 33 | 34 | public function getHardness() : float{ 35 | return 0.6; 36 | } 37 | 38 | public function getName() : string{ 39 | return "Sponge"; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/pocketmine/block/StainedGlassPane.php: -------------------------------------------------------------------------------- 1 | getVariant()) . " Stained Glass Pane"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/pocketmine/event/player/PlayerEvent.php: -------------------------------------------------------------------------------- 1 | player; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/pocketmine/item/Clownfish.php: -------------------------------------------------------------------------------- 1 | setElevation(63, 74); 31 | 32 | $this->temperature = 2; 33 | $this->rainfall = 0; 34 | } 35 | 36 | public function getName() : string{ 37 | return "Desert"; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/pocketmine/level/sound/AnvilUseSound.php: -------------------------------------------------------------------------------- 1 |