Remove wrong copyright notice in every file
This commit is contained in:
parent
a4947b5644
commit
19c1e1777c
267 changed files with 16 additions and 1367 deletions
3
.idea/copyright/profiles_settings.xml
generated
3
.idea/copyright/profiles_settings.xml
generated
|
@ -1,3 +0,0 @@
|
|||
<component name="CopyrightManager">
|
||||
<settings default="Uranos" />
|
||||
</component>
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp
|
||||
|
||||
const val PRISMARINE_BASE_URL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/"
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp
|
||||
|
||||
import okhttp3.OkHttpClient
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp
|
||||
|
||||
import java.io.File
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp
|
||||
|
||||
import com.jsoniter.JsonIterator
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp.generator
|
||||
|
||||
import com.google.common.base.CaseFormat
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp.generator
|
||||
|
||||
import com.squareup.kotlinpoet.ClassName
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp.generator
|
||||
|
||||
import com.google.common.base.CaseFormat
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp.generator
|
||||
|
||||
import com.squareup.kotlinpoet.FileSpec
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp.generator
|
||||
|
||||
import com.google.common.base.CaseFormat
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp.generator
|
||||
|
||||
import com.jsoniter.JsonIterator
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.mdsp.util
|
||||
|
||||
import com.squareup.kotlinpoet.ParameterSpec
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.testplugin
|
||||
|
||||
import space.uranos.Uranos
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.testplugin.anvil
|
||||
|
||||
import com.google.common.cache.LoadingCache
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.testplugin.anvil
|
||||
|
||||
import space.uranos.world.Chunk
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.testplugin.anvil
|
||||
|
||||
import space.uranos.world.Chunk
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.testplugin.anvil
|
||||
|
||||
import com.google.common.cache.CacheBuilder
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
enum class CardinalDirection(private val direction: Direction) {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
enum class CoordinatePart {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
enum class Difficulty {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
enum class Direction {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
object NamespacedID {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
enum class PaintingMotive(val width: Int, val height: Int) {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
open class Registry<T: RegistryItem> {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
import kotlinx.coroutines.NonCancellable
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
import space.uranos.server.Server
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos
|
||||
|
||||
import space.uranos.entity.Position
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.chat
|
||||
|
||||
import com.squareup.moshi.FromJson
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.chat
|
||||
|
||||
import com.squareup.moshi.*
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.chat
|
||||
|
||||
/**
|
||||
* You should use [ChatComponent][space.uranos.chat.ChatComponent] whenever it's possible, but sometimes these codes
|
||||
* are required, for example in [the name of a player in a server list sample]
|
||||
* [space.uranos.net.packet.status.ResponsePacket.Players.SampleEntry.name].
|
||||
* are required, for example in the name of a player in a server list sample.
|
||||
*/
|
||||
enum class LegacyFormattingCode(private val char: Char) {
|
||||
BLACK('0'),
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.command
|
||||
|
||||
import space.uranos.RegistryItem
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
import com.google.common.cache.CacheBuilder
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
interface HasMovableHead : Mobile, Entity {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
interface LivingEntity : Entity, Mobile {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
import space.uranos.Vector
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
interface ObjectEntity : Entity, Mobile {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
import space.uranos.CardinalDirection
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
interface PitchRotatable {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
import space.uranos.player.Player
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
import space.uranos.CoordinatePart
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity
|
||||
|
||||
interface YawRotatable {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity.event
|
||||
|
||||
import space.uranos.entity.Entity
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.entity.event
|
||||
|
||||
import space.uranos.entity.Entity
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.event
|
||||
|
||||
import kotlin.contracts.InvocationKind
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.event
|
||||
|
||||
abstract class Event
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.event
|
||||
|
||||
import kotlinx.coroutines.suspendCancellableCoroutine
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.event
|
||||
|
||||
import space.uranos.Uranos
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.event
|
||||
|
||||
import space.uranos.plugin.Plugin
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.event
|
||||
|
||||
import space.uranos.Uranos
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.event
|
||||
|
||||
interface EventHandlerPositionManager {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.logging
|
||||
|
||||
import space.uranos.Uranos
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.logging
|
||||
|
||||
interface LoggingOutputProvider {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net
|
||||
|
||||
import java.util.concurrent.CancellationException
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net
|
||||
|
||||
class PacketDecodingException : Exception("Packet decoding failed")
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
import space.uranos.chat.TextComponent
|
||||
import java.util.*
|
||||
import java.util.UUID
|
||||
|
||||
/**
|
||||
* Used in the [ServerListInfoRequestEvent][space.uranos.net.event.ServerListInfoRequestEvent].
|
||||
|
@ -32,7 +27,7 @@ data class ServerListInfo(
|
|||
val favicon: String? = null
|
||||
) {
|
||||
/**
|
||||
* @param name The name of the player. You can use [LegacyFormattingCode]s.
|
||||
* @param name The name of the player. You can use [LegacyFormattingCode][space.uranos.chat.LegacyFormattingCode]s.
|
||||
* @param uuid The UUID of the player as a string. You can use a random UUID as it does not get validated by the
|
||||
* Minecraft client
|
||||
*/
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net
|
||||
|
||||
import io.netty.buffer.ByteBuf
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.event
|
||||
|
||||
import space.uranos.event.Cancellable
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.event
|
||||
|
||||
import space.uranos.event.Cancellable
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.event
|
||||
|
||||
import space.uranos.event.Cancellable
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.event
|
||||
|
||||
import space.uranos.event.Cancellable
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.event
|
||||
|
||||
import space.uranos.event.Cancellable
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.event
|
||||
|
||||
import space.uranos.entity.Position
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.event
|
||||
|
||||
import space.uranos.event.TargetedEvent
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.packet
|
||||
|
||||
sealed class Packet {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.packet
|
||||
|
||||
import com.google.common.cache.CacheBuilder
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.net.packet
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.player
|
||||
|
||||
enum class ChatMode {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.player
|
||||
|
||||
enum class GameMode(val numericID: Int) {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.player
|
||||
|
||||
enum class Hand {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.player
|
||||
|
||||
import space.uranos.chat.TextComponent
|
||||
|
@ -10,7 +5,7 @@ import space.uranos.entity.PlayerEntity
|
|||
import space.uranos.net.Session
|
||||
import space.uranos.world.Chunk
|
||||
import space.uranos.world.VoxelLocation
|
||||
import java.util.*
|
||||
import java.util.UUID
|
||||
|
||||
interface Player {
|
||||
val scope get() = session.scope
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.player
|
||||
|
||||
data class SkinPartsConfiguration(
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.player.event
|
||||
|
||||
import space.uranos.event.Event
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.player.event
|
||||
|
||||
import space.uranos.player.Player
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.player.event
|
||||
|
||||
import space.uranos.player.Player
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.plugin
|
||||
|
||||
abstract class Plugin(name: String, version: String) {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.plugin
|
||||
|
||||
interface PluginManager {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.recipe
|
||||
|
||||
import space.uranos.RegistryItem
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.server
|
||||
|
||||
import kotlinx.coroutines.CoroutineDispatcher
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.server.event
|
||||
|
||||
import space.uranos.event.Event
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.server.event
|
||||
|
||||
import space.uranos.event.Cancellable
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.tag
|
||||
|
||||
import space.uranos.entity.EntityType
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.tag
|
||||
|
||||
object TagRegistry {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
import com.squareup.moshi.FromJson
|
||||
|
@ -12,7 +7,7 @@ import com.squareup.moshi.ToJson
|
|||
import space.uranos.chat.ChatColor
|
||||
import space.uranos.chat.ChatComponent
|
||||
import space.uranos.chat.TextComponent
|
||||
import java.util.*
|
||||
import java.util.UUID
|
||||
|
||||
fun Moshi.toJson(value: Map<*, *>): String = adapter(Map::class.java).toJson(value)
|
||||
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
import kotlinx.coroutines.asCoroutineDispatcher
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
class RGBColor(rgb: Int) {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
import kotlinx.coroutines.coroutineScope
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util
|
||||
|
||||
import java.util.*
|
||||
import java.util.UUID
|
||||
|
||||
/**
|
||||
* Parses the UUID represented by this string and returns it.
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util.collections
|
||||
|
||||
import com.google.common.cache.CacheBuilder
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util.collections
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util.collections
|
||||
|
||||
import java.util.Spliterator
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util.numbers
|
||||
|
||||
import kotlin.experimental.and
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util.numbers
|
||||
|
||||
fun Int.clamp(range: IntRange) = maxOf(minOf(range.first, range.last), minOf(maxOf(range.first, range.last), this))
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util.numbers
|
||||
|
||||
fun floorMod(dividend: Float, divisor: Float): Float {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util.numbers
|
||||
|
||||
fun Float.mapToUByte(divisor: Float) = ((this / divisor) * 256).toInt().toUByte()
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
package space.uranos.util.numbers
|
||||
|
||||
infix fun Int.untilPossiblyLower(other: Int) =
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue