-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
63 additions
and
39 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
28 changes: 28 additions & 0 deletions
28
src/main/java/org/violetmoon/quark/mixin/client/ModelManagerMixin.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,28 @@ | ||
package org.violetmoon.quark.mixin.client; | ||
|
||
import net.minecraft.client.resources.model.BakedModel; | ||
import net.minecraft.client.resources.model.ModelManager; | ||
import net.minecraft.client.resources.model.ModelResourceLocation; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.util.profiling.ProfilerFiller; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
import org.violetmoon.quark.addons.oddities.client.model.TinyPotatoModel; | ||
import org.violetmoon.quark.base.Quark; | ||
|
||
import java.util.Map; | ||
|
||
@Mixin(ModelManager.class) | ||
public class ModelManagerMixin { | ||
@Shadow | ||
private Map<ResourceLocation, BakedModel> bakedRegistry; | ||
|
||
@Inject(at = @At(value = "INVOKE_ASSIGN", target = "Lnet/minecraft/client/resources/model/ModelBakery;getBakedTopLevelModels()Ljava/util/Map;", shift = At.Shift.AFTER), method = "apply(Lnet/minecraft/client/resources/model/ModelManager$ReloadState;Lnet/minecraft/util/profiling/ProfilerFiller;)V") | ||
private void onModelBake(ModelManager.ReloadState reloadState, ProfilerFiller profilerFiller, CallbackInfo ci) { | ||
ModelResourceLocation key = new ModelResourceLocation(Quark.asResource("tiny_potato"), "inventory"); | ||
bakedRegistry.put(key, new TinyPotatoModel(bakedRegistry.get(key))); | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/acetater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/ace" | ||
"all": "quark:block/tiny_potato/ace" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/agendertater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/agender" | ||
"all": "quark:block/tiny_potato/agender" | ||
} | ||
} |
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/angry" | ||
"all": "quark:block/tiny_potato/angry" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/aromantictater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/aro" | ||
"all": "quark:block/tiny_potato/aro" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/asexualtater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/ace" | ||
"all": "quark:block/tiny_potato/ace" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/aureylian.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/aureylian" | ||
"all": "quark:block/tiny_potato/aureylian" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/bitater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/bi" | ||
"all": "quark:block/tiny_potato/bi" | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/bosniantater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/bosnia" | ||
"all": "quark:block/tiny_potato/bosnia" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/default.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/default" | ||
"all": "quark:block/tiny_potato/default" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/dinnerbone.json
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
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/enbytater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/wire" | ||
"all": "quark:block/tiny_potato/wire" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/genderfluidtater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/genderfluid" | ||
"all": "quark:block/tiny_potato/genderfluid" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/graytater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/gray" | ||
"all": "quark:block/tiny_potato/gray" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/halloween.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/halloween" | ||
"all": "quark:block/tiny_potato/halloween" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/kingdaddydmac.json
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
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/lesbiantater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/lesbian" | ||
"all": "quark:block/tiny_potato/lesbian" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/pahimar.json
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
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/pantater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/pan" | ||
"all": "quark:block/tiny_potato/pan" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/pridetater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/pride" | ||
"all": "quark:block/tiny_potato/pride" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/robotater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/robo" | ||
"all": "quark:block/tiny_potato/robo" | ||
} | ||
} |
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
src/main/resources/assets/quark/models/tiny_potato/tatersus.json
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
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/quark/models/tiny_potato/transtater.json
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,6 +1,6 @@ | ||
{ | ||
"parent": "quark:tiny_potato/base", | ||
"textures": { | ||
"all": "quark:model/tiny_potato/trans" | ||
"all": "quark:block/tiny_potato/trans" | ||
} | ||
} |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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