-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
284a8d8
commit 87eb893
Showing
5 changed files
with
68 additions
and
3 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
12 changes: 12 additions & 0 deletions
12
...nerations/gg/generations/core/generationscore/client/render/PixelmonInstanceProvider.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,8 +1,20 @@ | ||
package generations.gg.generations.core.generationscore.client.render; | ||
|
||
import com.cobblemon.mod.common.client.render.models.blockbench.repository.PokemonModelRepository; | ||
import generations.gg.generations.core.generationscore.client.render.rarecandy.PixelmonInstance; | ||
import net.minecraft.resources.ResourceLocation; | ||
|
||
import java.util.Set; | ||
|
||
public interface PixelmonInstanceProvider { | ||
public PixelmonInstance getInstance(); | ||
void setInstance(PixelmonInstance instance); | ||
|
||
public ResourceLocation species(); | ||
|
||
public Set<String> aspects(); | ||
|
||
default ResourceLocation getVariant() { | ||
return PokemonModelRepository.INSTANCE.getVariations().get(species()).getTexture(aspects(), 0.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