Class MayFlyAttributeTest
java.lang.Object
net.neoforged.neoforge.oldtest.item.MayFlyAttributeTest
This test mod provides two items for testing the Forge onStopUsing hook. Both items attempt to create an item that increases FOV and allows creative flight when used
stop_using_item:bad_scope
: Implements the item without the onStopUsing to demonstrate the problem. Should see that when selecting another hotbar slot or dropping the item, the FOV is not properly reverted and you remain flying.stop_using_item:good_scope
: Implements the item with onStopUsing to test that the hook hook works. Should see that when selecting another hotbar slot or dropping the item, the FOV is properly reverted and you stop flying.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic DeferredItem
<Item> Successful "scope item" using the Forge method, all cases of stopping using the item will remove the flight abilityprivate static final DeferredRegister.Items
protected static final String
private static final AttributeModifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
-
Field Details
-
MODID
- See Also:
-
ITEMS
-
MODIFIER
-
GOOD
Successful "scope item" using the Forge method, all cases of stopping using the item will remove the flight ability
-
-
Constructor Details
-
MayFlyAttributeTest
public MayFlyAttributeTest(net.neoforged.bus.api.IEventBus modEventBus)
-
-
Method Details
-
addCreative
-