Interface ResolvableComponent<T>

All Known Implementing Classes:
ResolvableRepairable, ResolvableToolProperties

public interface ResolvableComponent<T>
A resolvable component is a component that was specified in a NonVanillaCustomItemDefinition, and was supposed to be mapped to its MCPL equivalent before registering the item, but was unable to because it needed registry access. As such, an instance of this interface was created, added to the list of the NonVanillaItem's resolvable components, and will be resolved by ComponentCache whenever the session finishes the configuration phase.

Resolvable components aren't needed for vanilla-item overrides, because there Geyser receives the component patch in MCPL format from the server as well.

  • Method Summary

    Modifier and Type
    Method
    Description
     
    default void
    resolve(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents map)
     
    org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T>
     
  • Method Details

    • type

      org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type()
    • resolve

      T resolve(GeyserSession session)
    • resolve

      default void resolve(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents map)