类 MegaModelTest
java.lang.Object
net.neoforged.neoforge.oldtest.client.model.MegaModelTest
Test mod that demos most Forge-provided model loaders in a single block + item, as well as in-JSON render states
and the refactored immutable ModelData managed by the client level. The block can be found in the decoration tab.
Additionally, some fields in the JSON have deprecated names, so those MUST be updated in 1.20, or the model will break. They have all been annotated accordingly.
- As a block: Composite loader, using 3 child element models, each with a different render type, some using vanilla's elements loader, and some Forge's
- In the right hand: Fluid container with lava (emissive)
- In the left hand: Multi-layer item with chainmail chestplate + emissive bow
Clicking on the upper half of the block will make the model move up by a bit, and clicking on the lower half will move it down.
-
嵌套类概要
嵌套类修饰符和类型类说明static class
private static class
private static final record
private static class
-
字段概要
字段修饰符和类型字段说明private static final DeferredRegister
<BlockEntityType<?>> private static final DeferredRegister.Blocks
private static final DeferredRegister.Items
static final String
private static final String
static final DeferredBlock
<Block> static final DeferredHolder
<BlockEntityType<?>, BlockEntityType<?>> static final DeferredItem
<BlockItem> -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
MOD_ID
- 另请参阅:
-
BLOCKS
-
ITEMS
-
BLOCK_ENTITIES
-
REG_NAME
- 另请参阅:
-
TEST_BLOCK
-
TEST_BLOCK_ITEM
-
TEST_BLOCK_ENTITY
-
-
构造器详细资料
-
MegaModelTest
public MegaModelTest(net.neoforged.bus.api.IEventBus modEventBus)
-
-
方法详细资料
-
addCreative
-