tutorial:entity
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:entity [2023/09/13 20:30] – ↷ Links adapted because of a move operation nebelnidas | tutorial:entity [2025/03/31 13:02] (current) – new Identifier -> Identifier.of slainlight | ||
|---|---|---|---|
| Line 62: | Line 62: | ||
| public static final EntityType< | public static final EntityType< | ||
| Registries.ENTITY_TYPE, | Registries.ENTITY_TYPE, | ||
| - | | + | Identifier.of(" |
| - | | + | |
| ); | ); | ||
| Line 131: | Line 131: | ||
| @Override | @Override | ||
| public Identifier getTexture(CubeEntity entity) { | public Identifier getTexture(CubeEntity entity) { | ||
| - | return | + | return Identifier.of(" |
| } | } | ||
| } | } | ||
| Line 140: | Line 140: | ||
| @Environment(EnvType.CLIENT) | @Environment(EnvType.CLIENT) | ||
| public class EntityTestingClient implements ClientModInitializer { | public class EntityTestingClient implements ClientModInitializer { | ||
| - | public static final EntityModelLayer MODEL_CUBE_LAYER = new EntityModelLayer(new Identifier(" | + | public static final EntityModelLayer MODEL_CUBE_LAYER = new EntityModelLayer(Identifier.of(" |
| @Override | @Override | ||
| public void onInitializeClient() { | public void onInitializeClient() { | ||
| Line 202: | Line 202: | ||
| ModelPartData modelPartData = modelData.getRoot(); | ModelPartData modelPartData = modelData.getRoot(); | ||
| modelPartData.addChild(EntityModelPartNames.CUBE, | modelPartData.addChild(EntityModelPartNames.CUBE, | ||
| + | return TexturedModelData.of(modelData, | ||
| } | } | ||
| </ | </ | ||
tutorial/entity.1694637057.txt.gz · Last modified: 2023/09/13 20:30 by nebelnidas