Class ItemPotionContents
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemPotionContents
-
Constructor Summary
ConstructorDescriptionItemPotionContents
(@Nullable Potion potion, @Nullable Integer customColor, List<PotionEffect> customEffects) ItemPotionContents
(@Nullable Potion potion, @Nullable Integer customColor, List<PotionEffect> customEffects, @Nullable String customName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable Integer
@Nullable String
@Nullable Potion
int
hashCode()
static ItemPotionContents
read
(PacketWrapper<?> wrapper) void
setCustomColor
(@Nullable Integer customColor) void
setCustomEffects
(List<PotionEffect> customEffects) void
setCustomName
(@Nullable String customName) void
static void
write
(PacketWrapper<?> wrapper, ItemPotionContents contents)
-
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