Class EffectReplicationPacket

java.lang.Object
etithespirit.orimod.networking.potion.EffectReplicationPacket

public final class EffectReplicationPacket extends Object
A class that represents the data necessary to replicate a potion effect's altered duration across the network.
  • Field Details

    • effect

      public final net.minecraft.resources.ResourceLocation effect
      The actual effect being modified.
    • addedDuration

      public final int addedDuration
      The duration that was added to the effect.
  • Constructor Details

    • EffectReplicationPacket

      public EffectReplicationPacket(net.minecraft.resources.ResourceLocation effect, int addedDuration)
      Constructs a new status effect replication packet.
      Parameters:
      effect - The effect that was modified.
      addedDuration - The change in duration of this effect.