That's one heck of a commit you've got there...

I may have got a bit behind with version control. A lot behind, in fact. Maybe I'll go back and split this sometime - then again, I probably won't. But hey, at least it's here!
This commit is contained in:
Electroblob77
2019-08-18 00:04:18 +01:00
parent 2680d02304
commit f37812be3e
1564 changed files with 47652 additions and 12984 deletions
@@ -1,7 +1,6 @@
package electroblob.wizardry.potion;
import java.util.stream.Collectors;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.potion.PotionEffect;
import net.minecraft.potion.PotionUtils;
import net.minecraft.world.World;
@@ -10,16 +9,23 @@ import net.minecraftforge.event.entity.living.PotionColorCalculationEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import java.util.stream.Collectors;
/**
* Interface for potion effects that spawn custom particles instead of (or as well as) the vanilla 'swirly' particles.
* To hide the vanilla 'swirly' particles, set the potion's liquid colour to 0 (black). By default, potions that implement
* this interface no longer mix their colour with other potions.
* Interface for potion effects that spawn custom particles instead of (or as well as) the vanilla 'swirly' particles.<br>
* <br>
* To hide the vanilla 'swirly' particles, set the potion's liquid colour to 0 (black). By default, potions that
* implement this interface do not mix their colour with other potions.<br>
* <br>
* Potions that implement this interface also implement {@link ISyncedPotion} since any custom particles require syncing
* to disappear correctly when the effect ends; if syncing is not required, override
* {@link ISyncedPotion#shouldSync(EntityLivingBase)} to return false.
*
* @author Electroblob
* @since Wizardry 1.2
*/
@Mod.EventBusSubscriber
public interface ICustomPotionParticles {
public interface ICustomPotionParticles extends ISyncedPotion {
/**
* Called from the event handler to spawn a <b>single</b> custom potion particle. To get an instance of
@@ -65,4 +71,5 @@ public interface ICustomPotionParticles {
p -> !(p instanceof ICustomPotionParticles && !((ICustomPotionParticles)p).shouldMixColour()))
.collect(Collectors.toList())));
}
}