Class MagicEffectSyncS2C
java.lang.Object
com.binaris.wizardry.core.networking.s2c.MagicEffectSyncS2C
- All Implemented Interfaces:
Message
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMagicEffectSyncS2C(int entityId, net.minecraft.world.effect.MobEffectInstance instance, MagicEffectSyncS2C.Action action) MagicEffectSyncS2C(net.minecraft.network.FriendlyByteBuf buf) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.binaris.wizardry.core.networking.abst.Message
handleServer
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
MagicEffectSyncS2C
public MagicEffectSyncS2C(int entityId, net.minecraft.world.effect.MobEffectInstance instance, MagicEffectSyncS2C.Action action) -
MagicEffectSyncS2C
public MagicEffectSyncS2C(net.minecraft.network.FriendlyByteBuf buf)
-
-
Method Details
-
getId
public net.minecraft.resources.ResourceLocation getId() -
encode
public void encode(net.minecraft.network.FriendlyByteBuf pBuf) -
handleClient
public void handleClient()- Specified by:
handleClientin interfaceMessage
-
getEntityId
public int getEntityId() -
getEffectId
public net.minecraft.resources.ResourceLocation getEffectId() -
getAction
-
getDuration
public int getDuration() -
getAmplifier
public int getAmplifier() -
isAmbient
public boolean isAmbient() -
isVisible
public boolean isVisible() -
isShowIcon
public boolean isShowIcon()
-