Class EffectReplicationPacket
java.lang.Object
etithespirit.orimod.networking.potion.EffectReplicationPacket
A class that represents the data necessary to replicate a potion effect's altered duration across the network.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
The duration that was added to the effect.final net.minecraft.resources.ResourceLocation
The actual effect being modified. -
Constructor Summary
ConstructorsConstructorDescriptionEffectReplicationPacket
(net.minecraft.resources.ResourceLocation effect, int addedDuration) Constructs a new status effect replication packet. -
Method Summary
-
Field Details
-
effect
public final net.minecraft.resources.ResourceLocation effectThe actual effect being modified. -
addedDuration
public final int addedDurationThe 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.
-