Fixes to modded entity class field

This commit is contained in:
JannisX11 2024-05-11 22:24:00 +02:00
parent a14e9993f2
commit 265fb66579
3 changed files with 5 additions and 3 deletions

View File

@ -311,10 +311,11 @@ const MenuBar = {
new BarMenu('uv', UVEditor.menu.structure, {
condition: {modes: ['edit']},
icon: 'photo_size_select_large',
onOpen() {
setActivePanel('uv');
}
}, {icon: 'photo_size_select_large'})
})
new BarMenu('image', [
new MenuSeparator('adjustment'),

View File

@ -242,7 +242,7 @@ const Templates = {
// Paste this class into your mod and generate all required imports
public class %(identifier)<T extends %(entity)> extends EntityModel<%(entity)> {
public class %(identifier)<T extends %(entity)> extends EntityModel<T> {
// This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("modid", "%(identifier_rl)"), "main");
%(fields)
@ -483,7 +483,7 @@ var codec = new Codec('modded_entity', {
let model = Templates.get('file');
model = model.replace(R('bb_version'), Blockbench.version);
model = model.replace(R('entity'), Project.modded_entity_entity_class || '');
model = model.replace(R('entity'), Project.modded_entity_entity_class || 'Entity');
model = model.replace(R('identifier'), identifier);
model = model.replace(R('identifier_rl'), identifier.toLowerCase().replace(' ', '_'));
model = model.replace(R('texture_width'), Project.texture_width);

View File

@ -459,6 +459,7 @@ new Property(ModelProject, 'string', 'model_identifier', {
});
new Property(ModelProject, 'string', 'modded_entity_entity_class', {
label: 'dialog.project.modded_entity_entity_class',
placeholder: 'Entity',
condition: {formats: ['modded_entity']},
});
new Property(ModelProject, 'string', 'modded_entity_version', {