Class CustomItemDisplayContextTest
java.lang.Object
net.minecraftforge.debug.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<Block>
static final RegistryObject<Block>
static final RegistryObject<Item>
static final DeferredRegister<Item>
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 RegistryObject<BlockEntityType<CustomItemDisplayContextTest.ItemHangerBlockEntity>> ITEM_HANGER_BE -
ITEM_HANGER_ITEM
-
-
Constructor Details
-
CustomItemDisplayContextTest
public CustomItemDisplayContextTest()
-
-
Method Details
-
addCreative
-
gatherData
-