This update backports functionality and features from version 1.2.3+1.21.5. It also corrects the location of the language files. It purposefully skips version numbers.
This update changes the feature loader and breaks older versions. Users are encouraged to wait to update Platform until updates are available for all of their Platform dependent mods.
Added
- Added persistent player profile caching system.
- Added
ItemCountMapTypeAdapter
andProfileResultMapTypeAdapter
forGsonUtil
. - Added
villagerunknown-platform-flushcaches
command to empty caches. - Added
enablePlayerCaching
option. - Added
flushCacheOnServerRestart
option. - Added
bedClearsWeatherFeature
. - Added
bedInteractionsAlwaysClearWeather
option. - Added
bedInteractionsClearWeatherAtNight
option. - Added
hideNametagsFeature
and correspondingNametagVisibilityPayload
. - Added
hideNametags
option. - Added
hidePlayerNametags
option.
Changed
- Changed location of translation files from
resources/assets/platform
toresources/assets/villagerunknown-platform
. - Changed
featureManager
to use a queuing system. This allows controlled loading of features in mods registered with Platform.
Added
- Added persistent player profile caching system.
- Added
villagerunknown-platform-flushcaches
command to empty caches. - Added RegistryKey property to
VillagerUtil.CustomVillager
to adapt to changes from MC1.21.5.
Changed
- Changed
featureManager
to use a queuing system. This allows controlled loading of features in mods registered with Platform.
Added
- Added
HeadUtil
class. - Added
PotionsUtil
class. - Added
ProfileUtil
class. - Added
VillagerUtil
class. - Added
simulateDeath
method toEntityUtil
class. - Added
createPotionStack
toItemStackUtil
class. - Added
createWaterBottleStack
toItemStackUtil
class. - Added
registerVillager
toRegistryUtil
class. - Added
registerPointOfInterest
toRegistryUtil
class. - Added
registerVillagerProfession
toRegistryUtil
class.
Changed
- Changed Minecraft version requirement to allow the mod to run on versions past 1.21.1.
Added
- Added
define
method toPlatform
class to allow mod developers to change the "villagerunknown-" prefix. - Added
register
method toPlatform
class to allow mod developers to insert aPlatformMod
object directly into the registered mods list. - Added
registered
method toPlatform
class to allow mod developers to check if a mod is registered. - Added
registration
method toPlatform
class to allow mod developers to retrieve a mod'sPlatformMod
object. - Added
reportConversionToLog
method toEntityUtil
class. - Added
reportConversionToChat
method toEntityUtil
class. - Added
registerEntity
method toRegistryUtil
class. - Added
getItemGroup
method toRegistryUtil
class. - Added
registerItemGroup
method toRegistryUtil
class. - Added
addItemToGroup
method toRegistryUtil
class. - Added
capitalizeAll
method toRegistryUtil
class. - Added
LocatorUtil
class to provide methods for locating structures and biomes.
Fixed
- Set pretty printing in Gson to correct formatting of files created by list.StringsList class.
- Resolved an issue causing an incompatibility with Custom Villager Names and Healthy Habits.