-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more updates and temp removals, stripped out shader work
- Loading branch information
Showing
56 changed files
with
615 additions
and
5,045 deletions.
There are no files selected for viewing
235 changes: 142 additions & 93 deletions
235
src/main/java/extendedrenderer/ParticleManagerExtended.java
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 21 additions & 11 deletions
32
src/main/java/extendedrenderer/ParticleRegistry2ElectricBubbleoo.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,36 +1,46 @@ | ||
package extendedrenderer; | ||
|
||
import weather2.DeferredHelper; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.particle.WaterDropParticle; | ||
import net.minecraft.core.particles.SimpleParticleType; | ||
import net.minecraft.core.particles.ParticleType; | ||
import net.minecraftforge.api.distmarker.Dist; | ||
import net.minecraftforge.api.distmarker.OnlyIn; | ||
import net.minecraftforge.client.event.ParticleFactoryRegisterEvent; | ||
import net.minecraftforge.event.RegistryEvent; | ||
import net.minecraftforge.client.event.RegisterParticleProvidersEvent; | ||
import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.registries.ObjectHolder; | ||
import net.minecraftforge.registries.RegistryObject; | ||
import weather2.Weather; | ||
|
||
@ObjectHolder(Weather.MODID) | ||
//@ObjectHolder(Weather.MODID) | ||
@Mod.EventBusSubscriber(modid = Weather.MODID, bus = Mod.EventBusSubscriber.Bus.MOD) | ||
public class ParticleRegistry2ElectricBubbleoo { | ||
|
||
@ObjectHolder("acidrain_splash") | ||
public static SimpleParticleType ACIDRAIN_SPLASH; | ||
//@ObjectHolder("acidrain_splash") | ||
//public static SimpleParticleType ACIDRAIN_SPLASH; | ||
public static final RegistryObject<SimpleParticleType> ACIDRAIN_SPLASH = Weather.R.particle("acidrain_splash", () -> new SimpleParticleType(false)); | ||
|
||
@SubscribeEvent | ||
/*@SubscribeEvent | ||
public static void registerParticles(RegistryEvent.Register<ParticleType<?>> evt){ | ||
SimpleParticleType acidrain_splash = new SimpleParticleType(false); | ||
acidrain_splash.setRegistryName(Weather.MODID, "acidrain_splash"); | ||
evt.getRegistry().register(acidrain_splash); | ||
} | ||
}*/ | ||
|
||
@OnlyIn(Dist.CLIENT) | ||
/*@OnlyIn(Dist.CLIENT) | ||
@SubscribeEvent | ||
public static void registerParticleFactory(ParticleFactoryRegisterEvent evt){ | ||
Minecraft.getInstance().particleEngine.register(ParticleRegistry2ElectricBubbleoo.ACIDRAIN_SPLASH, | ||
Minecraft.getInstance().particleEngine.register(ParticleRegistry2ElectricBubbleoo.ACIDRAIN_SPLASH.get(), | ||
WaterDropParticle.Provider::new); | ||
}*/ | ||
|
||
@SubscribeEvent | ||
@OnlyIn(Dist.CLIENT) | ||
public static void factories(RegisterParticleProvidersEvent event) { | ||
//event.registerSprite(ACIDRAIN_SPLASH.get(), WaterDropParticleImpl::new); | ||
Minecraft.getInstance().particleEngine.register(new SimpleParticleType(false), WaterDropParticle.Provider::new); | ||
//event.registerSpecial(new SimpleParticleType(false), WaterDropParticle.Provider::new); | ||
} | ||
|
||
public static void bootstrap() {} | ||
} |
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
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
Oops, something went wrong.