- smaller:
< - greater:
> - equal:
= - not equal:
<>
var
index : Integer;| /* | |
| * Copyright 2021 Alemiz | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| import gdb | |
| def print_enum(argstr, mapper): | |
| typename = argstr | |
| if not typename or typename.isspace(): | |
| raise gdb.GdbError("Usage: print-enum type") | |
| try: | |
| t = gdb.lookup_type(typename) | |
| except gdb.error: |
| items=[ComponentItemData(name=minecraft:kelp, data={ | |
| "components": { | |
| "item_properties": { | |
| "allow_off_hand": 0b, | |
| "animates_in_toolbar": 0b, | |
| "can_destroy_in_creative": 1b, | |
| "creative_category": 4i, | |
| "creative_group": "", | |
| "damage": 0i, | |
| "enchantable_slot": "none", |
| public class PaletteHashTest { | |
| private static final int FNV1_32_INIT = 0x811c9dc5; | |
| private static final int FNV1_PRIME_32 = 0x01000193; | |
| public static void main(String[] args) throws Exception { | |
| NbtMap blockState = NbtMap.builder() | |
| .putString("name", "minecraft:bamboo_hanging_sign") | |
| .putCompound("states", NbtMap.builder() | |
| .putInt("facing_direction", 3) |
| #!/usr/bin/env bash | |
| FLOW_ASSETS_SERVER="server_address" | |
| FLOW_ASSETS_TOKEN="your_token" | |
| # Assets downloaded from server | |
| REQUIRED_ASSETS="assets.txt" | |
| # External assets which are not from FA server, | |
| # but rather do use unauthenticated URL | |
| EXTERNAL_DEPENDENCIES="dependencies.txt" |
| Air 0 | |
| Stone 1 | |
| Grass Block 2 | |
| Dirt 3 | |
| Cobblestone 4 | |
| Oak Wood Planks 5 | |
| Oak Sapling 6 | |
| Bedrock 7 | |
| Water 8 | |
| Still Water 9 |
| <?php | |
| function virion_infect(Phar $virus, Phar $host, string $virusName): void{ | |
| $host->startBuffering(); | |
| /* Check to make sure virion.yml exists in the virion */ | |
| if(!isset($virus["virion.yml"])){ | |
| echo "virion.yml not found"; | |
| return; |
| <?php | |
| use pocketmine\event\Listener; | |
| use pocketmine\event\server\DataPacketReceiveEvent; | |
| use pocketmine\network\mcpe\protocol\LoginPacket; | |
| class ProxyCheck implements Listener { | |
| /** | |
| * List of addresses that may bypass this restriction |
| <?php | |
| declare(strict_types=1); | |
| /* | |
| * DevTools plugin for PocketMine-MP | |
| * Copyright (C) 2014 PocketMine Team <https://github.com/PocketMine/DevTools> | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU Lesser General Public License as published by |