类 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).
-
嵌套类概要
嵌套类修饰符和类型类说明private static class
private static class
private static class
private static final class
private static class
-
字段概要
字段修饰符和类型字段说明static 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
-
构造器概要
构造器 -
方法概要
-
字段详细资料
-
MODID
- 另请参阅:
-
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
-
-
构造器详细资料
-
CustomItemDisplayContextTest
public CustomItemDisplayContextTest(net.neoforged.bus.api.IEventBus modBus)
-
-
方法详细资料
-
addCreative
-
gatherData
-