public class SPlayEntityEffectPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
Modifier and Type | Field and Description |
---|---|
private byte |
amplifier |
private int |
duration |
private byte |
effectId |
private int |
entityId |
private byte |
flags |
Constructor and Description |
---|
SPlayEntityEffectPacket() |
SPlayEntityEffectPacket(int entityIdIn,
EffectInstance effect) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesShowParticles() |
byte |
getAmplifier() |
int |
getDuration() |
byte |
getEffectId() |
int |
getEntityId() |
boolean |
getIsAmbient() |
boolean |
isMaxDuration() |
void |
processPacket(IClientPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
boolean |
shouldShowIcon() |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private int entityId
private byte effectId
private byte amplifier
private int duration
private byte flags
public SPlayEntityEffectPacket()
public SPlayEntityEffectPacket(int entityIdIn, EffectInstance effect)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public boolean isMaxDuration()
public void processPacket(IClientPlayNetHandler handler)
processPacket
in interface IPacket<IClientPlayNetHandler>
public int getEntityId()
public byte getEffectId()
public byte getAmplifier()
public int getDuration()
public boolean doesShowParticles()
public boolean getIsAmbient()
public boolean shouldShowIcon()