Skip to content

Releases: kochkaev/seasons-api

1.2-BETA-6

1.2-BETA-6 Pre-release
Pre-release

Choose a tag to compare

@kochkaev kochkaev released this 04 May 17:17

Messages now use the more flexible MiniMessage for formatting instead of the outdated color codes. Read more about MiniMessage.
Placeholder API is now a required dependency.


Add-on developers are now encouraged to use Minecraft Text instead of String for any displayed messages (season name, weather name, chat message). Special getText and addTextValue methods have been added to ConfigFileObject and ConfigContentObject for this purpose.
All config files now have a version (default 1). Now you can easily and safely update values in configs to the new format without the user noticing, for this you need to override the update method in your class that extends ConfigFileObject.
MiniMessage is included to the jar!


Full Changelog: 1.2-BETA-5...1.2-BETA-6

1.2-BETA-5

1.2-BETA-5 Pre-release
Pre-release

Choose a tag to compare

@kochkaev kochkaev released this 02 May 09:25

Updated to Minecraft version 1.21.5.

Full Changelog: 1.2-BETA-4...1.2-BETA-5

1.2-BETA-4

1.2-BETA-4 Pre-release
Pre-release

Choose a tag to compare

@kochkaev kochkaev released this 03 Jan 16:29

Fixed crushes when player returns to the title screen after death.

Full Changelog: 1.2-BETA-3...1.2-BETA-4

1.2-BETA-3

1.2-BETA-3 Pre-release
Pre-release

Choose a tag to compare

@kochkaev kochkaev released this 24 Dec 06:03

Players can now customize for themselves whether or not to show the current season and weather information in the action bar.
/seasons actionbar {on/off}

Full Changelog: 1.2-BETA-2...1.2-BETA-3

1.2-BETA-2

1.2-BETA-2 Pre-release
Pre-release

Choose a tag to compare

@kochkaev kochkaev released this 03 Nov 13:24

Fixed identifier error when damage player;
Added addSeason(SeasonObject) and removeSeason(SeasonObject) in WeatherObject;

Full Changelog: 1.2-BETA-1...1.2-BETA-2

1.2-BETA-1

1.2-BETA-1 Pre-release
Pre-release

Choose a tag to compare

@kochkaev kochkaev released this 03 Nov 11:09

Extend and fix events

Full Changelog: 1.2-BETA-0...1.2-BETA-1

1.2-BETA-0

1.2-BETA-0 Pre-release
Pre-release

Choose a tag to compare

@kochkaev kochkaev released this 03 Nov 10:44

Added Events for mod developers

Full Changelog: 1.1...1.2-BETA-0

1.1

Choose a tag to compare

@kochkaev kochkaev released this 25 Oct 12:24

Fixed known issues

  • Now you can skip the thunder by sleeping in a bed;

Full Changelog: 1.0...1.1

1.0

1.0

Choose a tag to compare

@kochkaev kochkaev released this 19 Oct 15:29

Fixed some bugs.


It was tested on Zixa City. If your found a bug, please, report it >> Issues

Full Changelog: 1.0-RC-5...1.0

1.0-RC-5

1.0-RC-5 Pre-release
Pre-release

Choose a tag to compare

@kochkaev kochkaev released this 10 Sep 21:09

Seasons now can cycle!

Seasons changes

All seasons are now stored in a Tree structure consisting of a TreeBranch. Each branch can have many branches but only one parent, can store only one SeasonObject, but one season can be stored in several branches at once and have many parents. Seasons that have no parents (located at the root of the tree) are called highest (first) order seasons. The longer the “path” to a season - the lower its order.

Seasons tree example Tree
A season can store a list of seasons after which it will occur with a specified chance (if there are other seasons that occur after the same season). If at the end of a season it turns out that no season comes after it, a random season is set (given its chance of being set; a chance of 0 means that the season cannot be set automatically).

Configs changes

The config system was completely rewritten and optimized. Now all config files are described in ConfigFileObject and their contents are stored in ConfigContentObject. All values in configs are now automatically typed depending on the default value. Added methods to create a selection from some list. All values are now stored in ConfigValueObject (or ConfigSelectionObject if it is a list).

Methods

  • addHeader - add header.
  • addValue - add parameter.
  • addDynamicSelectionButton - add a selection from a list (as a button in the interface) obtained from the supplier.
  • addStaticSelectionButton - add a selection from the list (as a button in the interface) passed in the method call.
  • addDynamicSelectionDropdown - add a selection from the list (as a dropdown list in the interface) received from the suppler.
  • addStaticSelectionDropdown - add a selection from the list (as a dropdown list in the interface) passed in the method call.
  • addDynamicSelectionSuggestion - add a selection from the list (as a prompt when entering text in the interface), received from the suppler.
  • addStaticSelectionSuggestion - add a selection from the list (in the form of prompts when entering text in the interface), passed when calling the method.

Parameters

  • key - key, used to get the value.
  • value - default value, further typing of the changed value depends on the type of this value.
  • header - header (mostly decoration), specify “” if you want to inherit it from the previous added value or header.
  • description - description of the parameter.
  • consumer - lambda expression executed when the value is changed, receiving the old and new value as input.
  • list - list containing possible values for the parameter.
  • supplier - lambda expression that returns the list.

Challenges Ticker

The ChallengesTicker now ticks not every secondsPerTick seconds, but every ticksPerChallengeTick Minecraft ticks (1 second = 20 Minecraft ticks)


Full Changelog: 1.0-RC-4.3...1.0-RC-5