Class BukkitConverters.IgnoreNullConverter<TType>

java.lang.Object
com.comphenix.protocol.wrappers.BukkitConverters.IgnoreNullConverter<TType>
Type Parameters:
TType - - type that can be converted.
All Implemented Interfaces:
EquivalentConverter<TType>
Enclosing class:
BukkitConverters

@Deprecated public abstract static class BukkitConverters.IgnoreNullConverter<TType> extends Object implements EquivalentConverter<TType>
Represents a typical equivalence converter.
  • Constructor Details

    • IgnoreNullConverter

      public IgnoreNullConverter()
      Deprecated.
  • Method Details

    • getGeneric

      public final Object getGeneric(TType specific)
      Deprecated.
      Description copied from interface: EquivalentConverter
      Retrieve a copy of the generic type from a specific type.

      This is usually a native net.minecraft.server type in Minecraft.

      Specified by:
      getGeneric in interface EquivalentConverter<TType>
      Parameters:
      specific - - the specific type we need to copy.
      Returns:
      A copy of the specific type.
    • getGenericValue

      public abstract Object getGenericValue(TType specific)
      Deprecated.
      Retrieve a copy of the actual generic value.
      Parameters:
      specific - - the specific type-
      Returns:
      A copy of the specific type.
    • getSpecific

      public final TType getSpecific(Object generic)
      Deprecated.
      Description copied from interface: EquivalentConverter
      Retrieve a copy of the specific type using an instance of the generic type.

      This is usually a wrapper type in the Bukkit API or ProtocolLib API.

      Specified by:
      getSpecific in interface EquivalentConverter<TType>
      Parameters:
      generic - - the generic type.
      Returns:
      The new specific type.
    • getSpecificValue

      public abstract TType getSpecificValue(Object generic)
      Deprecated.
      Retrieve a copy of the specific type using an instance of the generic type.
      Parameters:
      generic - - generic type.
      Returns:
      A copy of the specific type.
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object