Class FabricOnlyPlayerContext<SOURCE,P extends net.minecraft.entity.player.PlayerEntity>

java.lang.Object
dev.rollczi.litecommands.fabric.context.FabricOnlyPlayerContext<SOURCE,P>
All Implemented Interfaces:
dev.rollczi.litecommands.context.ContextChainedProvider<SOURCE,P>, dev.rollczi.litecommands.context.ContextProvider<SOURCE,P>

public class FabricOnlyPlayerContext<SOURCE,P extends net.minecraft.entity.player.PlayerEntity> extends Object implements dev.rollczi.litecommands.context.ContextProvider<SOURCE,P>
  • Constructor Details

    • FabricOnlyPlayerContext

      public FabricOnlyPlayerContext(Function<SOURCE,@Nullable P> playerProvider, dev.rollczi.litecommands.message.MessageRegistry<SOURCE> messageRegistry)
  • Method Details

    • provide

      public dev.rollczi.litecommands.context.ContextResult<P> provide(dev.rollczi.litecommands.invocation.Invocation<SOURCE> invocation)
      Specified by:
      provide in interface dev.rollczi.litecommands.context.ContextProvider<SOURCE,P extends net.minecraft.entity.player.PlayerEntity>