Class PacketTranslatorRegistryEvent

java.lang.Object
org.geysermc.geyser.event.GeyserEvent
org.geysermc.geyser.event.events.registry.PacketTranslatorRegistryEvent

public class PacketTranslatorRegistryEvent extends GeyserEvent
Triggered when registering Packet Translators
  • Constructor Details

    • PacketTranslatorRegistryEvent

      public PacketTranslatorRegistryEvent(@NonNull @NonNull Set<Class<?>> registeredTranslators)
  • Method Details

    • getRegisteredTranslators

      @NonNull public @NonNull Set<Class<?>> getRegisteredTranslators()
      List of registered translators
      Returns:
      get the translators
    • setRegisteredTranslators

      public void setRegisteredTranslators(@NonNull @NonNull Set<Class<?>> registeredTranslators)
      List of registered translators
      Parameters:
      registeredTranslators - set the translators
    • toString

      public String toString()
      Overrides:
      toString in class GeyserEvent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class GeyserEvent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class GeyserEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class GeyserEvent