Class EntitySelectorTest

java.lang.Object
net.neoforged.neoforge.oldtest.chat.EntitySelectorTest

public class EntitySelectorTest extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private class 
    Example for a custom selector type, works like @r but for entities.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntitySelectorTest(net.neoforged.bus.api.IEventBus modEventBus)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    healthArgument(net.minecraft.commands.arguments.selector.EntitySelectorParser parser)
    Example for a custom selector argument, checks for the health of the entity
    void
    setup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event)
     

    Methods inherited from class java.lang.Object

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

    • EntitySelectorTest

      public EntitySelectorTest(net.neoforged.bus.api.IEventBus modEventBus)
  • Method Details

    • setup

      public void setup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event)
    • healthArgument

      private void healthArgument(net.minecraft.commands.arguments.selector.EntitySelectorParser parser) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Example for a custom selector argument, checks for the health of the entity
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException