-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, no progress has been made, but I will be working on it. Only reason I am making this commit is, so I can revert changes to this point after trying to fix the accessory hiding not syncing on world join.
- Loading branch information
1 parent
e154ada
commit 1b0b78d
Showing
33 changed files
with
481 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/terramine/client/render/entity/model/mobs/bosses/TestBossModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package terramine.client.render.entity.model.mobs.bosses; | ||
|
||
import net.minecraft.client.model.AnimationUtils; | ||
import net.minecraft.client.model.HumanoidModel; | ||
import net.minecraft.client.model.geom.ModelPart; | ||
import net.minecraft.client.model.geom.builders.*; | ||
import terramine.common.entity.mobs.BossEntityAI; | ||
|
||
/** | ||
* Testing, remove later | ||
*/ | ||
public class TestBossModel<T extends BossEntityAI> extends HumanoidModel<T> { | ||
|
||
public TestBossModel(ModelPart modelPart) { | ||
super(modelPart); | ||
} | ||
|
||
public void setupAnim(T monster, float f, float g, float h, float i, float j) { | ||
super.setupAnim(monster, f, g, h, i, j); | ||
AnimationUtils.animateZombieArms(this.leftArm, this.rightArm, this.isAggressive(), this.attackTime, h); | ||
} | ||
|
||
public static LayerDefinition createLayer() { | ||
return LayerDefinition.create(createMesh(new CubeDeformation(0.0F), 0), 64, 64); | ||
} | ||
|
||
public boolean isAggressive() { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/terramine/client/render/entity/renderer/mobs/bosses/TestBossRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package terramine.client.render.entity.renderer.mobs.bosses; | ||
|
||
import com.mojang.blaze3d.vertex.PoseStack; | ||
import net.fabricmc.api.EnvType; | ||
import net.fabricmc.api.Environment; | ||
import net.minecraft.client.renderer.MultiBufferSource; | ||
import net.minecraft.client.renderer.entity.EntityRendererProvider; | ||
import net.minecraft.client.renderer.entity.MobRenderer; | ||
import net.minecraft.resources.ResourceLocation; | ||
import org.jetbrains.annotations.NotNull; | ||
import terramine.TerraMine; | ||
import terramine.client.render.entity.model.mobs.bosses.TestBossModel; | ||
import terramine.common.entity.mobs.bosses.TestBoss; | ||
import terramine.common.init.ModModelLayers; | ||
|
||
/** | ||
* Testing, remove later | ||
*/ | ||
@Environment(value= EnvType.CLIENT) | ||
public class TestBossRenderer extends MobRenderer<TestBoss, TestBossModel<TestBoss>> { | ||
|
||
private static final ResourceLocation TEXTURE = TerraMine.id("textures/entity/monsters/pre-hardmode/crimera/default.png"); | ||
|
||
public TestBossRenderer(EntityRendererProvider.Context context) { | ||
super(context, new TestBossModel<>(context.bakeLayer(ModModelLayers.TEST_BOSS)), 0.70F); | ||
} | ||
|
||
@Override | ||
public ResourceLocation getTextureLocation(TestBoss entity) { | ||
return TEXTURE; | ||
} | ||
|
||
@Override | ||
public void render(@NotNull TestBoss entity, float entityYaw, float partialTicks, @NotNull PoseStack matrixStack, @NotNull MultiBufferSource buffer, int packedLight) { | ||
super.render(entity, entityYaw, partialTicks, matrixStack, buffer, packedLight); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.