java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.PotionContents

public class PotionContents extends Object
  • Constructor Details

    • PotionContents

      public PotionContents(int potionId, int customColor, List<MobEffectInstance> customEffects, @Nullable String customName)
  • Method Details

    • getPotionId

      public int getPotionId()
    • getCustomColor

      public int getCustomColor()
    • getCustomEffects

      public List<MobEffectInstance> getCustomEffects()
    • getCustomName

      public @Nullable String getCustomName()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object