上から頻度が高いものになります(おそらく) 基本的には調べれば出てくると思うますが、まとまってるほうが便利そうなのでリストアップしました
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "namespace": "how_to_play", | |
| "how_to_play_screen@how_to_play_common.screen_base": { | |
| "$selector_stack_panel": "how_to_play.selector_stack_panel", | |
| "$section_content_panels": "how_to_play.section_content_panels", | |
| "$header_safezone_control": "common_store.store_top_bar_filler", | |
| "$header_bar_control": "common_store.store_top_bar", | |
| "$is_full_screen_layout": true, | |
| "$fill_alpha": 1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use pocketmine\Player; | |
| /** | |
| * $entity の周囲 $maxDistance ブロック以内にプレイヤー以外のエンティティがいるかを返す | |
| */ | |
| public function isThereEntityNonPlayerWithinCircle(Entity $target, float $maxDistance, bool $includeDead = false): bool { | |
| $minX = ((int)floor($target->x - $maxDistance)) >> 4; | |
| $maxX = ((int)floor($target->x + $maxDistance)) >> 4; | |
| $minZ = ((int)floor($target->z - $maxDistance)) >> 4; | |
| $maxZ = ((int)floor($target->z + $maxDistance)) >> 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://jenkins.pmmp.io/job/PHP-8.0-Aggregate/lastSuccessfulBuild/artifact/PHP-8.0-Windows-x64.zip -OutFile bin.zip | |
| Expand-Archive -Path bin.zip -DestinationPath ./ -Force | |
| Remove-Item bin.zip | |
| wget https://raw.githubusercontent.com/pmmp/PocketMine-MP/master/start.ps1 -OutFile start.ps1 | |
| $response = wget https://update.pmmp.io/api | |
| $info = ConvertFrom-Json $response.content | |
| wget $info.download_url -OutFile PocketMine-MP.phar | |
| echo 'Installation Successfully completed' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| private array $packet_list = []; | |
| public function onSendPacket(DataPacketSendEvent $event) | |
| { | |
| $pk = $event->getPacket(); | |
| $player = $event->getPlayer(); | |
| if($pk instanceof PlayStatusPacket) | |
| { | |
| if(($key = array_search($pk, $this->packet_list) === false)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| public function getEntityLookingAt(Player $player):?Entity{ | |
| $k = 0.5; //Const for threshold | |
| $level = $player->getLevel(); | |
| $playerSightDirectionNormalizedVector = $player->getDirectionVector(); | |
| $targetEntity = null; | |
| foreach ($level->getEntities() as $entity){ | |
| if($entity === $player)continue; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: tokai | |
| * Date: 2018/03/01 | |
| * Time: 19:35 | |
| */ | |
| namespace MasterF\PocketMineGUI\task; |