Class CustomType<T>

java.lang.Object
net.dzikoysk.funnycommands.resources.types.AbstractType<T>
net.dzikoysk.funnycommands.resources.types.CustomType<T>
All Implemented Interfaces:
CommandDataType<T>, panda.std.function.TriFunction<Context,org.panda_lang.utilities.inject.Property,String,T>

public class CustomType<T> extends AbstractType<T> implements CommandDataType<T>
  • Constructor Details

    • CustomType

      public CustomType(String name, Class<T> type, panda.std.function.TriFunction<Context,org.panda_lang.utilities.inject.Property,String,T> deserializer)
  • Method Details

    • apply

      public T apply(Context context, org.panda_lang.utilities.inject.Property required, String argument)
      Specified by:
      apply in interface panda.std.function.TriFunction<Context,org.panda_lang.utilities.inject.Property,String,T>