优化模型代码
This commit is contained in:
parent
9ce5fab6b9
commit
70be8b397c
3 changed files with 38 additions and 37 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package net.mcreator.superbwarfare.client.model.entity;
|
package net.mcreator.superbwarfare.client.model.entity;
|
||||||
|
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
@ -11,10 +10,12 @@ import net.minecraft.client.model.geom.PartPose;
|
||||||
import net.minecraft.client.model.geom.builders.*;
|
import net.minecraft.client.model.geom.builders.*;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public class ModelHandGrenade<T extends Entity> extends EntityModel<T> {
|
public class ModelHandGrenade<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
|
// 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(ModUtils.MODID, "model_hand_grenade_Converted"), "main");
|
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation(ModUtils.MODID, "model_hand_grenade"), "main");
|
||||||
private final ModelPart group;
|
public final ModelPart group;
|
||||||
|
|
||||||
public ModelHandGrenade(ModelPart root) {
|
public ModelHandGrenade(ModelPart root) {
|
||||||
this.group = root.getChild("group");
|
this.group = root.getChild("group");
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"credit": "Made with Blockbench",
|
"credit": "Made with Blockbench",
|
||||||
"textures": {
|
"textures": {
|
||||||
"1": "superbwarfare:item/handgrenade"
|
"1": "superbwarfare:item/hand_grenade"
|
||||||
},
|
},
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
|
|
Before Width: | Height: | Size: 788 B After Width: | Height: | Size: 788 B |
Loading…
Add table
Reference in a new issue