java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemPotionContents

public class ItemPotionContents extends Object
  • Constructor Details

    • ItemPotionContents

      public ItemPotionContents(@Nullable @Nullable Potion potion, @Nullable @Nullable Integer customColor, List<PotionEffect> customEffects)
    • ItemPotionContents

      public ItemPotionContents(@Nullable @Nullable Potion potion, @Nullable @Nullable Integer customColor, List<PotionEffect> customEffects, @Nullable @Nullable String customName)
  • Method Details

    • read

      public static ItemPotionContents read(PacketWrapper<?> wrapper)
    • write

      public static void write(PacketWrapper<?> wrapper, ItemPotionContents contents)
    • getPotion

      @Nullable public @Nullable Potion getPotion()
    • setPotion

      public void setPotion(@Nullable @Nullable Potion potion)
    • getCustomColor

      @Nullable public @Nullable Integer getCustomColor()
    • setCustomColor

      public void setCustomColor(@Nullable @Nullable Integer customColor)
    • getCustomEffects

      public List<PotionEffect> getCustomEffects()
    • setCustomEffects

      public void setCustomEffects(List<PotionEffect> customEffects)
    • getCustomName

      @Nullable public @Nullable String getCustomName()
    • setCustomName

      public void setCustomName(@Nullable @Nullable String customName)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object