Archived
1
0
Fork 0

Change license to Apache 2.0

This commit is contained in:
Moritz Ruth 2021-01-03 15:58:16 +01:00
parent 4e4d2ed65b
commit e35c46b408
No known key found for this signature in database
GPG key ID: AFD57E23E753841B
210 changed files with 1107 additions and 49 deletions

34
.gitignore vendored
View file

@ -1,4 +1,3 @@
.idea/
.gradle/ .gradle/
build/ build/
@ -8,3 +7,36 @@ generatedKotlin/
/buildSrcTemp/ /buildSrcTemp/
/serverData/ /serverData/
# --- IntelliJ ---
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
.idea/artifacts
.idea/compiler.xml
.idea/jarRepositories.xml
.idea/modules.xml
.idea/modules
*.iml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Plugins
.idea/discord.xml

6
.idea/copyright/Uranos.xml generated Normal file
View file

@ -0,0 +1,6 @@
<component name="CopyrightManager">
<copyright>
<option name="notice" value="Copyright 2020-2021 Moritz Ruth and Uranos contributors&#10;Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file" />
<option name="myName" value="Uranos" />
</copyright>
</component>

3
.idea/copyright/profiles_settings.xml generated Normal file
View file

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

5
.idea/misc.xml generated Normal file
View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_14" default="true" project-jdk-name="14" project-jdk-type="JavaSDK" />
</project>

6
.idea/vcs.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View file

@ -1,3 +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.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,3 +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.mdsp package space.uranos.mdsp
import okhttp3.OkHttpClient import okhttp3.OkHttpClient

View file

@ -1,3 +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.mdsp package space.uranos.mdsp
import java.io.File import java.io.File

View file

@ -1,3 +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.mdsp package space.uranos.mdsp
import com.jsoniter.JsonIterator import com.jsoniter.JsonIterator

View file

@ -1,3 +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.mdsp.generator package space.uranos.mdsp.generator
import com.google.common.base.CaseFormat import com.google.common.base.CaseFormat

View file

@ -1,3 +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.mdsp.generator package space.uranos.mdsp.generator
import com.squareup.kotlinpoet.ClassName import com.squareup.kotlinpoet.ClassName

View file

@ -1,3 +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.mdsp.generator package space.uranos.mdsp.generator
import com.google.common.base.CaseFormat import com.google.common.base.CaseFormat

View file

@ -1,11 +1,15 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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.squareup.kotlinpoet.FileSpec
import com.jsoniter.JsonIterator
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import java.io.File import com.squareup.kotlinpoet.PropertySpec
import space.uranos.mdsp.JsonAny import space.uranos.mdsp.JsonAny
import java.io.File
class FluidIDMapGenerator( class FluidIDMapGenerator(
private val workingDir: File, private val workingDir: File,

View file

@ -1,11 +1,16 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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
import com.squareup.kotlinpoet.* import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import java.io.File
import space.uranos.mdsp.util.ConstructorPropertiesHelper
import space.uranos.mdsp.JsonAny import space.uranos.mdsp.JsonAny
import space.uranos.mdsp.util.ConstructorPropertiesHelper
import java.io.File
class ItemTypeEnumGenerator( class ItemTypeEnumGenerator(
private val workingDir: File, private val workingDir: File,

View file

@ -1,8 +1,16 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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
import com.squareup.kotlinpoet.* import com.squareup.kotlinpoet.FileSpec
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import com.squareup.kotlinpoet.PropertySpec
import com.squareup.kotlinpoet.asTypeName
import java.io.File import java.io.File
class TagsGenerator(workingDir: File, private val outputDir: File) { class TagsGenerator(workingDir: File, private val outputDir: File) {

View file

@ -1,3 +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.mdsp.util package space.uranos.mdsp.util
import com.squareup.kotlinpoet.ParameterSpec import com.squareup.kotlinpoet.ParameterSpec

View file

@ -1,3 +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.testplugin package space.uranos.testplugin
import space.uranos.Uranos import space.uranos.Uranos

View file

@ -1,3 +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.testplugin.anvil package space.uranos.testplugin.anvil
import com.google.common.cache.LoadingCache import com.google.common.cache.LoadingCache
@ -5,7 +10,6 @@ import space.uranos.player.Player
import space.uranos.util.createWeakValuesLoadingCache import space.uranos.util.createWeakValuesLoadingCache
import space.uranos.world.* import space.uranos.world.*
import space.uranos.world.block.Air import space.uranos.world.block.Air
import space.uranos.world.block.Block
class AnvilChunk(world: AnvilWorld, key: Key) : Chunk(world, key) { class AnvilChunk(world: AnvilWorld, key: Key) : Chunk(world, key) {
// TODO: Implement light // TODO: Implement light

View file

@ -1,7 +1,11 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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
import space.uranos.world.VoxelLocation
import space.uranos.world.block.Air import space.uranos.world.block.Air
import space.uranos.world.block.Block import space.uranos.world.block.Block

View file

@ -1,3 +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.testplugin.anvil package space.uranos.testplugin.anvil
import space.uranos.world.Chunk import space.uranos.world.Chunk

View file

@ -1,3 +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.testplugin.anvil package space.uranos.testplugin.anvil
import com.google.common.cache.CacheBuilder import com.google.common.cache.CacheBuilder

View file

@ -1,3 +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 package space.uranos
enum class CardinalDirection(private val direction: Direction) { enum class CardinalDirection(private val direction: Direction) {

View file

@ -1,3 +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 package space.uranos
enum class CoordinatePart { enum class CoordinatePart {

View file

@ -1,3 +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 package space.uranos
enum class Difficulty { enum class Difficulty {

View file

@ -1,3 +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 package space.uranos
enum class Direction { enum class Direction {

View file

@ -1,6 +1,9 @@
package space.uranos /*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
*/
import space.uranos.world.Dimension package space.uranos
object NamespacedID { object NamespacedID {
val ID_REGEX = Regex("[0-9a-z._/-]") val ID_REGEX = Regex("[0-9a-z._/-]")

View file

@ -1,3 +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 package space.uranos
import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.ConcurrentHashMap

View file

@ -1,3 +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 package space.uranos
import kotlinx.coroutines.NonCancellable import kotlinx.coroutines.NonCancellable

View file

@ -1,3 +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 package space.uranos
import space.uranos.server.Server import space.uranos.server.Server

View file

@ -1,3 +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 package space.uranos
import space.uranos.util.clamp import space.uranos.util.clamp

View file

@ -1,3 +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
import com.squareup.moshi.FromJson import com.squareup.moshi.FromJson

View file

@ -1,3 +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
import com.squareup.moshi.* import com.squareup.moshi.*

View file

@ -1,3 +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
/** /**

View file

@ -1,3 +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.command package space.uranos.command
import space.uranos.RegistryItem import space.uranos.RegistryItem

View file

@ -1,8 +1,10 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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.event.Event
import space.uranos.event.EventBus
import space.uranos.logging.Logger
import java.util.* import java.util.*
import kotlin.reflect.KClass import kotlin.reflect.KClass

View file

@ -1,7 +1,10 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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.world.block.Block
import space.uranos.world.block.Material
import kotlin.reflect.KClass import kotlin.reflect.KClass
interface EntityType<T : Entity> { interface EntityType<T : Entity> {

View file

@ -1,3 +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.event package space.uranos.event
import kotlin.contracts.InvocationKind import kotlin.contracts.InvocationKind

View file

@ -1,3 +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.event package space.uranos.event
abstract class Event abstract class Event

View file

@ -1,3 +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.event package space.uranos.event
import kotlinx.coroutines.suspendCancellableCoroutine import kotlinx.coroutines.suspendCancellableCoroutine

View file

@ -1,3 +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.event package space.uranos.event
import space.uranos.Uranos import space.uranos.Uranos

View file

@ -1,7 +1,11 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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
import java.util.*
import kotlin.reflect.KClass import kotlin.reflect.KClass
data class EventHandler<T : Event> internal constructor( data class EventHandler<T : Event> internal constructor(

View file

@ -1,3 +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.event package space.uranos.event
import space.uranos.Uranos import space.uranos.Uranos

View file

@ -1,3 +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.event package space.uranos.event
interface EventHandlerPositionManager { interface EventHandlerPositionManager {

View file

@ -1,3 +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.logging package space.uranos.logging
import space.uranos.Uranos import space.uranos.Uranos

View file

@ -1,3 +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.logging package space.uranos.logging
interface LoggingOutputProvider { interface LoggingOutputProvider {

View file

@ -1,3 +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.net package space.uranos.net
import java.util.concurrent.CancellationException import java.util.concurrent.CancellationException

View file

@ -1,3 +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.net package space.uranos.net
class PacketDecodingException : Exception("Packet decoding failed") class PacketDecodingException : Exception("Packet decoding failed")

View file

@ -1,3 +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.net package space.uranos.net
import com.squareup.moshi.Json import com.squareup.moshi.Json

View file

@ -1,3 +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.net package space.uranos.net
import io.netty.buffer.ByteBuf import io.netty.buffer.ByteBuf

View file

@ -1,3 +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.net.event package space.uranos.net.event
import space.uranos.event.Cancellable import space.uranos.event.Cancellable

View file

@ -1,3 +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.net.event package space.uranos.net.event
import space.uranos.event.Cancellable import space.uranos.event.Cancellable

View file

@ -1,3 +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.net.event package space.uranos.net.event
import space.uranos.event.Cancellable import space.uranos.event.Cancellable

View file

@ -1,3 +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.net.event package space.uranos.net.event
import space.uranos.event.Cancellable import space.uranos.event.Cancellable

View file

@ -1,3 +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.net.event package space.uranos.net.event
import space.uranos.event.Cancellable import space.uranos.event.Cancellable

View file

@ -1,3 +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.net.event package space.uranos.net.event
import space.uranos.event.Cancellable import space.uranos.event.Cancellable

View file

@ -1,6 +1,10 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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.Event
import space.uranos.event.TargetedEvent import space.uranos.event.TargetedEvent
import space.uranos.net.Session import space.uranos.net.Session

View file

@ -1,3 +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.net.packet package space.uranos.net.packet
sealed class Packet { sealed class Packet {

View file

@ -1,3 +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.net.packet package space.uranos.net.packet
import com.google.common.cache.CacheBuilder import com.google.common.cache.CacheBuilder

View file

@ -1,3 +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.net.packet package space.uranos.net.packet
import kotlin.reflect.KClass import kotlin.reflect.KClass

View file

@ -1,3 +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.player package space.uranos.player
enum class ChatMode { enum class ChatMode {

View file

@ -1,3 +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.player package space.uranos.player
enum class GameMode(val numericID: Int) { enum class GameMode(val numericID: Int) {

View file

@ -1,3 +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.player package space.uranos.player
enum class Hand { enum class Hand {

View file

@ -1,9 +1,12 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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 kotlinx.coroutines.CoroutineScope
import space.uranos.chat.TextComponent import space.uranos.chat.TextComponent
import space.uranos.net.Session import space.uranos.net.Session
import space.uranos.player.event.PlayerEvent
import space.uranos.world.Chunk import space.uranos.world.Chunk
import space.uranos.world.LocationWithRotation import space.uranos.world.LocationWithRotation
import space.uranos.world.VoxelLocation import space.uranos.world.VoxelLocation

View file

@ -1,3 +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.player package space.uranos.player
data class SkinPartsConfiguration( data class SkinPartsConfiguration(

View file

@ -1,3 +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.player.event package space.uranos.player.event
import space.uranos.event.Event import space.uranos.event.Event

View file

@ -1,3 +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.player.event package space.uranos.player.event
import space.uranos.player.Player import space.uranos.player.Player

View file

@ -1,3 +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.plugin package space.uranos.plugin
abstract class Plugin(name: String, version: String) { abstract class Plugin(name: String, version: String) {

View file

@ -1,3 +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.plugin package space.uranos.plugin
interface PluginManager { interface PluginManager {

View file

@ -1,3 +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.recipe package space.uranos.recipe
import space.uranos.RegistryItem import space.uranos.RegistryItem

View file

@ -1,3 +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.server package space.uranos.server
import space.uranos.Registry import space.uranos.Registry

View file

@ -1,3 +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.server.event package space.uranos.server.event
import space.uranos.event.Event import space.uranos.event.Event

View file

@ -1,3 +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.server.event package space.uranos.server.event
import space.uranos.event.Cancellable import space.uranos.event.Cancellable

View file

@ -1,3 +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.tag package space.uranos.tag
import space.uranos.entity.EntityType import space.uranos.entity.EntityType

View file

@ -1,3 +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.tag package space.uranos.tag
object TagRegistry { object TagRegistry {

View file

@ -1,3 +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.util package space.uranos.util
import kotlin.experimental.and import kotlin.experimental.and

View file

@ -1,3 +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.util package space.uranos.util
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,3 +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.util package space.uranos.util
import kotlinx.coroutines.CoroutineName import kotlinx.coroutines.CoroutineName

View file

@ -1,3 +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.util package space.uranos.util
import com.google.common.cache.CacheBuilder import com.google.common.cache.CacheBuilder

View file

@ -1,3 +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.util package space.uranos.util
import kotlin.reflect.KClass import kotlin.reflect.KClass

View file

@ -1,3 +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.util package space.uranos.util
import kotlin.reflect.KProperty import kotlin.reflect.KProperty

View file

@ -1,3 +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.util package space.uranos.util
import com.squareup.moshi.FromJson import com.squareup.moshi.FromJson

View file

@ -1,9 +1,12 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* 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.google.common.util.concurrent.ThreadFactoryBuilder
import kotlinx.coroutines.asCoroutineDispatcher import kotlinx.coroutines.asCoroutineDispatcher
import java.util.concurrent.Executors import java.util.concurrent.Executors
import java.util.concurrent.ThreadFactory
fun newSingleThreadDispatcher(name: String) = fun newSingleThreadDispatcher(name: String) =
Executors.newSingleThreadExecutor { r -> Thread(r, name) }.asCoroutineDispatcher() Executors.newSingleThreadExecutor { r -> Thread(r, name) }.asCoroutineDispatcher()

View file

@ -1,3 +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.util package space.uranos.util
/** /**

View file

@ -1,3 +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.util package space.uranos.util
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope

View file

@ -1,3 +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.util package space.uranos.util
import java.util.* import java.util.*

View file

@ -1,3 +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.util package space.uranos.util
infix fun Int.untilPossiblyNegative(other: Int) = infix fun Int.untilPossiblyNegative(other: Int) =

View file

@ -1,3 +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.world package space.uranos.world
import space.uranos.RegistryItem import space.uranos.RegistryItem

View file

@ -1,7 +1,11 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
*/
package space.uranos.world package space.uranos.world
import space.uranos.Registry import space.uranos.Registry
import java.lang.IllegalArgumentException
import java.util.concurrent.atomic.AtomicInteger import java.util.concurrent.atomic.AtomicInteger
class BiomeRegistry: Registry<Biome>() { class BiomeRegistry: Registry<Biome>() {

View file

@ -1,3 +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.world package space.uranos.world
import space.uranos.Uranos import space.uranos.Uranos

View file

@ -1,3 +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.world package space.uranos.world
import space.uranos.world.block.Block import space.uranos.world.block.Block

View file

@ -1,3 +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.world package space.uranos.world
data class ChunkLightData( data class ChunkLightData(

View file

@ -1,3 +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.world package space.uranos.world
import space.uranos.RegistryItem import space.uranos.RegistryItem

View file

@ -1,3 +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.world package space.uranos.world
import space.uranos.CoordinatePart import space.uranos.CoordinatePart

View file

@ -1,3 +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.world package space.uranos.world
import space.uranos.world.block.Block import space.uranos.world.block.Block

View file

@ -1,3 +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.world package space.uranos.world
import space.uranos.CoordinatePart import space.uranos.CoordinatePart

View file

@ -1,6 +1,14 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
*/
package space.uranos.world package space.uranos.world
import kotlinx.coroutines.* import kotlinx.coroutines.cancel
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import space.uranos.Uranos import space.uranos.Uranos
import space.uranos.entity.Entity import space.uranos.entity.Entity
import space.uranos.util.newSingleThreadDispatcher import space.uranos.util.newSingleThreadDispatcher

View file

@ -1,3 +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.world.block package space.uranos.world.block

View file

@ -1,6 +1,9 @@
package space.uranos.world.block /*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
*/
import kotlin.annotation.Target package space.uranos.world.block
/** /**
* @suppress * @suppress

View file

@ -1,5 +1,11 @@
/*
* Copyright 2020-2021 Moritz Ruth and Uranos contributors
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file
*/
package space.uranos.world.block package space.uranos.world.block
import space.uranos.world.block.Block.Companion.material
import kotlin.reflect.KClass import kotlin.reflect.KClass
/** /**

View file

@ -1,3 +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.world.block package space.uranos.world.block
import space.uranos.util.KPropertyValuePair import space.uranos.util.KPropertyValuePair

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