Class EntitySelectorTest
java.lang.Object
net.neoforged.neoforge.oldtest.chat.EntitySelectorTest
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
Example for a custom selector type, works like @r but for entities. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
healthArgument
(EntitySelectorParser parser) Example for a custom selector argument, checks for the health of the entityvoid
setup
(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event)
-
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
-