From 34b3fe93bb479598e7618e96597b080924bf335c Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Mon, 13 Jan 2020 18:55:36 +0000 Subject: [PATCH] Bit of an oversight there, this is supposed to be an API after all --- .../client/particle/ParticleWizardry.java | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/main/java/electroblob/wizardry/client/particle/ParticleWizardry.java b/src/main/java/electroblob/wizardry/client/particle/ParticleWizardry.java index 1172bb34..1b91c6aa 100644 --- a/src/main/java/electroblob/wizardry/client/particle/ParticleWizardry.java +++ b/src/main/java/electroblob/wizardry/client/particle/ParticleWizardry.java @@ -525,30 +525,42 @@ public abstract class ParticleWizardry extends Particle { // =============================================== Helper Methods =============================================== - + + /** Internal overload for {@link ParticleWizardry#generateTextures(String, String, int)} which uses wizardry's mod + * ID automatically. */ + public static ResourceLocation[] generateTextures(String stem, int n){ + return generateTextures(Wizardry.MODID, stem, n); + } + /** Static helper method that generates an array of n ResourceLocations using the particle file naming convention, * which is the given stem plus an underscore plus the integer index. */ - public static ResourceLocation[] generateTextures(String stem, int n){ + public static ResourceLocation[] generateTextures(String modID, String stem, int n){ ResourceLocation[] textures = new ResourceLocation[n]; for(int i=0; i