First of all you could set the protected field "inWater" to public in Entity.java and after that you have to set inWater to true in your update method. Now Minecraft thinks you are in water.
From
Code:
protected boolean inWater;
to
Your onUpdateMethod
Code:
Minecraft.getMinecraft().thePlayer.inWater = true;
If you want to move like your in water you have to "hook" the boolean function "isInWater()" which is also located in Entity.java and return true, if your module or value is enabled, every time the function gets called.
Code:
public boolean isInWater() {
if(isModuleEnabled("WaterSpoof")) {
return true;
}
return this.inWater;
}
Obviously you have to replace the fictive function "isModuleEnabled("WaterSpoof")" with your own check if module or value is enabled.