Class PixelmonStatisticsMinecraftListener
java.lang.Object
com.pixelmonmod.pixelmon.listener.PixelmonStatisticsMinecraftListener
All the custom stats Pixelmon adds in the
PixelmonStatisticsRegistry
that require listening to events from vanilla Minecraft are awarded values here
through the use of event listeners. The event listeners should try to be kept in an order
closest to the order of the stats in the PixelmonStatisticsRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
onBlockInteract
(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.RightClickBlock playerInteractEvent) static void
onItemInteract
(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.RightClickItem playerInteractEvent) static void
onLogin
(net.neoforged.neoforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event) We add a lot of statistics.static void
onPlayerTick
(net.neoforged.neoforge.event.tick.PlayerTickEvent.Post playerTickEvent)
-
Constructor Details
-
PixelmonStatisticsMinecraftListener
public PixelmonStatisticsMinecraftListener()
-
-
Method Details
-
onLogin
public static void onLogin(net.neoforged.neoforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event) We add a lot of statistics. This makes every stat that we've added appear to developers, even when the stat has a value of 0. For players, this will also make stats appear, but only ones that are relevant to exploration, relevant to progressing the game, or relevant to encouraging the player to interact with all the features we add to the game. -
onPlayerTick
public static void onPlayerTick(net.neoforged.neoforge.event.tick.PlayerTickEvent.Post playerTickEvent) -
onBlockInteract
public static void onBlockInteract(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.RightClickBlock playerInteractEvent) -
onItemInteract
public static void onItemInteract(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.RightClickItem playerInteractEvent)
-