Хостинг серверов Minecraft playvds.com
  1. Этот сайт использует файлы cookie. Продолжая пользоваться данным сайтом, Вы соглашаетесь на использование нами Ваших файлов cookie. Узнать больше.
  2. Вы находитесь в русском сообществе Bukkit. Мы - администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на русский язык плагины наших собратьев из других стран.

Something, something, something, 4.1.0

Тема в разделе "Официальные новости Sponge", создана пользователем RuBukBot, 6 июн 2016.

  1. Автор темы
    RuBukBot

    RuBukBot Робот RuBukkit Модератор

    Баллы:
    103
    Something, something, something, 4.1.0
    @gabizou wrote:


    SpongeAPI 4.1.0 is now officially released! While there have not been a great many changes, the implementation has seen a great many changes and improvements over the last few months. It is now recommended that developers target at least SpongeAPI 4.0.3 as 3.X has not received any implementation updates. As mentioned in the past, the next API release is targeting Minecraft 1.9 and as such, API 4.X is dubbed LTS. Both implementations will likewise remain in LTS for Minecraft 1.8.9, however previous versions of the API (including API 3.x) will NOT be receiving updates and fixes.

    Are my API 4.0 plugins going to break?


    NO! They will not! The beauty of the API is that as long as the major version has not changed, plugins written for that version will not break.

    What changed?


    A commit comparison between 4.0.0 and 4.1.0 can be seen here.

    • Asset.readLines and try-with-resources for copyToFile
    • Updates to slf4j-api
    • TextFormats are now ConfigSerializable
    • Add DataView#getCatalogType and introduce AbstractDataBuilder for unified version upgrading processes
    • Add Explosion#shouldDamageEntities
    • Add methods to create TextFormat
    • Add support for generating dummy instances of classes, changes all the default CatalogTypes available in catalogs to non-null objects (aids in IDE null checking)
    • Improved usability of Keys with cached hashing
    • Add CollectionUtils for copying maps.
    • Add World#spawnEntities for spawning a collection of Entity instances
    • Add BookView API, allows developers to present a Book GUI on clients without using a real ItemStack
    • Add Virtual Block Change API to send block changes to clients without affecting the server world
    • Add DataSerializer API for objects that are unable to implement DataSerializable, adds default support for UUIDs, Flow Math, and several other classes
    • Add BlockSnapshot.NONE for air blocks
    • Add AttackEntityEvent, a sister event to DamageEntityEvent specifically called before an Entity attacks another Entity and allows modifying the output of damage (separation of focuses for incoming damage versus outgoing damage)
    • Add DataHolder#tryOffer methods for developers who prefer throwing exceptions if Data is not supported
    • Add @Getter Event Filtering to allow filling parameters of event listeners with an automatic method caller
    • Add ArmorStandData, deprecates previous methods that were used in its place
    • Add methods to ChannelBuf for writing UTF strings, varints and byte arrays
    • World is now a MessageReceiver, add TextTemplate methods to ChatTypeMessageReceiver also adds WorldMessageChannel
    • Allow getting and setting Guardian beam targets
    • Add userOrSource to GenericArguments
    • Add Player#hasPlayedBefore
    • Add GameReloadEvent for when a plugin is requested to perform a soft reload of various things, notably to request a reload of any configurations possible. This is NOT a full plugin reload where the class path is reloaded. The implementation of this event in plugins is entirely up to the plugin developer.
    • Expose ItemStack equality methods
    • Add utility methods for retrieving all CatalogTypes registered by a plugin
    • Refactor Teleporter API, the previous API was never implemented, however plugins NEED to target the new API (API 4.1.0) to make use of it. There were many changes made to the implementation and API is now fully implemented.
    • Add Silent Data

    We (the Sponge Team) hope that you enjoy this update and wish to continue updating the implementations for Minecraft 1.8.9 as any bugs are found.

    What about development for 1.9? I saw some commits and some issues about that...


    1.9.4's development is nearing stability, however the limited amount of testing performed by the few developers who have spent the most time with it are not able to guarantee that the implementations targeting 1.9.4 are bug free. SpongeVanilla and SpongeForge are now releasing builds for 1.9.4, however, please please please make backups before the server crashes them. Also, please note that bleeding is targeting API 5.0.0-SNAPSHOT, so plugins are likely to break if a specific part of the API they use was changed.

    Will the docs be updated?


    @Inscrutable and the SpongeDocs team already have been working on making the jump to 4.1.0, but have stated that they will stick with "whatever is the latest release". That being said, they will be updating the docs soon.

    Posts: 2

    Participants: 1

    Read full topic
     
  2. Mr Hosting
  3. chief

    chief Активный участник Пользователь

    Баллы:
    76
  4. Dereku

    Dereku Старожил Пользователь

    Баллы:
    173
    Skype:
    derek_unavailable
    Имя в Minecraft:
    _Dereku
    Лучше не стоило начинать разработку в принципе.
     

Поделиться этой страницей