-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#485 Simplified arena loading using mcutils.
- Loading branch information
BuildTools
committed
Apr 5, 2024
1 parent
038cd4f
commit 1b3d7fe
Showing
50 changed files
with
664 additions
and
1,905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
src/main/java/com/github/shynixn/blockball/contract/ScreenMessageService.kt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
src/main/java/com/github/shynixn/blockball/contract/TemplateService.kt
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/java/com/github/shynixn/blockball/deprecated/YamlSerializationService.kt
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
src/main/java/com/github/shynixn/blockball/deprecated/YamlSerialize.kt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/main/java/com/github/shynixn/blockball/deprecated/YamlSerializer.kt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/main/java/com/github/shynixn/blockball/deprecated/YamlService.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
package com.github.shynixn.blockball.entity | ||
|
||
import com.fasterxml.jackson.annotation.JsonPropertyOrder | ||
import com.github.shynixn.blockball.deprecated.YamlSerialize | ||
import com.github.shynixn.blockball.enumeration.GameType | ||
|
||
@JsonPropertyOrder("name", "displayName", "enabled", "gameType", "corner1", "corner2", "meta") | ||
class Arena : Selection(){ | ||
/** Unique [name] of the arena. */ | ||
@YamlSerialize(orderNumber = 1, value = "name") | ||
var name: String = "" | ||
|
||
/** [displayName] of the arena on signs or messages. */ | ||
@YamlSerialize(orderNumber = 2, value = "displayname") | ||
var displayName: String = "" | ||
|
||
/** Is the arena ready to be placed. */ | ||
@YamlSerialize(orderNumber = 3, value = "enabled") | ||
var enabled: Boolean = true | ||
|
||
/** [gameType] of the arena */ | ||
@YamlSerialize(orderNumber = 4, value = "gamemode") | ||
var gameType: GameType = GameType.HUBGAME | ||
|
||
/** Collection of the arena meta data. */ | ||
@YamlSerialize(orderNumber = 7, value = "meta") | ||
val meta: ArenaMeta = ArenaMeta() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/main/java/com/github/shynixn/blockball/entity/ArenaProtectionMeta.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
package com.github.shynixn.blockball.entity | ||
|
||
import com.github.shynixn.blockball.deprecated.YamlSerialize | ||
|
||
class ArenaProtectionMeta { | ||
/** Velocity being applied when an entity enters the arena which is not an player or armorstand. */ | ||
@YamlSerialize(value = "entity-protection", orderNumber = 2, implementation = Position::class) | ||
var entityProtection: Position = Position(5.0, 2.0, 5.0) | ||
/** Should a velocity be applied to entities which are not an player or armorstand. */ | ||
@YamlSerialize(value = "entity-protection-enabled", orderNumber = 1) | ||
var entityProtectionEnabled: Boolean = true | ||
/** Velocity being applied when a player rejoins the server into a field of an arena. */ | ||
@YamlSerialize(value = "rejoin-protection", orderNumber = 4, implementation = Position::class) | ||
var rejoinProtection: Position = Position(0.0, 2.0, 0.0) | ||
/** Should a velocity be applied to players which rejoin on the field of the arena. */ | ||
@YamlSerialize(value = "rejoin-protection-enabled", orderNumber = 3) | ||
var rejoinProtectionEnabled: Boolean = true | ||
} |
Oops, something went wrong.