Class ModEvents

java.lang.Object
net.minheur.mhm_bitsnbobs.event.ModEvents

public class ModEvents extends Object
The simple events
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    AddCustomTrades(net.minecraftforge.event.village.VillagerTradesEvent event)
    Adding trades to villager and also to custom villager.
    static void
    AddCustomWanderingTrades(net.minecraftforge.event.village.WandererTradesEvent event)
    Adding trades to wandering traders.
    static void
    onAttachCapabilities(net.minecraftforge.event.AttachCapabilitiesEvent<net.minecraft.world.entity.Entity> event)
    This adds a cold_head capability the the player.
    static void
    onClone(net.minecraftforge.event.entity.player.PlayerEvent.Clone event)
     
    static void
    onPlayerTick(net.minecraftforge.event.TickEvent.PlayerTickEvent event)
    This runs the cold_head tick system when the player ticks.
    static void
    onRegisterReloadListeners(net.minecraftforge.event.AddReloadListenerEvent event)
    This is used to run RconKeywordLoader.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModEvents

      public ModEvents()
  • Method Details

    • AddCustomTrades

      public static void AddCustomTrades(net.minecraftforge.event.village.VillagerTradesEvent event)
      Adding trades to villager and also to custom villager.
      Parameters:
      event - the event is used to create the trades.
    • AddCustomWanderingTrades

      public static void AddCustomWanderingTrades(net.minecraftforge.event.village.WandererTradesEvent event)
      Adding trades to wandering traders.
      Parameters:
      event - the event is used to create the trades.
    • onRegisterReloadListeners

      public static void onRegisterReloadListeners(net.minecraftforge.event.AddReloadListenerEvent event)
      This is used to run RconKeywordLoader.
    • onAttachCapabilities

      public static void onAttachCapabilities(net.minecraftforge.event.AttachCapabilitiesEvent<net.minecraft.world.entity.Entity> event)
      This adds a cold_head capability the the player.
      See Also:
    • onClone

      public static void onClone(net.minecraftforge.event.entity.player.PlayerEvent.Clone event)
    • onPlayerTick

      public static void onPlayerTick(net.minecraftforge.event.TickEvent.PlayerTickEvent event)
      This runs the cold_head tick system when the player ticks.