public class NPacketPlayOutEntityEffect extends Object implements NPacketPlayOut
| Modifier and Type | Field and Description |
|---|---|
byte |
amplifier |
int |
duration |
int |
entityId |
byte |
flags
Warn: the meaning of this variable change over the time.
|
boolean |
showParticles |
PotionEffectType |
type |
| Constructor and Description |
|---|
NPacketPlayOutEntityEffect() |
NPacketPlayOutEntityEffect(int entityId,
int typeId,
byte amplifier,
int duration,
byte flags) |
NPacketPlayOutEntityEffect(int entityId,
PotionEffectType type,
byte amplifier,
int duration,
byte flags) |
| Modifier and Type | Method and Description |
|---|---|
PacketType |
getPacketType()
Get type of packet
|
boolean |
isMaxDuration() |
void |
read(PacketSerializer serializer,
Version version)
Read packet from given serializer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, getPacketName, writepublic int entityId
public PotionEffectType type
public byte amplifier
public int duration
public byte flags
public boolean showParticles
public NPacketPlayOutEntityEffect()
public NPacketPlayOutEntityEffect(int entityId,
int typeId,
byte amplifier,
int duration,
byte flags)
public NPacketPlayOutEntityEffect(int entityId,
PotionEffectType type,
byte amplifier,
int duration,
byte flags)
public boolean isMaxDuration()
public void read(PacketSerializer serializer, Version version)
NPacketpublic PacketType getPacketType()
NPacketgetPacketType in interface NPacket