Class EntitySelectorTest

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

public class EntitySelectorTest extends Object
  • 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(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