Archived
1
0
Fork 0

Remove wrong copyright notice in every file

This commit is contained in:
Moritz Ruth 2021-02-28 00:03:13 +01:00
parent a4947b5644
commit 19c1e1777c
No known key found for this signature in database
GPG key ID: AFD57E23E753841B
267 changed files with 16 additions and 1367 deletions

View file

@ -1,3 +0,0 @@
<component name="CopyrightManager">
<settings default="Uranos" />
</component>

View 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
const val PRISMARINE_BASE_URL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/"

View 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 okhttp3.OkHttpClient

View 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 java.io.File

View 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

View 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.generator
import com.google.common.base.CaseFormat
@ -57,7 +52,7 @@ class BlocksAndMaterialGenerator(
.initializer("arrayOf(${items.joinToString()})")
.addKdoc(
"Explanation what the numbers mean: " +
"https://github.com/PrismarineJS/minecraft-data/blob/master/doc/blockCollisionShapes.md"
"https://github.com/PrismarineJS/minecraft-data/blob/master/doc/blockCollisionShapes.md"
)
.build()

View 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.generator
import com.squareup.kotlinpoet.ClassName

View 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.generator
import com.google.common.base.CaseFormat
@ -31,7 +26,7 @@ class EntitiesGenerator(
for (entity in types) {
val entityClassName =
CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, entity.get("name").toString())!! +
"Entity"
"Entity"
val entityClass = ClassName(ENTITY_PACKAGE, entityClassName)
@ -87,7 +82,7 @@ class EntitiesGenerator(
private fun generateEntityStubs(types: List<JsonAny>) {
for (entity in types) {
val name = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, entity.get("name").toString())!! +
"Entity"
"Entity"
if (name == "PaintingEntity") continue
@ -132,7 +127,7 @@ class EntitiesGenerator(
FunSpec.getterBuilder()
.addStatement(
"return when(this) {\n${names.joinToString("\n") { "is $it -> $it" }.prependIndent(" ")}\n" +
" else -> error(\"Unknown entity type\")\n} as EntityType<T>"
" else -> error(\"Unknown entity type\")\n} as EntityType<T>"
)
.build()
)

View 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.generator
import com.squareup.kotlinpoet.FileSpec

View 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.generator
import com.google.common.base.CaseFormat

View 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.generator
import com.jsoniter.JsonIterator

View 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.util
import com.squareup.kotlinpoet.ParameterSpec

View 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.testplugin
import space.uranos.Uranos

View 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.testplugin.anvil
import com.google.common.cache.LoadingCache

View 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.testplugin.anvil
import space.uranos.world.Chunk

View 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.testplugin.anvil
import space.uranos.world.Chunk

View 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.testplugin.anvil
import com.google.common.cache.CacheBuilder

View 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
enum class CardinalDirection(private val direction: Direction) {

View 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
enum class CoordinatePart {

View 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
enum class Difficulty {

View 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
enum class Direction {

View 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
object NamespacedID {

View 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
enum class PaintingMotive(val width: Int, val height: Int) {

View 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
open class Registry<T: RegistryItem> {

View 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
import kotlinx.coroutines.NonCancellable

View 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
import space.uranos.server.Server

View 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
import space.uranos.entity.Position

View 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.chat
import com.squareup.moshi.FromJson

View 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.chat
import com.squareup.moshi.*

View file

@ -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'),

View 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.command
import space.uranos.RegistryItem

View 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.entity
import com.google.common.cache.CacheBuilder

View 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.entity
import kotlin.reflect.KClass

View 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.entity
interface HasMovableHead : Mobile, Entity {

View 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.entity
interface LivingEntity : Entity, Mobile {

View 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.entity
import space.uranos.Vector

View 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.entity
interface ObjectEntity : Entity, Mobile {

View 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.entity
import space.uranos.CardinalDirection

View 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.entity
interface PitchRotatable {

View 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.entity
import space.uranos.player.Player

View 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.entity
import space.uranos.CoordinatePart

View 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.entity
interface YawRotatable {

View 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.entity.event
import space.uranos.entity.Entity

View 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.entity.event
import space.uranos.entity.Entity

View 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.event
import kotlin.contracts.InvocationKind

View 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.event
abstract class Event

View 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.event
import kotlinx.coroutines.suspendCancellableCoroutine

View 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.event
import space.uranos.Uranos

View 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.event
import space.uranos.plugin.Plugin

View 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.event
import space.uranos.Uranos

View 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.event
interface EventHandlerPositionManager {

View 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.logging
import space.uranos.Uranos

View 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.logging
interface LoggingOutputProvider {

View 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.net
import java.util.concurrent.CancellationException

View 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.net
class PacketDecodingException : Exception("Packet decoding failed")

View file

@ -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
*/

View 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.net
import io.netty.buffer.ByteBuf

View 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.net.event
import space.uranos.event.Cancellable

View 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.net.event
import space.uranos.event.Cancellable

View 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.net.event
import space.uranos.event.Cancellable

View 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.net.event
import space.uranos.event.Cancellable

View 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.net.event
import space.uranos.event.Cancellable

View 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.net.event
import space.uranos.entity.Position

View 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.net.event
import space.uranos.event.TargetedEvent

View 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.net.packet
sealed class Packet {

View 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.net.packet
import com.google.common.cache.CacheBuilder

View 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.net.packet
import kotlin.reflect.KClass

View 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.player
enum class ChatMode {

View 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.player
enum class GameMode(val numericID: Int) {

View 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.player
enum class Hand {

View 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.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

View 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.player
data class SkinPartsConfiguration(

View 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.player.event
import space.uranos.event.Event

View 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.player.event
import space.uranos.player.Player

View 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.player.event
import space.uranos.player.Player

View 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.plugin
abstract class Plugin(name: String, version: String) {

View 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.plugin
interface PluginManager {

View 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.recipe
import space.uranos.RegistryItem

View 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.server
import kotlinx.coroutines.CoroutineDispatcher

View 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.server.event
import space.uranos.event.Event

View 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.server.event
import space.uranos.event.Cancellable

View 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.tag
import space.uranos.entity.EntityType

View 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.tag
object TagRegistry {

View 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.util
import kotlin.reflect.KProperty

View 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.util
import kotlin.reflect.KProperty

View 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.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)

View 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.util
import kotlinx.coroutines.asCoroutineDispatcher

View 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.util
class RGBColor(rgb: Int) {

View 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.util
/**

View 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.util
import kotlinx.coroutines.coroutineScope

View 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.util
import kotlinx.coroutines.CoroutineScope

View file

@ -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.

View 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.util.collections
import com.google.common.cache.CacheBuilder

View 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.util.collections
import kotlin.reflect.KClass

View 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.util.collections
import java.util.Spliterator

View 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.util.numbers
import kotlin.experimental.and

View 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.util.numbers
fun Int.clamp(range: IntRange) = maxOf(minOf(range.first, range.last), minOf(maxOf(range.first, range.last), this))

View 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.util.numbers
fun floorMod(dividend: Float, divisor: Float): Float {

View 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.util.numbers
fun Float.mapToUByte(divisor: Float) = ((this / divisor) * 256).toInt().toUByte()

View 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.util.numbers
infix fun Int.untilPossiblyLower(other: Int) =

Some files were not shown because too many files have changed in this diff Show more