├── app └── src │ ├── test │ └── kotlin │ │ └── be │ │ └── zvz │ │ └── kookie │ │ └── AppTest.kt │ └── main │ ├── kotlin │ └── be │ │ └── zvz │ │ └── kookie │ │ ├── event │ │ ├── inventory │ │ │ ├── CraftItemEvent.kt │ │ │ ├── InventoryCloseEvent.kt │ │ │ ├── FurnaceSmeltEvent.kt │ │ │ ├── InventoryEvent.kt │ │ │ ├── FurnaceBurnEvent.kt │ │ │ ├── InventoryOpenEvent.kt │ │ │ ├── InventoryPickupItemEvent.kt │ │ │ ├── InventoryTransactionEvent.kt │ │ │ └── InventoryPickupArrowEvent.kt │ │ ├── Listener.kt │ │ ├── Cancellable.kt │ │ ├── EventException.kt │ │ ├── server │ │ │ ├── ServerEvent.kt │ │ │ ├── QueryRegenerateEvent.kt │ │ │ ├── NetworkInterfaceEvent.kt │ │ │ ├── NetworkInterfaceUnregisterEvent.kt │ │ │ └── DataPacketReceiveEvent.kt │ │ ├── block │ │ │ ├── BlockFormEvent.kt │ │ │ ├── BlockSpreadEvent.kt │ │ │ ├── BlockEvent.kt │ │ │ ├── BlockGrowEvent.kt │ │ │ ├── BlockUpdateEvent.kt │ │ │ ├── LeavesDecayEvent.kt │ │ │ └── BlockBurnEvent.kt │ │ ├── world │ │ │ ├── WorldInitEvent.kt │ │ │ ├── WorldLoadEvent.kt │ │ │ ├── WorldSaveEvent.kt │ │ │ ├── WorldEvent.kt │ │ │ ├── SpawnChangeEvent.kt │ │ │ ├── ChunkEvent.kt │ │ │ ├── ChunkPopulateEvent.kt │ │ │ └── WorldUnloadEvent.kt │ │ ├── player │ │ │ ├── PlayerJumpEvent.kt │ │ │ ├── PlayerEvent.kt │ │ │ ├── PlayerCommandPreprocessEvent.kt │ │ │ ├── PlayerDropItemEvent.kt │ │ │ ├── PlayerDisplayNameChangeEvent.kt │ │ │ ├── PlayerRespawnEvent.kt │ │ │ └── PlayerItemUseEvent.kt │ │ ├── entity │ │ │ ├── EntityDespawnEvent.kt │ │ │ ├── EntityEvent.kt │ │ │ ├── EntityCombustByEntityEvent.kt │ │ │ └── EntityCombustEvent.kt │ │ ├── plugin │ │ │ ├── PluginDisableEvent.kt │ │ │ ├── PluginEnableEvent.kt │ │ │ └── PluginEvent.kt │ │ └── AllowAbstract.kt │ │ ├── item │ │ ├── Releasable.kt │ │ ├── Arrow.kt │ │ ├── WritableBookPage.kt │ │ ├── ArmorTypeInfo.kt │ │ ├── Book.kt │ │ ├── Clock.kt │ │ ├── Compass.kt │ │ ├── WritableBook.kt │ │ ├── FoodSourceItem.kt │ │ ├── Minecart.kt │ │ ├── Fertilizer.kt │ │ ├── FishingRod.kt │ │ ├── GlassBottle.kt │ │ ├── LiquidBucket.kt │ │ ├── Stick.kt │ │ ├── Totem.kt │ │ ├── ItemUseResult.kt │ │ ├── Bowl.kt │ │ ├── ConsumableItem.kt │ │ ├── Coal.kt │ │ ├── BlazeRod.kt │ │ ├── Dye.kt │ │ ├── Bread.kt │ │ ├── Cookie.kt │ │ ├── RawBeef.kt │ │ ├── RawFish.kt │ │ ├── Steak.kt │ │ ├── Beetroot.kt │ │ ├── Clownfish.kt │ │ ├── CookedFish.kt │ │ ├── DriedKelp.kt │ │ ├── RawMutton.kt │ │ ├── RawRabbit.kt │ │ ├── RawSalmon.kt │ │ ├── Apple.kt │ │ ├── BakedPotato.kt │ │ ├── CookedMutton.kt │ │ ├── CookedRabbit.kt │ │ ├── CookedSalmon.kt │ │ ├── PumpkinPie.kt │ │ ├── RawPorkchop.kt │ │ ├── CookedChicken.kt │ │ ├── CookedPorkchop.kt │ │ ├── Melon.kt │ │ ├── GoldenCarrot.kt │ │ ├── Boat.kt │ │ └── Record.kt │ │ ├── math │ │ ├── Vector.kt │ │ └── RayTraceResult.kt │ │ ├── command │ │ ├── defaults │ │ │ └── BanCammand.kt │ │ └── utils │ │ │ ├── CommandException.kt │ │ │ └── InvalidCommandSyntaxException.kt │ │ ├── network │ │ ├── mcpe │ │ │ ├── PacketCompressTask.kt │ │ │ ├── protocol │ │ │ │ ├── ClientboundPacket.kt │ │ │ │ ├── ServerboundPacket.kt │ │ │ │ ├── types │ │ │ │ │ ├── login │ │ │ │ │ │ ├── JwtChain.kt │ │ │ │ │ │ └── AuthenticationData.kt │ │ │ │ │ ├── skin │ │ │ │ │ │ └── SkinGeometry.kt │ │ │ │ │ ├── ChunkCacheBlob.kt │ │ │ │ │ ├── recipe │ │ │ │ │ │ ├── RecipeIngredient.kt │ │ │ │ │ │ └── PotionContainerChangeRecipe.kt │ │ │ │ │ ├── ItemTypeEntry.kt │ │ │ │ │ ├── ScoreboardIdentityPacketEntry.kt │ │ │ │ │ ├── GameRuleType.kt │ │ │ │ │ ├── EducationOffer.kt │ │ │ │ │ ├── ItemComponentPacketEntry.kt │ │ │ │ │ ├── PlayerPermissions.kt │ │ │ │ │ ├── GeneratorType.kt │ │ │ │ │ └── command │ │ │ │ │ │ └── CommandOutputMessage.kt │ │ │ │ └── ProtocolIdentify.kt │ │ │ ├── compression │ │ │ │ └── DecompressionException.kt │ │ │ ├── PacketBroadcaster.kt │ │ │ └── convert │ │ │ │ └── R12ToCurrentBlockMapEntry.kt │ │ └── NetworkInterface.kt │ │ ├── player │ │ ├── IGameMode.kt │ │ └── UsedChunkStatus.kt │ │ ├── world │ │ ├── sound │ │ │ ├── BowShootSound.kt │ │ │ ├── ArrowHitSound.kt │ │ │ ├── ExplodeSound.kt │ │ │ ├── ItemBreakSound.kt │ │ │ ├── ChestOpenSound.kt │ │ │ ├── FlintSteelSound.kt │ │ │ ├── PotionSplashSound.kt │ │ │ ├── ChestCloseSound.kt │ │ │ ├── RecordStopSound.kt │ │ │ ├── BarrelCloseSound.kt │ │ │ ├── BarrelOpenSound.kt │ │ │ ├── EntityAttackSound.kt │ │ │ ├── RedstonePowerOnSound.kt │ │ │ ├── BucketFillLavaSound.kt │ │ │ ├── EnderChestOpenSound.kt │ │ │ ├── FireExtinguishSound.kt │ │ │ ├── RedstonePowerOffSound.kt │ │ │ ├── BucketEmptyLavaSound.kt │ │ │ ├── BucketEmptyWaterSound.kt │ │ │ ├── BucketFillWaterSound.kt │ │ │ ├── EnderChestCloseSound.kt │ │ │ ├── EntityAttackNoDamageSound.kt │ │ │ ├── ThrowSound.kt │ │ │ ├── BlockPunchSound.kt │ │ │ ├── BlockBreakSound.kt │ │ │ ├── BlockPlaceSound.kt │ │ │ ├── GhastSound.kt │ │ │ ├── IgniteSound.kt │ │ │ ├── XpLevelUpSound.kt │ │ │ ├── TotemUseSound.kt │ │ │ ├── XpCollectSound.kt │ │ │ ├── AnvilFallSound.kt │ │ │ ├── AnvilUseSound.kt │ │ │ ├── DoorBumpSound.kt │ │ │ ├── DoorCrashSound.kt │ │ │ ├── AnvilBreakSound.kt │ │ │ ├── BlazeShootSound.kt │ │ │ ├── GhastShootSound.kt │ │ │ ├── PaintingPlaceSound.kt │ │ │ ├── EndermanTeleportSound.kt │ │ │ ├── Sound.kt │ │ │ ├── PopSound.kt │ │ │ ├── ClickSound.kt │ │ │ ├── DoorSound.kt │ │ │ ├── FizzSound.kt │ │ │ └── LaunchSound.kt │ │ ├── particle │ │ │ ├── FlameParticle.kt │ │ │ ├── LavaParticle.kt │ │ │ ├── BubbleParticle.kt │ │ │ ├── PortalParticle.kt │ │ │ ├── WaterParticle.kt │ │ │ ├── ExplodeParticle.kt │ │ │ ├── LavaDripParticle.kt │ │ │ ├── SplashParticle.kt │ │ │ ├── SporeParticle.kt │ │ │ ├── WaterDripParticle.kt │ │ │ ├── EntityFlameParticle.kt │ │ │ ├── HugeExplodeParticle.kt │ │ │ ├── InkParticle.kt │ │ │ ├── RainSplashParticle.kt │ │ │ ├── AngryVillagerParticle.kt │ │ │ ├── HappyVillagerParticle.kt │ │ │ ├── HeartParticle.kt │ │ │ ├── SmokeParticle.kt │ │ │ ├── SnowballPoofParticle.kt │ │ │ ├── EnchantmentTableParticle.kt │ │ │ ├── HugeExplodeSeedParticle.kt │ │ │ ├── RedstoneParticle.kt │ │ │ ├── CriticalParticle.kt │ │ │ ├── DustParticle.kt │ │ │ ├── EnchantParticle.kt │ │ │ ├── BlockForceFieldParticle.kt │ │ │ ├── InstantEnchantParticle.kt │ │ │ ├── EndermanTeleportParticle.kt │ │ │ ├── ColoredParticle.kt │ │ │ ├── Particle.kt │ │ │ └── ItemBreakParticle.kt │ │ ├── biome │ │ │ ├── HellBiome.kt │ │ │ ├── UnknownBiome.kt │ │ │ ├── BiomeIdentify.kt │ │ │ ├── SmallMountainsBiome.kt │ │ │ ├── DesertBiome.kt │ │ │ └── SwampBiome.kt │ │ ├── WorldException.kt │ │ ├── format │ │ │ ├── ChunkException.kt │ │ │ └── io │ │ │ │ ├── WritableWorldProvider.kt │ │ │ │ └── exception │ │ │ │ ├── CorruptedWorldException.kt │ │ │ │ ├── CorruptedChunkException.kt │ │ │ │ └── UnsupportedWorldFormatException.kt │ │ ├── light │ │ │ └── LightNode.kt │ │ └── generator │ │ │ ├── objects │ │ │ └── JungleTree.kt │ │ │ └── populator │ │ │ └── Populator.kt │ │ ├── scheduler │ │ └── CancelTaskException.kt │ │ ├── utils │ │ ├── BinaryDataException.kt │ │ └── ServerException.kt │ │ ├── inventory │ │ ├── InventoryHolder.kt │ │ ├── PlayerCursorInventory.kt │ │ ├── PlayerOffHandInventory.kt │ │ ├── PlayerEnderInventory.kt │ │ ├── transaction │ │ │ └── TransactionValidationException.kt │ │ └── InventoryListener.kt │ │ ├── nbt │ │ ├── NbtDataException.kt │ │ └── NbtException.kt │ │ ├── entity │ │ ├── FoodSource.kt │ │ ├── animation │ │ │ └── Animation.kt │ │ └── Consumable.kt │ │ ├── constant │ │ └── CorePaths.kt │ │ ├── plugin │ │ ├── Plugin.kt │ │ ├── PluginException.kt │ │ ├── PluginDescription.kt │ │ └── PluginOwned.kt │ │ ├── permission │ │ ├── PermissionRemovedExecutor.kt │ │ ├── PermissionAttachmentInfo.kt │ │ └── DefaultPermissions.kt │ │ ├── block │ │ ├── util │ │ │ └── TreeType.kt │ │ └── Transparent.kt │ │ └── crafting │ │ └── utils │ │ └── ItemData.kt │ └── resources │ └── logback.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── .gitattributes ├── .gitmodules ├── settings.gradle.kts ├── .github ├── workflows │ └── detekt-reviewdog.yml └── dependabot.yml └── README.md /app/src/test/kotlin/be/zvz/kookie/AppTest.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie 2 | 3 | class AppTest 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/organization/Kookie/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore Gradle project-specific cache directory 2 | .gradle 3 | 4 | # Ignore Gradle build output directory 5 | build 6 | 7 | .idea 8 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | # 4 | # These are explicitly windows files and should use crlf 5 | *.bat text eol=crlf 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "app/src/main/resources/locale"] 2 | path = app/src/main/resources/locale 3 | url = https://github.com/organization/Language 4 | [submodule "app/src/main/resources/vanilla"] 5 | path = app/src/main/resources/vanilla 6 | url = https://github.com/pmmp/BedrockData 7 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/CraftItemEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.event.Cancellable 4 | import be.zvz.kookie.event.Event 5 | 6 | class CraftItemEvent : Event(), Cancellable { 7 | override var isCancelled: Boolean = false 8 | } 9 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/InventoryCloseEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.inventory.Inventory 4 | import be.zvz.kookie.player.Player 5 | 6 | class InventoryCloseEvent(inventory: Inventory, val who: Player) : InventoryEvent(inventory) 7 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/FurnaceSmeltEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.block.Block 4 | import be.zvz.kookie.event.block.BlockEvent 5 | import be.zvz.kookie.item.Item 6 | 7 | class FurnaceSmeltEvent(furnace: Block, val source: Item, val result: Item) : BlockEvent(furnace) { 8 | // TODO 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/InventoryEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.event.Event 4 | import be.zvz.kookie.inventory.Inventory 5 | import be.zvz.kookie.player.Player 6 | 7 | abstract class InventoryEvent(val inventory: Inventory) : Event() { 8 | fun getViewers(): MutableList = inventory.getViewers() 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/FurnaceBurnEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.block.Block 4 | import be.zvz.kookie.event.block.BlockEvent 5 | import be.zvz.kookie.item.Item 6 | 7 | // TODO: Furnace should be tile 8 | class FurnaceBurnEvent(furnace: Block, val fuel: Item, burnTime: Int) : BlockEvent(furnace) { 9 | // TODO 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/InventoryOpenEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.event.Cancellable 4 | import be.zvz.kookie.inventory.Inventory 5 | import be.zvz.kookie.player.Player 6 | 7 | class InventoryOpenEvent(inventory: Inventory, val who: Player) : InventoryEvent(inventory), Cancellable { 8 | override var isCancelled: Boolean = false 9 | } 10 | -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by the Gradle 'init' task. 3 | * 4 | * The settings file is used to specify which projects to include in your build. 5 | * 6 | * Detailed information about configuring a multi-project build in Gradle can be found 7 | * in the user manual at https://docs.gradle.org/7.0/userguide/multi_project_builds.html 8 | */ 9 | 10 | rootProject.name = "Kookie" 11 | include("app") 12 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/InventoryPickupItemEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.entity.Entity 4 | import be.zvz.kookie.event.Cancellable 5 | import be.zvz.kookie.inventory.Inventory 6 | 7 | class InventoryPickupItemEvent(inventory: Inventory, val itemEntity: Entity) : InventoryEvent(inventory), Cancellable { 8 | override var isCancelled: Boolean = false 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/InventoryTransactionEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.event.Cancellable 4 | import be.zvz.kookie.event.Event 5 | import be.zvz.kookie.inventory.transaction.InventoryTransaction 6 | 7 | class InventoryTransactionEvent(val transaction: InventoryTransaction) : Event(), Cancellable { 8 | override var isCancelled: Boolean = false 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/inventory/InventoryPickupArrowEvent.kt: -------------------------------------------------------------------------------- 1 | package be.zvz.kookie.event.inventory 2 | 3 | import be.zvz.kookie.entity.Entity 4 | import be.zvz.kookie.event.Cancellable 5 | import be.zvz.kookie.inventory.Inventory 6 | 7 | class InventoryPickupArrowEvent(inventory: Inventory, val arrow: Entity) : InventoryEvent(inventory), Cancellable { 8 | override var isCancelled: Boolean = false 9 | // TODO 10 | } 11 | -------------------------------------------------------------------------------- /.github/workflows/detekt-reviewdog.yml: -------------------------------------------------------------------------------- 1 | name: detekt-reviewdog 2 | on: [push, pull_request] 3 | 4 | jobs: 5 | detekt: 6 | name: Check Code Quality 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - name: Clone repo 11 | uses: actions/checkout@v2 12 | with: 13 | fetch-depth: 1 14 | ref: ${{ github.head_ref }} 15 | 16 | - name: detekt 17 | uses: DominuS-RU/Detekt-Action@v1.16.0 18 | with: 19 | github_token: ${{ secrets.GITHUB_TOKEN }} 20 | detekt_config: detekt.yml 21 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "gradle" # See documentation for possible values 9 | directory: "/app" # Location of package manifests 10 | schedule: 11 | interval: "daily" 12 | -------------------------------------------------------------------------------- /app/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | 7 | 8 | 9 | %nopex[%d{HH:mm:ss.SSS}] %highlight([%-5level]) [%thread] %cyan([%logger{0}]): %msg%n%ex 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/Listener.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event 19 | 20 | interface Listener 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Releasable.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | interface Releasable 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/math/Vector.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.math 19 | 20 | interface Vector : Cloneable 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/command/defaults/BanCammand.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.command.defaults 19 | 20 | class BanCammand 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/PacketCompressTask.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe 19 | 20 | class PacketCompressTask 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/player/IGameMode.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.player 19 | 20 | interface IGameMode { 21 | fun id(): Int 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BowShootSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class BowShootSound : StandardSound(Type.BOW) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/Cancellable.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event 19 | 20 | interface Cancellable { 21 | var isCancelled: Boolean 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/ClientboundPacket.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol 19 | 20 | interface ClientboundPacket 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/ServerboundPacket.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol 19 | 20 | interface ServerboundPacket 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/scheduler/CancelTaskException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.scheduler 19 | 20 | class CancelTaskException : RuntimeException() 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/ArrowHitSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class ArrowHitSound : StandardSound(Type.BOW_HIT) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/ExplodeSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class ExplodeSound : StandardSound(Type.EXPLODE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/ItemBreakSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class ItemBreakSound : StandardSound(Type.BREAK) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/EventException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event 19 | 20 | class EventException(message: String) : RuntimeException(message) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Arrow.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Arrow(identifier: ItemIdentifier, name: String) : Item(identifier, name) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/utils/BinaryDataException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.utils 19 | 20 | class BinaryDataException(msg: String) : RuntimeException(msg) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/FlameParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class FlameParticle : StandardParticle(Type.FLAME) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/LavaParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class LavaParticle : StandardParticle(Type.LAVA) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/ChestOpenSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class ChestOpenSound : StandardSound(Type.CHEST_OPEN) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/FlintSteelSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class FlintSteelSound : StandardSound(Type.IGNITE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/PotionSplashSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class PotionSplashSound : StandardSound(Type.GLASS) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/WritableBookPage.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class WritableBookPage(val text: String, val photoName: String = "") 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/biome/HellBiome.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.biome 19 | 20 | @BiomeIdentify(id = BiomeIds.HELL) 21 | class HellBiome : Biome() 22 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/BubbleParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class BubbleParticle : StandardParticle(Type.BUBBLE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/PortalParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class PortalParticle : StandardParticle(Type.PORTAL) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/WaterParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class WaterParticle : StandardParticle(Type.WATER_WAKE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/ChestCloseSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class ChestCloseSound : StandardSound(Type.CHEST_CLOSED) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/RecordStopSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class RecordStopSound : StandardSound(Type.STOP_RECORD) 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [discord-invite]: https://discord.gg/FSyZYx79Ye 2 | [discord-shield]: https://discord.com/api/guilds/844596677528780842/widget.png 3 | [java-workflow-shield]: https://github.com/organization/Kookie/actions/workflows/gradle.yml/badge.svg 4 | [detekt-reviewdog]: https://github.com/organization/Kookie/actions/workflows/detekt-reviewdog.yml/badge.svg 5 | 6 | # ![image](https://user-images.githubusercontent.com/16558115/118443050-666d2000-b726-11eb-9853-feaf2c6bec6f.png)
Kookie [ ![discord-shield][] ][discord-invite]![java-workflow-shield][] ![detekt-reviewdog][] 7 | 8 | A server software for Minecraft: Bedrock Edition written in Kotlin 9 | 10 | ## Requirements 11 | 12 | - Java 1.8+ 13 | 14 | ### For development 15 | 16 | - Kotlin 1.5+ 17 | - Java 1.8+ 18 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/ExplodeParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class ExplodeParticle : StandardParticle(Type.EXPLODE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/LavaDripParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class LavaDripParticle : StandardParticle(Type.DRIP_LAVA) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/SplashParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class SplashParticle : StandardParticle(Type.WATER_SPLASH) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/SporeParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class SporeParticle : StandardParticle(Type.SUSPENDED_TOWN) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BarrelCloseSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class BarrelCloseSound : StandardSound(Type.BLOCK_BARREL_CLOSE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BarrelOpenSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class BarrelOpenSound : StandardSound(Type.BLOCK_BARREL_OPEN) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/EntityAttackSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class EntityAttackSound : StandardSound(Type.ATTACK_STRONG) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/RedstonePowerOnSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class RedstonePowerOnSound : StandardSound(Type.POWER_ON) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/inventory/InventoryHolder.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.inventory 19 | 20 | interface InventoryHolder { 21 | fun getInventory(): Inventory 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/WaterDripParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class WaterDripParticle : StandardParticle(Type.DRIP_WATER) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BucketFillLavaSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class BucketFillLavaSound : StandardSound(Type.BUCKET_FILL_LAVA) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/EnderChestOpenSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class EnderChestOpenSound : StandardSound(Type.ENDERCHEST_OPEN) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/FireExtinguishSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class FireExtinguishSound : StandardSound(Type.EXTINGUISH_FIRE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/RedstonePowerOffSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class RedstonePowerOffSound : StandardSound(Type.POWER_OFF) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/ArmorTypeInfo.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class ArmorTypeInfo(val defensePoints: Int, val maxDurability: Int, val armorSlot: Int) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/EntityFlameParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class EntityFlameParticle : StandardParticle(Type.MOB_FLAME) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/HugeExplodeParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class HugeExplodeParticle : StandardParticle(Type.HUGE_EXPLODE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/InkParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class InkParticle(scale: Int = 0) : StandardParticle(Type.HEART, scale) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/RainSplashParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class RainSplashParticle : StandardParticle(Type.RAIN_SPLASH) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BucketEmptyLavaSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class BucketEmptyLavaSound : StandardSound(Type.BUCKET_EMPTY_LAVA) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BucketEmptyWaterSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class BucketEmptyWaterSound : StandardSound(Type.BUCKET_EMPTY_WATER) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BucketFillWaterSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class BucketFillWaterSound : StandardSound(Type.BUCKET_FILL_WATER) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/EnderChestCloseSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class EnderChestCloseSound : StandardSound(Type.ENDERCHEST_CLOSED) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/server/ServerEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.server 19 | 20 | import be.zvz.kookie.event.Event 21 | 22 | abstract class ServerEvent : Event() 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Book.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Book(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/math/RayTraceResult.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.math 19 | 20 | data class RayTraceResult(var bb: AxisAlignedBB, var hitFace: Facing, var hitVector: Vector3) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/AngryVillagerParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class AngryVillagerParticle : StandardParticle(Type.VILLAGER_ANGRY) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/HappyVillagerParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class HappyVillagerParticle : StandardParticle(Type.VILLAGER_HAPPY) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/HeartParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class HeartParticle(scale: Int = 0) : StandardParticle(Type.HEART, scale) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/SmokeParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class SmokeParticle(scale: Int = 0) : StandardParticle(Type.SMOKE, scale) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/SnowballPoofParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class SnowballPoofParticle : StandardParticle(Type.SNOWBALL_POOF) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/EntityAttackNoDamageSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class EntityAttackNoDamageSound : StandardSound(Type.ATTACK_NODAMAGE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/ThrowSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | class ThrowSound : StandardSound(type = Type.THROW, entityType = "minecraft:player") 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Clock.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Clock(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Compass.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Compass(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/WritableBook.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class WritableBook(identifier: ItemIdentifier, name: String) : WritableBookBase(identifier, name) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/player/UsedChunkStatus.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.player 19 | 20 | enum class UsedChunkStatus { 21 | NEEDED(), 22 | REQUESTED(), 23 | SENT() 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/WorldException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world 19 | 20 | open class WorldException(msg: String, cause: Throwable? = null) : RuntimeException(msg, cause) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/FoodSourceItem.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | import be.zvz.kookie.entity.FoodSource 21 | 22 | interface FoodSourceItem : ConsumableItem, FoodSource 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Minecart.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Minecart(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/EnchantmentTableParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class EnchantmentTableParticle : StandardParticle(Type.ENCHANTMENT_TABLE) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/HugeExplodeSeedParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class HugeExplodeSeedParticle : StandardParticle(Type.HUGE_EXPLODE_SEED) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Fertilizer.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Fertilizer(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/FishingRod.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class FishingRod(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/GlassBottle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class GlassBottle(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/RedstoneParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class RedstoneParticle(lifetime: Int = 1) : StandardParticle(Type.REDSTONE, lifetime) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/block/BlockFormEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.block 19 | 20 | import be.zvz.kookie.block.Block 21 | 22 | class BlockFormEvent(block: Block) : BlockEvent(block) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/world/WorldInitEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.world 19 | 20 | import be.zvz.kookie.world.World 21 | 22 | class WorldInitEvent(world: World) : WorldEvent(world) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/world/WorldLoadEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.world 19 | 20 | import be.zvz.kookie.world.World 21 | 22 | class WorldLoadEvent(world: World) : WorldEvent(world) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/world/WorldSaveEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.world 19 | 20 | import be.zvz.kookie.world.World 21 | 22 | class WorldSaveEvent(world: World) : WorldEvent(world) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/format/ChunkException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.format 19 | 20 | open class ChunkException(msg: String, cause: Throwable? = null) : RuntimeException(msg, cause) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/LiquidBucket.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | // TODO: Not yet implemented 21 | class LiquidBucket(identifier: ItemIdentifier, name: String) : Item(identifier, name) 22 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/login/JwtChain.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types.login 19 | 20 | data class JwtChain( 21 | val chain: MutableList 22 | ) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/player/PlayerJumpEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.player 19 | 20 | import be.zvz.kookie.player.Player 21 | 22 | class PlayerJumpEvent(player: Player) : PlayerEvent(player) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Stick.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Stick(identifier: ItemIdentifier, name: String) : Item(identifier, name) { 21 | override val fuelTime: Int = 100 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Totem.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Totem(identifier: ItemIdentifier, name: String) : Item(identifier, name) { 21 | override val maxStackSize: Int = 1 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BlockPunchSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.block.Block 21 | 22 | class BlockPunchSound(block: Block) : BlockSound(Type.HIT, block) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/entity/EntityDespawnEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.entity 19 | 20 | import be.zvz.kookie.entity.Entity 21 | 22 | class EntityDespawnEvent(entity: Entity) : EntityEvent(entity) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/plugin/PluginDisableEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.plugin 19 | 20 | import be.zvz.kookie.plugin.Plugin 21 | 22 | class PluginDisableEvent(plugin: Plugin) : PluginEvent(plugin) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/plugin/PluginEnableEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.plugin 19 | 20 | import be.zvz.kookie.plugin.Plugin 21 | 22 | class PluginEnableEvent(plugin: Plugin) : PluginEvent(plugin) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/ItemUseResult.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | enum class ItemUseResult(val result: String) { 21 | NONE("none"), 22 | FAIL("fail"), 23 | SUCCESS("success"), 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/skin/SkinGeometry.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types.skin 19 | 20 | data class SkinGeometry( 21 | val geometry: Map 22 | ) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/CriticalParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class CriticalParticle @JvmOverloads constructor(scale: Int = 2) : StandardParticle(Type.CRITICAL, scale) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BlockBreakSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.block.Block 21 | 22 | class BlockBreakSound(block: Block) : BlockSound(Type.BREAK, block) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BlockPlaceSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.block.Block 21 | 22 | class BlockPlaceSound(block: Block) : BlockSound(Type.PLACE, block) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/inventory/PlayerCursorInventory.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.inventory 19 | 20 | import be.zvz.kookie.entity.Living 21 | 22 | class PlayerCursorInventory(val holder: Living) : SimpleInventory(1) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/inventory/PlayerOffHandInventory.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.inventory 19 | 20 | import be.zvz.kookie.entity.Human 21 | 22 | class PlayerOffHandInventory(val holder: Human) : SimpleInventory(1) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/ChunkCacheBlob.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types 19 | 20 | data class ChunkCacheBlob( 21 | val hash: Long, 22 | val payload: String 23 | ) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/recipe/RecipeIngredient.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types.recipe 19 | 20 | data class RecipeIngredient(val id: Int, val meta: Int, val count: Int) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/utils/ServerException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.utils 19 | 20 | open class ServerException @JvmOverloads constructor(message: String = "throw exception at kookie") : RuntimeException(message) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/DustParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | import be.zvz.kookie.color.Color 21 | 22 | class DustParticle(color: Color) : ColoredParticle(Type.DUST, color) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/block/BlockSpreadEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.block 19 | 20 | import be.zvz.kookie.block.Block 21 | 22 | class BlockSpreadEvent(block: Block, val source: Block) : BlockEvent(block) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Bowl.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Bowl(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) { 21 | override val fuelTime: Int = 200 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/ConsumableItem.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | import be.zvz.kookie.entity.Consumable 21 | 22 | interface ConsumableItem : Consumable, Releasable { 23 | fun getResidue(): Item 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/nbt/NbtDataException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.nbt 19 | 20 | class NbtDataException @JvmOverloads constructor( 21 | msg: String?, 22 | cause: Throwable? = null 23 | ) : NbtException(msg, cause) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/ItemTypeEntry.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types 19 | 20 | data class ItemTypeEntry(val stringId: String, val numericId: Int, var componentBased: Boolean) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/EnchantParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | import be.zvz.kookie.color.Color 21 | 22 | class EnchantParticle(color: Color) : ColoredParticle(Type.MOB_SPELL, color) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/entity/FoodSource.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.entity 19 | 20 | interface FoodSource : Consumable { 21 | val foodRestore: Int 22 | val saturationRestore: Float 23 | val requiresHunger: Boolean 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/block/BlockEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.block 19 | 20 | import be.zvz.kookie.block.Block 21 | import be.zvz.kookie.event.Event 22 | 23 | abstract class BlockEvent(val block: Block) : Event() 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/block/BlockGrowEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.block 19 | 20 | import be.zvz.kookie.block.Block 21 | 22 | class BlockGrowEvent(block: Block, newState: Block) : BaseBlockChangeEvent(block, newState) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/server/QueryRegenerateEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.server 19 | 20 | import be.zvz.kookie.network.query.QueryInfo 21 | 22 | class QueryRegenerateEvent(val queryInfo: QueryInfo) : ServerEvent() 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/world/WorldEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.world 19 | 20 | import be.zvz.kookie.event.Event 21 | import be.zvz.kookie.world.World 22 | 23 | abstract class WorldEvent(val world: World) : Event() 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Coal.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Coal(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) { 21 | override val fuelTime: Int = 1600 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/nbt/NbtException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.nbt 19 | 20 | open class NbtException @JvmOverloads constructor( 21 | message: String?, 22 | cause: Throwable? = null 23 | ) : RuntimeException(message, cause) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/compression/DecompressionException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.compression 19 | 20 | class DecompressionException(message: String, cause: Throwable) : RuntimeException(message, cause) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/light/LightNode.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.light 19 | 20 | import be.zvz.kookie.world.format.LightLevel 21 | 22 | data class LightNode(val x: Int, val y: Int, val z: Int, val lightLevel: LightLevel) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/BlockForceFieldParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | class BlockForceFieldParticle @JvmOverloads constructor(data: Int = 0) : StandardParticle(Type.BLOCK_FORCE_FIELD, data) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/GhastSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class GhastSound : EventSound(LevelEventPacket.EVENT_SOUND_GHAST) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/IgniteSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class IgniteSound : EventSound(LevelEventPacket.EVENT_SOUND_IGNITE) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/XpLevelUpSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import kotlin.math.min 21 | 22 | class XpLevelUpSound(xpLevel: Int) : StandardSound(Type.LEVELUP, 0x10000000 * min(30, xpLevel) / 5) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/constant/CorePaths.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.constant 19 | 20 | import java.nio.file.Path 21 | import java.nio.file.Paths 22 | 23 | object CorePaths { 24 | val PATH: Path = Paths.get("").toAbsolutePath() 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/AllowAbstract.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event 19 | 20 | @Retention(AnnotationRetention.RUNTIME) 21 | @Target(AnnotationTarget.CLASS) 22 | annotation class AllowAbstract( 23 | val allowed: Boolean 24 | ) 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/entity/EntityEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.entity 19 | 20 | import be.zvz.kookie.entity.Entity 21 | import be.zvz.kookie.event.Event 22 | 23 | abstract class EntityEvent(val entity: Entity) : Event() 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/player/PlayerEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.player 19 | 20 | import be.zvz.kookie.event.Event 21 | import be.zvz.kookie.player.Player 22 | 23 | abstract class PlayerEvent(val player: Player) : Event() 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/plugin/PluginEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.plugin 19 | 20 | import be.zvz.kookie.event.Event 21 | import be.zvz.kookie.plugin.Plugin 22 | 23 | abstract class PluginEvent(val plugin: Plugin) : Event() 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/BlazeRod.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class BlazeRod(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Item(identifier, vanillaName) { 21 | override val fuelTime: Int = 2400 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/ScoreboardIdentityPacketEntry.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types 19 | 20 | data class ScoreboardIdentityPacketEntry(val scoreboardId: Long, val entityUniqueId: Long?) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/plugin/Plugin.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.plugin 19 | 20 | // TODO: Plugin 21 | abstract class Plugin { 22 | var enabled: Boolean = false 23 | val description: PluginDescription = PluginDescription() 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/TotemUseSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class TotemUseSound : EventSound(LevelEventPacket.EVENT_SOUND_TOTEM) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/XpCollectSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class XpCollectSound : EventSound(LevelEventPacket.EVENT_SOUND_ORB) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/GameRuleType.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types 19 | 20 | object GameRuleType { 21 | const val BOOL = 1 22 | const val INT = 2 23 | const val FLOAT = 3 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/permission/PermissionRemovedExecutor.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.permission 19 | 20 | interface PermissionRemovedExecutor { 21 | fun attachmentRemoved(permissible: Permissible, attachment: PermissionAttachment) 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/biome/UnknownBiome.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.biome 19 | 20 | @BiomeIdentify(id = BiomeIds.UNKNOWN) 21 | class UnknownBiome(id: Int) : Biome() { 22 | init { 23 | super.id = id 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/AnvilFallSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class AnvilFallSound : EventSound(LevelEventPacket.EVENT_SOUND_ANVIL_FALL) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/AnvilUseSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class AnvilUseSound : EventSound(LevelEventPacket.EVENT_SOUND_ANVIL_USE) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/DoorBumpSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class DoorBumpSound : EventSound(LevelEventPacket.EVENT_SOUND_DOOR_BUMP) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/DoorCrashSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class DoorCrashSound : EventSound(LevelEventPacket.EVENT_SOUND_DOOR_CRASH) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Dye.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | import be.zvz.kookie.block.util.DyeColor 21 | 22 | class Dye(identifier: ItemIdentifier, vanillaName: String = "Unknown", val color: DyeColor) : Item(identifier, vanillaName) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/biome/BiomeIdentify.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.biome 19 | 20 | @Retention(AnnotationRetention.RUNTIME) 21 | @Target(AnnotationTarget.CLASS) 22 | annotation class BiomeIdentify(val id: BiomeIds = BiomeIds.UNKNOWN) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/AnvilBreakSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class AnvilBreakSound : EventSound(LevelEventPacket.EVENT_SOUND_ANVIL_BREAK) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/BlazeShootSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class BlazeShootSound : EventSound(LevelEventPacket.EVENT_SOUND_BLAZE_SHOOT) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/GhastShootSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class GhastShootSound : EventSound(LevelEventPacket.EVENT_SOUND_GHAST_SHOOT) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/block/util/TreeType.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.block.util 19 | 20 | enum class TreeType(val type: Int) { 21 | OAK(0), 22 | SPRUCE(1), 23 | BIRCH(2), 24 | JUNGLE(3), 25 | ACACIA(4), 26 | DARK_OAK(5), 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/entity/animation/Animation.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.entity.animation 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.ClientboundPacket 21 | 22 | interface Animation { 23 | fun encode(): List 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/player/PlayerCommandPreprocessEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.player 19 | 20 | import be.zvz.kookie.player.Player 21 | 22 | class PlayerCommandPreprocessEvent(player: Player, var message: String) : PlayerEvent(player) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/NetworkInterface.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network 19 | 20 | interface NetworkInterface { 21 | 22 | fun start() 23 | 24 | fun setName(name: String) 25 | 26 | fun tick() 27 | 28 | fun shutdown() 29 | } 30 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/InstantEnchantParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | import be.zvz.kookie.color.Color 21 | 22 | class InstantEnchantParticle(color: Color) : ColoredParticle(Type.MOB_SPELL_INSTANTANEOUS, color) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/server/NetworkInterfaceEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.server 19 | 20 | import be.zvz.kookie.network.NetworkInterface 21 | 22 | abstract class NetworkInterfaceEvent(val networkInterface: NetworkInterface) : ServerEvent() 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/inventory/PlayerEnderInventory.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.inventory 19 | 20 | import be.zvz.kookie.entity.Human 21 | 22 | class PlayerEnderInventory @JvmOverloads constructor(val holder: Human, size: Int = 27) : SimpleInventory(size) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/inventory/transaction/TransactionValidationException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.inventory.transaction 19 | 20 | class TransactionValidationException(message: String, override val cause: Throwable? = null) : RuntimeException(message) 21 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Bread.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Bread(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 5 22 | override val saturationRestore: Float = 6F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/PaintingPlaceSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class PaintingPlaceSound : EventSound(LevelEventPacket.EVENT_SOUND_ITEMFRAME_PLACE) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Cookie.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Cookie(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 2 22 | override val saturationRestore: Float = 0.4F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/RawBeef.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class RawBeef(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 3 22 | override val saturationRestore: Float = 1.8F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/RawFish.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class RawFish(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 2 22 | override val saturationRestore: Float = 0.4F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Steak.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Steak(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 8 22 | override val saturationRestore: Float = 12.8F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/plugin/PluginException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.plugin 19 | 20 | import be.zvz.kookie.utils.ServerException 21 | 22 | open class PluginException @JvmOverloads constructor(message: String = "Plugin exception") : ServerException(message) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/command/utils/CommandException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.command.utils 19 | 20 | open class CommandException @JvmOverloads constructor( 21 | message: String? = null, 22 | cause: Throwable? = null 23 | ) : RuntimeException(message, cause) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/player/PlayerDropItemEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.player 19 | 20 | import be.zvz.kookie.item.Item 21 | import be.zvz.kookie.player.Player 22 | 23 | class PlayerDropItemEvent(player: Player, val item: Item) : PlayerEvent(player) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Beetroot.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Beetroot(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 1 22 | override val saturationRestore: Float = 1.2F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Clownfish.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Clownfish(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 1 22 | override val saturationRestore: Float = 0.2F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/CookedFish.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class CookedFish(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 5 22 | override val saturationRestore: Float = 6F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/DriedKelp.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class DriedKelp(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 1 22 | override val saturationRestore: Float = 0.6F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/RawMutton.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class RawMutton(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 2 22 | override val saturationRestore: Float = 1.2F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/RawRabbit.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class RawRabbit(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 3 22 | override val saturationRestore: Float = 1.8F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/RawSalmon.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class RawSalmon(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 2 22 | override val saturationRestore: Float = 0.2F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/biome/SmallMountainsBiome.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.biome 19 | 20 | @BiomeIdentify(id = BiomeIds.SMALL_MOUNTAINS) 21 | class SmallMountainsBiome : MountainsBiome() { 22 | init { 23 | setElevation(63, 97) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/EndermanTeleportSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class EndermanTeleportSound : EventSound(LevelEventPacket.EVENT_SOUND_ENDERMAN_TELEPORT) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/world/SpawnChangeEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.world 19 | 20 | import be.zvz.kookie.world.Position 21 | import be.zvz.kookie.world.World 22 | 23 | class SpawnChangeEvent(world: World, val previousSpawn: Position) : WorldEvent(world) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Apple.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Apple(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | 22 | override val foodRestore: Int = 4 23 | 24 | override val saturationRestore: Float = 2.4f 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/BakedPotato.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class BakedPotato(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 3 22 | override val saturationRestore: Float = 7.2F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/CookedMutton.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class CookedMutton(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 6 22 | override val saturationRestore: Float = 9.6F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/CookedRabbit.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class CookedRabbit(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 5 22 | override val saturationRestore: Float = 6F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/CookedSalmon.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class CookedSalmon(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 6 22 | override val saturationRestore: Float = 9.6F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/PumpkinPie.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class PumpkinPie(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 8 22 | override val saturationRestore: Float = 4.8F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/RawPorkchop.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class RawPorkchop(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 3 22 | override val saturationRestore: Float = 0.6F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/EducationOffer.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types 19 | 20 | object EducationOffer { 21 | 22 | const val NONE = 0 23 | const val EVERYWHERE_EXCEPT_CHINA = 1 24 | const val CHINA = 2 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/plugin/PluginDescription.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.plugin 19 | 20 | // TODO: PluginDescription 21 | class PluginDescription { 22 | val name: String = "" 23 | val version: String = "" 24 | val fullName: String = "$name v$version" 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/player/PlayerDisplayNameChangeEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.player 19 | 20 | import be.zvz.kookie.player.Player 21 | 22 | class PlayerDisplayNameChangeEvent(player: Player, val oldName: String, val newName: String) : PlayerEvent(player) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/CookedChicken.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class CookedChicken(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 6 22 | override val saturationRestore: Float = 7.2F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/CookedPorkchop.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class CookedPorkchop(identifier: ItemIdentifier, name: String) : Food(identifier, name) { 21 | override val foodRestore: Int = 8 22 | override val saturationRestore: Float = 12.8F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/ItemComponentPacketEntry.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types 19 | 20 | import be.zvz.kookie.nbt.tag.CompoundTag 21 | 22 | data class ItemComponentPacketEntry(val name: String, val componentNbt: CompoundTag) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/format/io/WritableWorldProvider.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.format.io 19 | 20 | import be.zvz.kookie.world.format.Chunk 21 | 22 | interface WritableWorldProvider : WorldProvider { 23 | fun saveChunk(chunkX: Int, chunkZ: Int, chunk: Chunk) 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/EndermanTeleportParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class EndermanTeleportParticle : EventParticle(LevelEventPacket.EVENT_PARTICLE_ENDERMAN_TELEPORT) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/Sound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.math.Vector3 21 | import be.zvz.kookie.network.mcpe.protocol.ClientboundPacket 22 | 23 | interface Sound { 24 | fun encode(pos: Vector3): List 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/entity/Consumable.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.entity 19 | 20 | import be.zvz.kookie.entity.effect.EffectInstance 21 | 22 | interface Consumable { 23 | 24 | fun getAdditionalEffects(): List 25 | 26 | fun onConsume(consumer: Living) 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/player/PlayerRespawnEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.player 19 | 20 | import be.zvz.kookie.player.Player 21 | import be.zvz.kookie.world.Position 22 | 23 | class PlayerRespawnEvent(player: Player, var respawnPosition: Position) : PlayerEvent(player) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Melon.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class Melon(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Food(identifier, vanillaName) { 21 | override val foodRestore: Int = 2 22 | override val saturationRestore: Float = 1.2F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/plugin/PluginOwned.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.plugin 19 | 20 | /** 21 | * This interface may be implemented by objects which are owned by plugins, to allow them to be identified as such. 22 | */ 23 | interface PluginOwned { 24 | val owningPlugin: Plugin 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/format/io/exception/CorruptedWorldException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.format.io.exception 19 | 20 | import be.zvz.kookie.world.WorldException 21 | 22 | class CorruptedWorldException(msg: String, cause: Throwable? = null) : WorldException(msg, cause) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/server/NetworkInterfaceUnregisterEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.server 19 | 20 | import be.zvz.kookie.network.NetworkInterface 21 | 22 | class NetworkInterfaceUnregisterEvent(networkInterface: NetworkInterface) : NetworkInterfaceEvent(networkInterface) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/world/ChunkEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.world 19 | 20 | import be.zvz.kookie.world.World 21 | import be.zvz.kookie.world.format.Chunk 22 | 23 | abstract class ChunkEvent(world: World, val chunkX: Int, val chunkZ: Int, chunk: Chunk) : WorldEvent(world) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/format/io/exception/CorruptedChunkException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.format.io.exception 19 | 20 | import be.zvz.kookie.world.format.ChunkException 21 | 22 | class CorruptedChunkException(msg: String, cause: Throwable? = null) : ChunkException(msg, cause) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/command/utils/InvalidCommandSyntaxException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.command.utils 19 | 20 | open class InvalidCommandSyntaxException @JvmOverloads constructor( 21 | message: String? = null, 22 | cause: Throwable? = null 23 | ) : CommandException(message, cause) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/PlayerPermissions.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types 19 | 20 | object PlayerPermissions { 21 | 22 | const val CUSTOM = 3 23 | const val OPERATOR = 2 24 | const val MEMBER = 1 25 | const val VISITOR = 0 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/biome/DesertBiome.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.biome 19 | 20 | @BiomeIdentify(id = BiomeIds.DESERT) 21 | class DesertBiome : SandyBiome() { 22 | init { 23 | setElevation(63, 74) 24 | temperature = 2F 25 | rainfall = 0F 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/biome/SwampBiome.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.biome 19 | 20 | @BiomeIdentify(id = BiomeIds.SWAMP) 21 | class SwampBiome : GrassyBiome() { 22 | init { 23 | setElevation(62, 63) 24 | temperature = 0.8F 25 | rainfall = 0.9F 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/generator/objects/JungleTree.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.generator.objects 19 | 20 | import be.zvz.kookie.block.VanillaBlocks 21 | 22 | class JungleTree : Tree( 23 | VanillaBlocks.JUNGLE_LOG.block, 24 | VanillaBlocks.JUNGLE_LEAVES.block, 25 | 8 26 | ) 27 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/ColoredParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | import be.zvz.kookie.color.Color 21 | 22 | abstract class ColoredParticle(type: Type, val color: Color) : StandardParticle(type) { 23 | override val data: Int get() = color.toARGB() 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/Particle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | import be.zvz.kookie.math.Vector3 21 | import be.zvz.kookie.network.mcpe.protocol.ClientboundPacket 22 | 23 | interface Particle { 24 | fun encode(pos: Vector3): List 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/block/Transparent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.block 19 | 20 | open class Transparent( 21 | idInfo: BlockIdentifier, 22 | name: String, 23 | breakInfo: BlockBreakInfo, 24 | ) : Block(idInfo, name, breakInfo) { 25 | override fun isTransparent(): Boolean = true 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/GoldenCarrot.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | class GoldenCarrot(identifier: ItemIdentifier, vanillaName: String = "Unknown") : Food(identifier, vanillaName) { 21 | override val foodRestore: Int = 6 22 | override val saturationRestore: Float = 14.4F 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/recipe/PotionContainerChangeRecipe.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types.recipe 19 | 20 | data class PotionContainerChangeRecipe( 21 | val inputItemId: Int, 22 | val ingredientItemId: Int, 23 | val outputItemId: Int 24 | ) 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/format/io/exception/UnsupportedWorldFormatException.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.format.io.exception 19 | 20 | import be.zvz.kookie.world.WorldException 21 | 22 | class UnsupportedWorldFormatException(msg: String, cause: Throwable? = null) : WorldException(msg, cause) 23 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/PopSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class PopSound @JvmOverloads constructor(pitch: Float = 0F) : 23 | EventSound(LevelEventPacket.EVENT_SOUND_POP, (pitch * 1000).toInt()) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/ClickSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class ClickSound @JvmOverloads constructor(pitch: Float = 0F) : 23 | EventSound(LevelEventPacket.EVENT_SOUND_CLICK, (pitch * 1000).toInt()) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/DoorSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class DoorSound @JvmOverloads constructor(pitch: Float = 0F) : 23 | EventSound(LevelEventPacket.EVENT_SOUND_DOOR, (pitch * 1000).toInt()) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/FizzSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class FizzSound @JvmOverloads constructor(pitch: Float = 0F) : 23 | EventSound(LevelEventPacket.EVENT_SOUND_FIZZ, (pitch * 1000).toInt()) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/world/ChunkPopulateEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.world 19 | 20 | import be.zvz.kookie.world.World 21 | import be.zvz.kookie.world.format.Chunk 22 | 23 | class ChunkPopulateEvent(world: World, chunkX: Int, chunkZ: Int, chunk: Chunk) : ChunkEvent(world, chunkX, chunkZ, chunk) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/PacketBroadcaster.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.ClientboundPacket 21 | 22 | interface PacketBroadcaster { 23 | fun broadcastPackets(recipients: List, packets: List) 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/convert/R12ToCurrentBlockMapEntry.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.convert 19 | 20 | import be.zvz.kookie.nbt.tag.CompoundTag 21 | 22 | data class R12ToCurrentBlockMapEntry( 23 | val id: String, 24 | val meta: Int, 25 | val blockState: CompoundTag 26 | ) 27 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/particle/ItemBreakParticle.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.particle 19 | 20 | import be.zvz.kookie.item.Item 21 | 22 | class ItemBreakParticle(val item: Item) : StandardParticle(Type.ITEM_BREAK) { 23 | override val data: Int get() = item.getId() shl 16 or item.getMeta() 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/sound/LaunchSound.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.sound 19 | 20 | import be.zvz.kookie.network.mcpe.protocol.LevelEventPacket 21 | 22 | class LaunchSound @JvmOverloads constructor(pitch: Float = 0F) : 23 | EventSound(LevelEventPacket.EVENT_SOUND_SHOOT, (pitch * 1000).toInt()) 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/block/BlockUpdateEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.block 19 | 20 | import be.zvz.kookie.block.Block 21 | import be.zvz.kookie.event.Cancellable 22 | 23 | class BlockUpdateEvent(block: Block) : BlockEvent(block), Cancellable { 24 | override var isCancelled: Boolean = false 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/block/LeavesDecayEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.block 19 | 20 | import be.zvz.kookie.block.Block 21 | import be.zvz.kookie.event.Cancellable 22 | 23 | class LeavesDecayEvent(block: Block) : BlockEvent(block), Cancellable { 24 | override var isCancelled: Boolean = false 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/entity/EntityCombustByEntityEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.entity 19 | 20 | import be.zvz.kookie.entity.Entity 21 | 22 | class EntityCombustByEntityEvent(val combuster: Entity, combustee: Entity, duration: Int) : EntityCombustEvent( 23 | combustee, 24 | duration 25 | ) 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/world/WorldUnloadEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.world 19 | 20 | import be.zvz.kookie.event.Cancellable 21 | import be.zvz.kookie.world.World 22 | 23 | class WorldUnloadEvent(world: World) : WorldEvent(world), Cancellable { 24 | override var isCancelled: Boolean = false 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Boat.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | import be.zvz.kookie.block.util.TreeType 21 | 22 | class Boat(identifier: ItemIdentifier, vanillaName: String = "Unknown", val woodType: TreeType) : Item(identifier, vanillaName) { 23 | override val fuelTime: Int = 1200 // 400 in PC 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/permission/PermissionAttachmentInfo.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.permission 19 | 20 | data class PermissionAttachmentInfo( 21 | val permission: String, 22 | val attachment: PermissionAttachment?, 23 | val value: Boolean, 24 | val groupPermission: PermissionAttachmentInfo? 25 | ) 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/world/generator/populator/Populator.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.world.generator.populator 19 | 20 | import be.zvz.kookie.world.ChunkManager 21 | import kotlin.random.Random 22 | 23 | interface Populator { 24 | fun populate(world: ChunkManager, chunkX: Int, chunkZ: Int, random: Random) 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/crafting/utils/ItemData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.crafting.utils 19 | 20 | import be.zvz.kookie.item.Item 21 | import be.zvz.kookie.item.ItemFactory 22 | 23 | data class ItemData( 24 | val id: Int, 25 | val meta: Int 26 | ) { 27 | fun toItem(): Item = ItemFactory.get(id, meta) 28 | } 29 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/GeneratorType.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types 19 | 20 | object GeneratorType { 21 | const val FINITE_OVERWORLD = 0 22 | const val OVERWORLD = 1 23 | const val FLAT = 2 24 | const val NETHER = 3 25 | const val THE_END = 4 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/inventory/InventoryListener.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.inventory 19 | 20 | import be.zvz.kookie.item.Item 21 | 22 | interface InventoryListener { 23 | fun onSlotChange(inventory: Inventory, slot: Int, oldItem: Item) 24 | fun onSlotChange(inventory: Inventory, oldContents: Map) 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/item/Record.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.item 19 | 20 | import be.zvz.kookie.block.util.RecordType 21 | 22 | class Record(identifier: ItemIdentifier, val recordType: RecordType, vanillaName: String = "Unknown") : 23 | Item(identifier, vanillaName) { 24 | override val maxStackSize: Int = 1 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/command/CommandOutputMessage.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types.command 19 | 20 | class CommandOutputMessage { 21 | var isInternal: Boolean = false 22 | var messageId: String = "" 23 | var parameters: MutableList = mutableListOf() 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/player/PlayerItemUseEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.player 19 | 20 | import be.zvz.kookie.item.Item 21 | import be.zvz.kookie.math.Vector3 22 | import be.zvz.kookie.player.Player 23 | 24 | class PlayerItemUseEvent(player: Player, val item: Item, val directionVector: Vector3) : PlayerEvent(player) 25 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/block/BlockBurnEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.block 19 | 20 | import be.zvz.kookie.block.Block 21 | import be.zvz.kookie.event.Cancellable 22 | 23 | class BlockBurnEvent(block: Block, val causingBlock: Block) : BlockEvent(block), Cancellable { 24 | override var isCancelled: Boolean = false 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/server/DataPacketReceiveEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.server 19 | 20 | import be.zvz.kookie.network.mcpe.NetworkSession 21 | import be.zvz.kookie.network.mcpe.protocol.ServerboundPacket 22 | 23 | class DataPacketReceiveEvent(val origin: NetworkSession, val packet: ServerboundPacket) : ServerEvent() 24 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/types/login/AuthenticationData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol.types.login 19 | 20 | class AuthenticationData { 21 | 22 | var displayName: String = "" 23 | 24 | var identity: String = "" 25 | 26 | var titleId: String = "" 27 | 28 | var xuid: String = "" 29 | } 30 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/network/mcpe/protocol/ProtocolIdentify.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.network.mcpe.protocol 19 | 20 | @Retention(AnnotationRetention.RUNTIME) 21 | @Target(AnnotationTarget.CLASS) 22 | annotation class ProtocolIdentify( 23 | val networkId: ProtocolInfo.IDS = ProtocolInfo.IDS.UNKNOWN, 24 | val customId: Int = -1 25 | ) 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/permission/DefaultPermissions.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.permission 19 | 20 | object DefaultPermissions { 21 | const val ROOT = "kookie" 22 | const val ROOT_CONSOLE = "kookie.group.console" 23 | const val ROOT_OPERATOR = "pocketmine.group.operator" 24 | const val ROOT_USER = "pocketmine.group.user" 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/kotlin/be/zvz/kookie/event/entity/EntityCombustEvent.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * _ __ _ _ 4 | * | |/ /___ ___ | | _(_) ___ 5 | * | ' // _ \ / _ \| |/ / |/ _ \ 6 | * | . \ (_) | (_) | <| | __/ 7 | * |_|\_\___/ \___/|_|\_\_|\___| 8 | * 9 | * A server software for Minecraft: Bedrock Edition 10 | * 11 | * Copyright (C) 2021 organization Team 12 | * 13 | * This program is free software: you can redistribute it and/or modify 14 | * it under the terms of the GNU Lesser General Public License as published by 15 | * the Free Software Foundation, either version 3 of the License, or 16 | * (at your option) any later version. 17 | */ 18 | package be.zvz.kookie.event.entity 19 | 20 | import be.zvz.kookie.entity.Entity 21 | import be.zvz.kookie.event.Cancellable 22 | 23 | open class EntityCombustEvent(entity: Entity, var duration: Int) : EntityEvent(entity), Cancellable { 24 | override var isCancelled: Boolean = false 25 | } 26 | --------------------------------------------------------------------------------