Skip to content

Commit

Permalink
feat(paper): add 1.21.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
StillLutto committed Jan 13, 2025
1 parent 4ad7ab7 commit e3f8d12
Show file tree
Hide file tree
Showing 203 changed files with 3,588 additions and 3,652 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ abstract class AbstractStellarArgument<T>(val parent: AbstractStellarCommand<*>,
return this as T
}

fun addSuggestion(text: String): T = addSuggestion(text, "")

fun addSuggestion(suggestion: Suggestion): T = addSuggestions(listOf(suggestion))

fun addSuggestions(suggestions: List<Suggestion>): T {
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.block
package com.undefined.stellar.argument.block

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.block
package com.undefined.stellar.argument.block

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.custom
package com.undefined.stellar.argument.custom

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down Expand Up @@ -45,4 +45,5 @@ abstract class CustomArgument<T>(
open fun <T> failureExecution(info: CommandContext<CommandSender>, value: T) {}
open fun requirement(): Boolean = true
abstract fun listSuggestions(context: CommandContext<CommandSender>): CompletableFuture<List<Suggestion>>

}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.undefined.stellar.argument.types.custom
package com.undefined.stellar.argument.custom

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.types.primitive.StringArgument
import com.undefined.stellar.argument.types.primitive.StringType
import com.undefined.stellar.argument.primitive.StringArgument
import com.undefined.stellar.argument.primitive.StringType
import com.undefined.stellar.data.suggestion.Suggestion
import java.lang.Enum.valueOf
import kotlin.reflect.KClass
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.custom
package com.undefined.stellar.argument.custom

import com.undefined.stellar.argument.AbstractStellarArgument
import com.undefined.stellar.data.argument.CommandContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.entity
package com.undefined.stellar.argument.entity

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.undefined.stellar.argument.types.entity
package com.undefined.stellar.argument.entity

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class EntityArgument(parent: AbstractStellarCommand<*>, name: String, val type: EntityDisplayType) : AbstractStellarArgument<EntityArgument>(parent, name)
class EntityArgument(parent: AbstractStellarCommand<*>, name: String, val type: com.undefined.stellar.argument.entity.EntityDisplayType) : AbstractStellarArgument<com.undefined.stellar.argument.entity.EntityArgument>(parent, name)

enum class EntityDisplayType {
ENTITY,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.item
package com.undefined.stellar.argument.item

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class ItemArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<ItemArgument>(parent, name)
class ItemArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.item.ItemArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.item
package com.undefined.stellar.argument.item

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.item
package com.undefined.stellar.argument.item

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.item
package com.undefined.stellar.argument.item

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.math
package com.undefined.stellar.argument.math

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.math
package com.undefined.stellar.argument.math

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class AxisArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<AxisArgument>(parent, name)
class AxisArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.math.AxisArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.math
package com.undefined.stellar.argument.math

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.math
package com.undefined.stellar.argument.math

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.math
package com.undefined.stellar.argument.math

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class RotationArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<RotationArgument>(parent, name)
class RotationArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.math.RotationArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.math
package com.undefined.stellar.argument.math

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.misc
package com.undefined.stellar.argument.misc

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.misc
package com.undefined.stellar.argument.misc

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.player
package com.undefined.stellar.argument.player

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.player
package com.undefined.stellar.argument.player

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.primitive
package com.undefined.stellar.argument.primitive

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.primitive
package com.undefined.stellar.argument.primitive

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.undefined.stellar.argument.primitive

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class FloatArgument(parent: AbstractStellarCommand<*>, name: String, val min: Float, val max: Float) : AbstractStellarArgument<com.undefined.stellar.argument.primitive.FloatArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.primitive
package com.undefined.stellar.argument.primitive

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.primitive
package com.undefined.stellar.argument.primitive

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class LongArgument(parent: AbstractStellarCommand<*>, name: String, val min: Long, val max: Long) : AbstractStellarArgument<LongArgument>(parent, name)
class LongArgument(parent: AbstractStellarCommand<*>, name: String, val min: Long, val max: Long) : AbstractStellarArgument<com.undefined.stellar.argument.primitive.LongArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.primitive
package com.undefined.stellar.argument.primitive

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.primitive
package com.undefined.stellar.argument.primitive

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.primitive
package com.undefined.stellar.argument.primitive

import com.undefined.stellar.data.argument.PhraseCommandContext
import com.undefined.stellar.data.execution.PhraseStellarExecution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class ArtArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<ArtArgument>(parent, name)
class ArtArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.registry.ArtArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class AttributeArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<AttributeArgument>(parent, name)
class AttributeArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.registry.AttributeArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class BiomeArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<BiomeArgument>(parent, name)
class BiomeArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.registry.BiomeArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class FrogVariantArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<FrogVariantArgument>(parent, name)
class FrogVariantArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.registry.FrogVariantArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
import com.undefined.stellar.argument.types.world.LocationArgument
import com.undefined.stellar.argument.world.LocationArgument

class MapDecorationTypeArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<LocationArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class MemoryKeyArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<MemoryKeyArgument>(parent, name)
class MemoryKeyArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.registry.MemoryKeyArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument

class StructureTypeArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<StructureTypeArgument>(parent, name)
class StructureTypeArgument(parent: AbstractStellarCommand<*>, name: String) : AbstractStellarArgument<com.undefined.stellar.argument.registry.StructureTypeArgument>(parent, name)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.undefined.stellar.argument.types.registry
package com.undefined.stellar.argument.registry

import com.undefined.stellar.AbstractStellarCommand
import com.undefined.stellar.argument.AbstractStellarArgument
Expand Down
Loading

0 comments on commit e3f8d12

Please sign in to comment.