-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* missed data generater stuff * Dynamite now throwable by dispenser * Add Spears * Update items picture * remove mixin * fixes with removed mixin * remove unused stuff * enchantablity for spear * cleaning * added remaining glass types * update screenshots
- Loading branch information
1 parent
26bce39
commit a557cb3
Showing
538 changed files
with
8,846 additions
and
261 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
15 changes: 0 additions & 15 deletions
15
src/client/java/com/kayhennig/vanplusplus/mixin/client/ExampleClientMixin.java
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
...g/vanplusplus/DynamiteEntityRenderer.java → ...render/entity/DynamiteEntityRenderer.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
4 changes: 2 additions & 2 deletions
4
...vanplusplus/ShelfBlockEntityRenderer.java → ...nder/entity/ShelfBlockEntityRenderer.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
52 changes: 52 additions & 0 deletions
52
src/client/java/com/kayhennig/vanplusplus/render/entity/SpearEntityRenderer.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,52 @@ | ||
package com.kayhennig.vanplusplus.render.entity; | ||
|
||
import com.kayhennig.vanplusplus.Vanillaplusplus; | ||
import com.kayhennig.vanplusplus.entity.projectile.SpearEntity; | ||
|
||
import net.fabricmc.api.EnvType; | ||
import net.fabricmc.api.Environment; | ||
import net.minecraft.client.render.OverlayTexture; | ||
import net.minecraft.client.render.VertexConsumerProvider; | ||
import net.minecraft.client.render.entity.EntityRenderer; | ||
import net.minecraft.client.render.entity.EntityRendererFactory; | ||
import net.minecraft.client.render.item.ItemRenderer; | ||
import net.minecraft.client.render.model.json.ModelTransformationMode; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.util.math.MathHelper; | ||
import net.minecraft.util.math.RotationAxis; | ||
|
||
@Environment(EnvType.CLIENT) | ||
public class SpearEntityRenderer extends EntityRenderer<SpearEntity> { | ||
private final ItemRenderer itemRenderer; | ||
|
||
public SpearEntityRenderer(EntityRendererFactory.Context context) { | ||
super(context); | ||
this.itemRenderer = context.getItemRenderer(); | ||
} | ||
|
||
public void render(SpearEntity spearEntity, float f, float g, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i) { | ||
matrixStack.push(); | ||
matrixStack.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(MathHelper.lerp(g, spearEntity.prevYaw, spearEntity.getYaw()) - 90.0F)); | ||
matrixStack.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(MathHelper.lerp(g, spearEntity.prevPitch, spearEntity.getPitch()) - 45.0F)); | ||
this.itemRenderer.renderItem( | ||
spearEntity.getStack(), | ||
ModelTransformationMode.GROUND, | ||
i, | ||
OverlayTexture.DEFAULT_UV, | ||
matrixStack, | ||
vertexConsumerProvider, | ||
spearEntity.getWorld(), | ||
spearEntity.getId() | ||
); | ||
matrixStack.pop(); | ||
super.render(spearEntity, f, g, matrixStack, vertexConsumerProvider, i); | ||
} | ||
|
||
@Override | ||
public Identifier getTexture(SpearEntity entity) { | ||
// get the texture of the spear | ||
return Identifier.of(Vanillaplusplus.MOD_ID, entity.getStack().getItem().getTranslationKey()); | ||
} | ||
|
||
} |
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
8 changes: 4 additions & 4 deletions
8
src/main/generated/.cache/5ee0bcff0625fa81235b2c670158b490b66f9b28
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.