mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-11 16:12:06 +08:00
Fixes to modded entity class field
This commit is contained in:
parent
a14e9993f2
commit
265fb66579
@ -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'),
|
||||
|
@ -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);
|
||||
|
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user