-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Dependencies. Bug fixes and BumbleBeast tweaks. Fixes #7
- Loading branch information
Showing
35 changed files
with
192 additions
and
89 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
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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/github/dragoni7/dreamland/client/render/BumbleBeastEyeEntityRenderer.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,13 @@ | ||
package com.github.dragoni7.dreamland.client.render; | ||
|
||
import com.github.dragoni7.dreamland.common.entities.mobs.BumbleBeastEntity; | ||
|
||
import net.minecraft.client.renderer.entity.EntityRendererProvider.Context; | ||
import software.bernie.geckolib3.model.AnimatedGeoModel; | ||
import software.bernie.geckolib3.renderers.geo.GeoEntityRenderer; | ||
|
||
public class BumbleBeastEyeEntityRenderer extends GeoEntityRenderer<BumbleBeastEntity> { | ||
public BumbleBeastEyeEntityRenderer(Context renderManager, AnimatedGeoModel<BumbleBeastEntity> modelProvider) { | ||
super(renderManager, modelProvider); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/java/com/github/dragoni7/dreamland/client/render/BumbleBeastEyeFeatureRenderer.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 com.github.dragoni7.dreamland.client.render; | ||
|
||
import com.github.dragoni7.dreamland.common.entities.mobs.BumbleBeastEntity; | ||
import com.github.dragoni7.dreamland.util.DreamlandLoc; | ||
import com.mojang.blaze3d.vertex.PoseStack; | ||
|
||
import net.minecraft.client.renderer.MultiBufferSource; | ||
import net.minecraft.client.renderer.RenderType; | ||
import net.minecraft.client.renderer.texture.OverlayTexture; | ||
import net.minecraft.resources.ResourceLocation; | ||
import software.bernie.geckolib3.renderers.geo.GeoLayerRenderer; | ||
import software.bernie.geckolib3.renderers.geo.IGeoRenderer; | ||
|
||
public class BumbleBeastEyeFeatureRenderer extends GeoLayerRenderer<BumbleBeastEntity> { | ||
private final BumbleBeastEyeEntityRenderer bumbleBeastEyeRenderer; | ||
private ResourceLocation bumbleBeastAngryLayer = DreamlandLoc.createLoc("textures/entity/bumble_beast_angry_layer.png"); | ||
|
||
public BumbleBeastEyeFeatureRenderer(IGeoRenderer<BumbleBeastEntity> entityRendererIn, BumbleBeastEyeEntityRenderer eyesEntityRenderer) { | ||
super(entityRendererIn); | ||
this.bumbleBeastEyeRenderer = eyesEntityRenderer; | ||
} | ||
|
||
@Override | ||
public void render(PoseStack matrixStackIn, MultiBufferSource bufferIn, int packedLightIn, BumbleBeastEntity bumbleBeastEntity, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch) { | ||
if (bumbleBeastEntity.isAngry()) { | ||
bumbleBeastEyeRenderer.render(getEntityModel().getModel(getEntityModel().getModelResource(bumbleBeastEntity)), | ||
bumbleBeastEntity, partialTicks, RenderType.eyes(bumbleBeastAngryLayer), matrixStackIn, bufferIn, bufferIn.getBuffer(RenderType.eyes(bumbleBeastAngryLayer)), 15728640, OverlayTexture.RED_OVERLAY_V, 1.0F, 1.0F, 1.0F, 1.0F); | ||
} | ||
} | ||
} |
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
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.