public class SPacketEntityEffect extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Field and Description |
---|---|
private byte |
amplifier |
private int |
duration |
private byte |
effectId |
private int |
entityId |
private byte |
flags |
Constructor and Description |
---|
SPacketEntityEffect() |
SPacketEntityEffect(int entityIdIn,
PotionEffect effect) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesShowParticles() |
byte |
getAmplifier() |
int |
getDuration() |
byte |
getEffectId() |
int |
getEntityId() |
boolean |
getIsAmbient() |
boolean |
isMaxDuration() |
void |
processPacket(INetHandlerPlayClient handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
private int entityId
private byte effectId
private byte amplifier
private int duration
private byte flags
public SPacketEntityEffect()
public SPacketEntityEffect(int entityIdIn, PotionEffect effect)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public boolean isMaxDuration()
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public int getEntityId()
public byte getEffectId()
public byte getAmplifier()
public int getDuration()
public boolean doesShowParticles()
public boolean getIsAmbient()