From cd01384229df06f531eb08a3236a0c76e25f6134 Mon Sep 17 00:00:00 2001 From: Zepalesque <60141811+Zepalesque@users.noreply.github.com> Date: Sun, 2 Jun 2024 12:32:14 -0400 Subject: [PATCH] feat: Particle datagen --- src/main/java/net/zepalesque/redux/Redux.java | 2 ++ .../redux/data/gen/ReduxParticleGen.java | 18 ++++++++++++++++++ .../data/prov/ReduxParticleProvider.java | 11 +++++++++++ .../textures/particle/leaves/cloudroot.png | Bin 0 -> 162 bytes 4 files changed, 31 insertions(+) create mode 100644 src/main/java/net/zepalesque/redux/data/gen/ReduxParticleGen.java create mode 100644 src/main/java/net/zepalesque/redux/data/prov/ReduxParticleProvider.java create mode 100644 src/main/resources/assets/aether_redux/textures/particle/leaves/cloudroot.png diff --git a/src/main/java/net/zepalesque/redux/Redux.java b/src/main/java/net/zepalesque/redux/Redux.java index d4efa5884..89411f4ef 100644 --- a/src/main/java/net/zepalesque/redux/Redux.java +++ b/src/main/java/net/zepalesque/redux/Redux.java @@ -42,6 +42,7 @@ import net.zepalesque.redux.data.gen.ReduxItemModelGen; import net.zepalesque.redux.data.gen.ReduxLanguageGen; import net.zepalesque.redux.data.gen.ReduxLootGen; +import net.zepalesque.redux.data.gen.ReduxParticleGen; import net.zepalesque.redux.data.gen.ReduxRecipeGen; import net.zepalesque.redux.data.gen.ReduxRegistrySets; import net.zepalesque.redux.data.gen.tags.ReduxBiomeTagsGen; @@ -127,6 +128,7 @@ private void dataSetup(GatherDataEvent event) { generator.addProvider(event.includeClient(), new ReduxBlockStateGen(packOutput, fileHelper)); generator.addProvider(event.includeClient(), new ReduxItemModelGen(packOutput, fileHelper)); generator.addProvider(event.includeClient(), new ReduxLanguageGen(packOutput)); + generator.addProvider(event.includeClient(), new ReduxParticleGen(packOutput, fileHelper)); // Server Data generator.addProvider(event.includeServer(), new ReduxRecipeGen(packOutput, lookupProvider)); diff --git a/src/main/java/net/zepalesque/redux/data/gen/ReduxParticleGen.java b/src/main/java/net/zepalesque/redux/data/gen/ReduxParticleGen.java new file mode 100644 index 000000000..fe2fe0a6b --- /dev/null +++ b/src/main/java/net/zepalesque/redux/data/gen/ReduxParticleGen.java @@ -0,0 +1,18 @@ +package net.zepalesque.redux.data.gen; + +import net.minecraft.data.PackOutput; +import net.neoforged.neoforge.common.data.ExistingFileHelper; +import net.zepalesque.redux.Redux; +import net.zepalesque.redux.client.particle.ReduxParticles; +import net.zepalesque.redux.data.prov.ReduxParticleProvider; + +public class ReduxParticleGen extends ReduxParticleProvider { + public ReduxParticleGen(PackOutput output, ExistingFileHelper fileHelper) { + super(output, fileHelper); + } + + @Override + protected void addDescriptions() { + this.spriteSet(ReduxParticles.CLOUDROOT_LEAF.get(), Redux.loc("leaves/cloudroot")); + } +} diff --git a/src/main/java/net/zepalesque/redux/data/prov/ReduxParticleProvider.java b/src/main/java/net/zepalesque/redux/data/prov/ReduxParticleProvider.java new file mode 100644 index 000000000..fb60e56c7 --- /dev/null +++ b/src/main/java/net/zepalesque/redux/data/prov/ReduxParticleProvider.java @@ -0,0 +1,11 @@ +package net.zepalesque.redux.data.prov; + +import net.minecraft.data.PackOutput; +import net.neoforged.neoforge.common.data.ExistingFileHelper; +import net.neoforged.neoforge.common.data.ParticleDescriptionProvider; + +public abstract class ReduxParticleProvider extends ParticleDescriptionProvider { + protected ReduxParticleProvider(PackOutput output, ExistingFileHelper fileHelper) { + super(output, fileHelper); + } +} diff --git a/src/main/resources/assets/aether_redux/textures/particle/leaves/cloudroot.png b/src/main/resources/assets/aether_redux/textures/particle/leaves/cloudroot.png new file mode 100644 index 0000000000000000000000000000000000000000..47e342c11b01d22f58eed0eb9e87bc38397c20f1 GIT binary patch literal 162 zcmeAS@N?(olHy`uVBq!ia0vp^EFjFm1|(O0oL2{=7>k44ofy`glX(e}Nq6*hWMJ6X z&;2Kn70Bl-@Q5sCVBk9d!i-thIyr%Y=AJH&Arj%q6(9fHt7lU=z@k+5@6RWBwS!-t z9gS`K{yxr-gR8SqRl;#m___E0^pzH#`2dt)V+j2tZDuQyG6`q|gQu&X%Q~loCIF#` BGo}Cl literal 0 HcmV?d00001