Class RegisterClientCommandsEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterClientCommandsEvent

public class RegisterClientCommandsEvent extends net.minecraftforge.eventbus.api.Event
Register commands to be executed on the client using this event. Some arguments behave differently:
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegisterClientCommandsEvent(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dispatcher

      private final com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher
  • Constructor Details

    • RegisterClientCommandsEvent

      public RegisterClientCommandsEvent(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
  • Method Details

    • getDispatcher

      public com.mojang.brigadier.CommandDispatcher<CommandSourceStack> getDispatcher()
      Returns:
      The command dispatcher for registering commands to be executed on the client