-
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.
Finished Snow Golem scarf implementation
- Loading branch information
1 parent
7a98d0b
commit 6036c83
Showing
21 changed files
with
18 additions
and
34 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
15 changes: 0 additions & 15 deletions
15
src/main/java/com/starfish_studios/seasons_greetings/mixin/ExampleMixin.java
This file was deleted.
Oops, something went wrong.
14 changes: 12 additions & 2 deletions
14
src/main/java/com/starfish_studios/seasons_greetings/mixin/SnowGolemRendererMixin.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 |
---|---|---|
@@ -1,25 +1,35 @@ | ||
package com.starfish_studios.seasons_greetings.mixin; | ||
|
||
import com.starfish_studios.seasons_greetings.client.SeasonsGreetingsClient; | ||
import com.starfish_studios.seasons_greetings.client.render.layers.HappyGolemLayer; | ||
import com.starfish_studios.seasons_greetings.client.render.layers.SnowGolemDecorLayer; | ||
import net.minecraft.client.model.SnowGolemModel; | ||
import net.minecraft.client.renderer.entity.EntityRendererProvider; | ||
import net.minecraft.client.renderer.entity.MobRenderer; | ||
import net.minecraft.client.renderer.entity.SnowGolemRenderer; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.entity.EquipmentSlot; | ||
import net.minecraft.world.entity.animal.SnowGolem; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(SnowGolemRenderer.class) | ||
public class SnowGolemRendererMixin extends MobRenderer<SnowGolem, SnowGolemModel<SnowGolem>> { | ||
public SnowGolemRendererMixin(EntityRendererProvider.Context context, SnowGolemModel<SnowGolem> entityModel, float f) { | ||
super(context, entityModel, f); | ||
this.addLayer(new SnowGolemDecorLayer(this, context.getModelSet())); | ||
} | ||
|
||
@Inject(method = "<init>", at = @At("TAIL")) | ||
private void addDecorLayer(EntityRendererProvider.Context context, CallbackInfo ci) { | ||
// this.addLayer(new HappyGolemLayer(this)); | ||
this.addLayer(new SnowGolemDecorLayer(this)); | ||
} | ||
|
||
@Override | ||
public @NotNull ResourceLocation getTextureLocation(SnowGolem entity) { | ||
return ResourceLocation.fromNamespaceAndPath("minecraft", "textures/entity/snow_golem.png"); | ||
return ResourceLocation.withDefaultNamespace("textures/entity/snow_golem.png"); | ||
} | ||
} |
Binary file added
BIN
+557 Bytes
...in/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+581 Bytes
...ain/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+589 Bytes
...in/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/brown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+561 Bytes
...ain/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/cyan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+589 Bytes
...ain/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+568 Bytes
...in/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+562 Bytes
...sources/assets/seasonsgreetings/textures/entity/snow_golem/decor/light_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+573 Bytes
...sources/assets/seasonsgreetings/textures/entity/snow_golem/decor/light_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+593 Bytes
...ain/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/lime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+582 Bytes
.../resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/magenta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+571 Bytes
...n/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+597 Bytes
...ain/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/pink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+574 Bytes
...n/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-27 Bytes
(96%)
...main/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+555 Bytes
...in/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+567 Bytes
...n/resources/assets/seasonsgreetings/textures/entity/snow_golem/decor/yellow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.01 KB
...main/resources/assets/seasonsgreetings/textures/entity/snow_golem/sad_golem.png
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