Notify

You don't want to create mixins for each project over and over again for the same events.

Редакция NLZONE · 2 мин чтения · 2 просмотра
Notify
Скачать Notify1.19 – 1.20.4 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

You don't want to create mixins for each project over and over again for the same events.

  • Тип: мод
  • Загрузчик: fabric, quilt
  • Версии Minecraft: 1.19 – 1.20.4
  • Скачиваний на Modrinth: 1 590

Подробно

You don't want to create mixins for each project over and over again for the same events you could just use in the good old paper days. This is why we created this spectacular library/mod, where we just have to add the events once and can use them in every other project!

For this we use alert, a blazing fast event listening utility. See alert's documentation on how to listen to events.

Add the following to your mod's build.gradle.kts file: gradle repositories { mavenCentral() }

dependencies { // ... modImplementation("de.hglabor:notify:1.1.3") }

Then put the built jar file of notify into your mods folder. You should be able to subscribe to the events like this: kotlin // (On the server) subscribeToEvent { logger.info("Player ${it.player.name.string} joined") }

Events currently implemented Subscribing to events on the client is not tested! (server/common events should work on the server)

- PlayerAttackEntityEvent - PlayerHungerChangeEvent - PlayerItemPickupEvent - PlayerPlaceBlockEvent - PlayerSlotClickEvent

- PlayerBreakBlockEvent - PlayerDeathEvent - PlayerInteractItemEvent - PlayerInteractBlockEvent - PlayerItemDropEvent: called when a player attempts to drop an item - PlayerItemDroppedEvent: called after an item was dropped - PrePlayerJoinEvent: called before a player joins the server - PlayerJoinEvent: called when a player joins the server. Allows modification of the join message - PostPlayerJoinEvent: called after a player joins the server - PlayerRemoveEvent: called after a player got removed from the player list - PlayerQuitEvent: called when a player quits the server. Allows modification of the quit message - PlayerSwapHandItemsEvent - PlayerTickEvent - PlayerSetSettingsEvent: called e.g. when player changes client language - EntitySpawnEvent - ProjectileHitEvent: called when a projectile hits another entity

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также