Class GeyserDefineCustomItemsEventImpl

java.lang.Object
org.geysermc.geyser.event.type.GeyserDefineCustomItemsEventImpl
All Implemented Interfaces:
org.geysermc.event.Event, org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent

public abstract class GeyserDefineCustomItemsEventImpl extends Object implements org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserDefineCustomItemsEventImpl(com.google.common.collect.Multimap<org.geysermc.geyser.api.util.Identifier,org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> customItems, com.google.common.collect.Multimap<org.geysermc.geyser.api.util.Identifier,org.geysermc.geyser.api.item.custom.v2.NonVanillaCustomItemDefinition> nonVanillaCustomItems)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Map<org.geysermc.geyser.api.util.Identifier,Collection<org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition>>
     
    @NonNull Map<String,Collection<org.geysermc.geyser.api.item.custom.CustomItemData>>
    Deprecated.
    @NonNull List<org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData>
    Deprecated.
    @NonNull Map<org.geysermc.geyser.api.util.Identifier,Collection<org.geysermc.geyser.api.item.custom.v2.NonVanillaCustomItemDefinition>>
     
    boolean
    register(@NonNull String identifier, @NonNull org.geysermc.geyser.api.item.custom.CustomItemData customItemData)
    Deprecated.
    boolean
    register(@NonNull org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData customItemData)
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent

    register, register
  • Constructor Details

    • GeyserDefineCustomItemsEventImpl

      public GeyserDefineCustomItemsEventImpl(com.google.common.collect.Multimap<org.geysermc.geyser.api.util.Identifier,org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> customItems, com.google.common.collect.Multimap<org.geysermc.geyser.api.util.Identifier,org.geysermc.geyser.api.item.custom.v2.NonVanillaCustomItemDefinition> nonVanillaCustomItems)
  • Method Details

    • getExistingCustomItems

      @Deprecated public @NonNull Map<String,Collection<org.geysermc.geyser.api.item.custom.CustomItemData>> getExistingCustomItems()
      Deprecated.
      Specified by:
      getExistingCustomItems in interface org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent
    • customItemDefinitions

      public @NonNull Map<org.geysermc.geyser.api.util.Identifier,Collection<org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition>> customItemDefinitions()
      Specified by:
      customItemDefinitions in interface org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent
    • getExistingNonVanillaCustomItems

      @Deprecated public @NonNull List<org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData> getExistingNonVanillaCustomItems()
      Deprecated.
      Specified by:
      getExistingNonVanillaCustomItems in interface org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent
    • nonVanillaCustomItemDefinitions

      public @NonNull Map<org.geysermc.geyser.api.util.Identifier,Collection<org.geysermc.geyser.api.item.custom.v2.NonVanillaCustomItemDefinition>> nonVanillaCustomItemDefinitions()
      Specified by:
      nonVanillaCustomItemDefinitions in interface org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent
    • register

      @Deprecated public boolean register(@NonNull String identifier, @NonNull org.geysermc.geyser.api.item.custom.CustomItemData customItemData)
      Deprecated.
      Specified by:
      register in interface org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent
    • register

      @Deprecated public boolean register(@NonNull org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData customItemData)
      Deprecated.
      Specified by:
      register in interface org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomItemsEvent