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 package space.uranos.mdsp
const val PRISMARINE_BASE_URL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/" 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 package space.uranos.mdsp
import okhttp3.OkHttpClient 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 package space.uranos.mdsp
import java.io.File 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 package space.uranos.mdsp
import com.jsoniter.JsonIterator 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 package space.uranos.mdsp.generator
import com.google.common.base.CaseFormat 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 package space.uranos.mdsp.generator
import com.squareup.kotlinpoet.ClassName 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 package space.uranos.mdsp.generator
import com.google.common.base.CaseFormat 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 package space.uranos.mdsp.generator
import com.squareup.kotlinpoet.FileSpec 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 package space.uranos.mdsp.generator
import com.google.common.base.CaseFormat 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 package space.uranos.mdsp.generator
import com.jsoniter.JsonIterator 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 package space.uranos.mdsp.util
import com.squareup.kotlinpoet.ParameterSpec 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 package space.uranos.testplugin
import space.uranos.Uranos 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 package space.uranos.testplugin.anvil
import com.google.common.cache.LoadingCache 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 package space.uranos.testplugin.anvil
import space.uranos.world.Chunk 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 package space.uranos.testplugin.anvil
import space.uranos.world.Chunk 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 package space.uranos.testplugin.anvil
import com.google.common.cache.CacheBuilder 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 package space.uranos
enum class CardinalDirection(private val direction: Direction) { 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 package space.uranos
enum class CoordinatePart { 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 package space.uranos
enum class Difficulty { 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 package space.uranos
enum class Direction { 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 package space.uranos
object NamespacedID { 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 package space.uranos
enum class PaintingMotive(val width: Int, val height: Int) { 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 package space.uranos
open class Registry<T: RegistryItem> { 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 package space.uranos
import kotlinx.coroutines.NonCancellable 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 package space.uranos
import space.uranos.server.Server 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 package space.uranos
import space.uranos.entity.Position 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 package space.uranos.chat
import com.squareup.moshi.FromJson 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 package space.uranos.chat
import com.squareup.moshi.* 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 package space.uranos.chat
/** /**
* You should use [ChatComponent][space.uranos.chat.ChatComponent] whenever it's possible, but sometimes these codes * 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] * are required, for example in the name of a player in a server list sample.
* [space.uranos.net.packet.status.ResponsePacket.Players.SampleEntry.name].
*/ */
enum class LegacyFormattingCode(private val char: Char) { enum class LegacyFormattingCode(private val char: Char) {
BLACK('0'), 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 package space.uranos.command
import space.uranos.RegistryItem 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 package space.uranos.entity
import com.google.common.cache.CacheBuilder 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 package space.uranos.entity
import kotlin.reflect.KClass 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 package space.uranos.entity
interface HasMovableHead : Mobile, 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 package space.uranos.entity
interface LivingEntity : Entity, Mobile { 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 package space.uranos.entity
import space.uranos.Vector 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 package space.uranos.entity
interface ObjectEntity : Entity, Mobile { 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 package space.uranos.entity
import space.uranos.CardinalDirection 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 package space.uranos.entity
interface PitchRotatable { 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 package space.uranos.entity
import space.uranos.player.Player 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 package space.uranos.entity
import space.uranos.CoordinatePart 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 package space.uranos.entity
interface YawRotatable { 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 package space.uranos.entity.event
import space.uranos.entity.Entity 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 package space.uranos.entity.event
import space.uranos.entity.Entity 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 package space.uranos.event
import kotlin.contracts.InvocationKind 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 package space.uranos.event
abstract class 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 package space.uranos.event
import kotlinx.coroutines.suspendCancellableCoroutine 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 package space.uranos.event
import space.uranos.Uranos 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 package space.uranos.event
import space.uranos.plugin.Plugin 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 package space.uranos.event
import space.uranos.Uranos 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 package space.uranos.event
interface EventHandlerPositionManager { 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 package space.uranos.logging
import space.uranos.Uranos 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 package space.uranos.logging
interface LoggingOutputProvider { 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 package space.uranos.net
import java.util.concurrent.CancellationException 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 package space.uranos.net
class PacketDecodingException : Exception("Packet decoding failed") 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 package space.uranos.net
import com.squareup.moshi.Json import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass import com.squareup.moshi.JsonClass
import space.uranos.chat.TextComponent import space.uranos.chat.TextComponent
import java.util.* import java.util.UUID
/** /**
* Used in the [ServerListInfoRequestEvent][space.uranos.net.event.ServerListInfoRequestEvent]. * Used in the [ServerListInfoRequestEvent][space.uranos.net.event.ServerListInfoRequestEvent].
@ -32,7 +27,7 @@ data class ServerListInfo(
val favicon: String? = null 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 * @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 * 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 package space.uranos.net
import io.netty.buffer.ByteBuf 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 package space.uranos.net.event
import space.uranos.event.Cancellable 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 package space.uranos.net.event
import space.uranos.event.Cancellable 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 package space.uranos.net.event
import space.uranos.event.Cancellable 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 package space.uranos.net.event
import space.uranos.event.Cancellable 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 package space.uranos.net.event
import space.uranos.event.Cancellable 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 package space.uranos.net.event
import space.uranos.entity.Position 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 package space.uranos.net.event
import space.uranos.event.TargetedEvent 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 package space.uranos.net.packet
sealed class 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 package space.uranos.net.packet
import com.google.common.cache.CacheBuilder 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 package space.uranos.net.packet
import kotlin.reflect.KClass 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 package space.uranos.player
enum class ChatMode { 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 package space.uranos.player
enum class GameMode(val numericID: Int) { 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 package space.uranos.player
enum class Hand { 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 package space.uranos.player
import space.uranos.chat.TextComponent import space.uranos.chat.TextComponent
@ -10,7 +5,7 @@ import space.uranos.entity.PlayerEntity
import space.uranos.net.Session import space.uranos.net.Session
import space.uranos.world.Chunk import space.uranos.world.Chunk
import space.uranos.world.VoxelLocation import space.uranos.world.VoxelLocation
import java.util.* import java.util.UUID
interface Player { interface Player {
val scope get() = session.scope 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 package space.uranos.player
data class SkinPartsConfiguration( 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 package space.uranos.player.event
import space.uranos.event.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 package space.uranos.player.event
import space.uranos.player.Player 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 package space.uranos.player.event
import space.uranos.player.Player 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 package space.uranos.plugin
abstract class Plugin(name: String, version: String) { 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 package space.uranos.plugin
interface PluginManager { 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 package space.uranos.recipe
import space.uranos.RegistryItem 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 package space.uranos.server
import kotlinx.coroutines.CoroutineDispatcher 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 package space.uranos.server.event
import space.uranos.event.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 package space.uranos.server.event
import space.uranos.event.Cancellable 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 package space.uranos.tag
import space.uranos.entity.EntityType 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 package space.uranos.tag
object TagRegistry { 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 package space.uranos.util
import kotlin.reflect.KProperty 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 package space.uranos.util
import kotlin.reflect.KProperty 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 package space.uranos.util
import com.squareup.moshi.FromJson import com.squareup.moshi.FromJson
@ -12,7 +7,7 @@ import com.squareup.moshi.ToJson
import space.uranos.chat.ChatColor import space.uranos.chat.ChatColor
import space.uranos.chat.ChatComponent import space.uranos.chat.ChatComponent
import space.uranos.chat.TextComponent import space.uranos.chat.TextComponent
import java.util.* import java.util.UUID
fun Moshi.toJson(value: Map<*, *>): String = adapter(Map::class.java).toJson(value) 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 package space.uranos.util
import kotlinx.coroutines.asCoroutineDispatcher 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 package space.uranos.util
class RGBColor(rgb: Int) { 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 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 package space.uranos.util
import kotlinx.coroutines.coroutineScope 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 package space.uranos.util
import kotlinx.coroutines.CoroutineScope 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 package space.uranos.util
import java.util.* import java.util.UUID
/** /**
* Parses the UUID represented by this string and returns it. * 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 package space.uranos.util.collections
import com.google.common.cache.CacheBuilder 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 package space.uranos.util.collections
import kotlin.reflect.KClass 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 package space.uranos.util.collections
import java.util.Spliterator 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 package space.uranos.util.numbers
import kotlin.experimental.and 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 package space.uranos.util.numbers
fun Int.clamp(range: IntRange) = maxOf(minOf(range.first, range.last), minOf(maxOf(range.first, range.last), this)) 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 package space.uranos.util.numbers
fun floorMod(dividend: Float, divisor: Float): Float { 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 package space.uranos.util.numbers
fun Float.mapToUByte(divisor: Float) = ((this / divisor) * 256).toInt().toUByte() 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 package space.uranos.util.numbers
infix fun Int.untilPossiblyLower(other: Int) = infix fun Int.untilPossiblyLower(other: Int) =

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