Class CustomItemDisplayContextTest
java.lang.Object
net.neoforged.neoforge.oldtest.client.model.CustomItemDisplayContextTest
Test mod for the custom transform types feature.
This test mod adds an item that should be held in the main hand, while another item is in the offhand.
When right-clicked on a block, the item will "hang" the stack from the offhand slot on the wall.
In addition, a replacement model for the stick is provided in the resources.
If the feature is working, the stick will have a custom transform while hanging on walls,
when compared to similar items such as a fishing rod.
Editing that model json will reflect ingame after a resource reload (F3+T).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static class
private static class
private static class
static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DeferredRegister
<BlockEntityType<?>> static final DeferredRegister.Blocks
static final DeferredHolder
<BlockEntityType<?>, BlockEntityType<CustomItemDisplayContextTest.ItemHangerBlockEntity>> static final DeferredBlock
<Block> static final DeferredItem
<Item> static final DeferredRegister.Items
static final String
-
Constructor Summary
-
Method Summary
-
Field Details
-
MODID
- See Also:
-
ITEMS
-
BLOCKS
-
BLOCK_ENTITY_TYPES
-
ITEM_HANGER_BLOCK
-
ITEM_HANGER_BE
public static final DeferredHolder<BlockEntityType<?>,BlockEntityType<CustomItemDisplayContextTest.ItemHangerBlockEntity>> ITEM_HANGER_BE -
ITEM_HANGER_ITEM
-
-
Constructor Details
-
CustomItemDisplayContextTest
public CustomItemDisplayContextTest(net.neoforged.bus.api.IEventBus modBus)
-
-
Method Details
-
addCreative
-
gatherData
-