SpongeAPI
SpongeAPI copied to clipboard
API10 - MC 1.19
SpongeAPI | Sponge
API Issues/Breaks:
WorldGen
- [x] WorldGen see https://github.com/SpongePowered/SpongeAPI/pull/2428
RandomSource
- [x]
RandomProvider.Source
- extends
RandomGenerator
- [x]
setSeed
- [x]
fork
- [x]
consume(int)
- [ ]
forkPositional
PositionalRandomFactory
? - [ ]
triangle(double, double)
? - [ ]
nextIntBetweenInclusive(int, int)
?
- extends
- [ ] Factory?
- LegacyRandomSource
- XoroshiroRandomSource
- [ ] PositionalRandomFactory?
-
RandomSource at(int, int, int)
-
RandomSource fromHashOf(String)
-
-
RandomProvider
impls- [x]
Region
-LevelReaderMixin_API
+ WorldLike - [x]
WorldLike
-LevelAccessorMixin_API
- [x]
Entity
-EntityMixin_API
- [x]
- [x]
ItemStackGenerator.Builder#add/addall
/w RandomGenerator instead of Random - [x]
TradeOfferGenerator#apply(entity, RandomProvider.Source)
- [x]
RandomObjectTable#get(RandomGenerator)
and impls - [x]
NestedTableEntry#get(RandomGenerator)
- [x]
VariableAmount#flooredAmount(RandomGenerator)
- [x]
VariableAmount#amount(RandomGenerator)
and impls - [x]
LootTable#get(RandomGenerator)
(unused?) - [x]
SeededVariableAmount#amount(RandomGenerator, T)
- [x]
WeightedCollectionValue#get(RandomGenerator)
Chat
https://github.com/KyoriPowered/adventure/issues/765 / https://github.com/KyoriPowered/adventure/pull/777
- [ ] Signed Text Messages (pending Adventure Library Update)
- [ ] ChatType (pending Adventure Library Update)
- [x] ChatType registry
- [x] ChatTypeTemplate
- [ ] advanced Builder
- ChatDecoration.Parameter enum (SENDER,TEAM_NAME,CONTENT)
- translation_key can contain color codes: §a<%s>: %s
- currently not reloadable (https://bugs.mojang.com/browse/MC-251318)
- dynamically created ChatTypes cannot be used to send messages
- [ ] advanced Builder
- Event
- [x]
PlayerChatEvent.Decorate
- message mutable
- is also called for command messages
- [x]
PlayerChatEvent.Submit
- message component cannot be changed when signed
- sender/target component can be changed
- chattype can be changed
- predicate to filter players receiving
- [x]
SystemMessageEvent
- [ ] event for command messages?
- [x]
- [ ] interface for signed message
- [ ] command parameter for signed message
DataPackTypes
- [ ] game_event tag + registry
- [x] chat_type + registry
- [ ] loot_tables
- [ ]
worldgen/world_preset
(not needed?) - [ ]
worldgen/flat_level_generator_preset
(not needed?)
Other
- [x]
PackContents#paths(..)
- removed
depth
parameter -
filter
Predicate now acceptsResourceKey
instead of String
- removed