Class 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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static class
private static final record
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
-
Field Details
-
MOD_ID
- See Also:
-
BLOCKS
-
ITEMS
-
BLOCK_ENTITIES
-
REG_NAME
- See Also:
-
TEST_BLOCK
-
TEST_BLOCK_ITEM
-
TEST_BLOCK_ENTITY
-
-
Constructor Details
-
MegaModelTest
public MegaModelTest(net.neoforged.bus.api.IEventBus modEventBus)
-
-
Method Details
-
addCreative
-