Class ColorEffect

java.lang.Object
net.minecraft.world.effect.MobEffect
de.cech12.colorblindness.ColorEffect
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraftforge.common.extensions.IForgeMobEffect

public class ColorEffect extends net.minecraft.world.effect.MobEffect
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ColorEffect
     
    static final ColorEffect
     
    static final ColorEffect
     
    static final ColorEffect
     
    static final ColorEffect
     
    static final ColorEffect
     
    static final ColorEffect
     
    static final ColorEffect
     

    Fields inherited from class net.minecraft.world.effect.MobEffect

    CODEC, STREAM_CODEC

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ColorEffect(int red, int green, int blue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shouldApplyEffectTickThisTick(int duration, int amplifier)
     

    Methods inherited from class net.minecraft.world.effect.MobEffect

    addAttributeModifier, addAttributeModifiers, applyEffectTick, applyInstantenousEffect, createModifiers, createParticleOptions, getBlendInDurationTicks, getBlendOutAdvanceTicks, getBlendOutDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getEffectRendererInternal, getOrCreateDescriptionId, initializeClient, isBeneficial, isInstantenous, onEffectAdded, onEffectStarted, onMobHurt, onMobRemoved, removeAttributeModifiers, requiredFeatures, requiredFeatures, setBlendDuration, setBlendDuration, withSoundOnAdded

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeMobEffect

    getCurativeItems, getSortOrder
  • Field Details

    • ACHROMATOMALY

      public static final ColorEffect ACHROMATOMALY
    • ACHROMATOPSIA

      public static final ColorEffect ACHROMATOPSIA
    • DEUTERANOMALY

      public static final ColorEffect DEUTERANOMALY
    • DEUTERANOPIA

      public static final ColorEffect DEUTERANOPIA
    • PROTANOMALY

      public static final ColorEffect PROTANOMALY
    • PROTANOPIA

      public static final ColorEffect PROTANOPIA
    • TRITANOMALY

      public static final ColorEffect TRITANOMALY
    • TRITANOPIA

      public static final ColorEffect TRITANOPIA
  • Constructor Details

    • ColorEffect

      protected ColorEffect(int red, int green, int blue)
  • Method Details

    • shouldApplyEffectTickThisTick

      public boolean shouldApplyEffectTickThisTick(int duration, int amplifier)
      Overrides:
      shouldApplyEffectTickThisTick in class net.minecraft.world.effect.MobEffect