Class RecoilController
java.lang.Object
me.deecaad.weaponmechanics.weapon.shoot.recoil.RecoilController
public class RecoilController
extends Object
implements Consumer<com.cjcrafter.foliascheduler.TaskImplementation<Void>>
Completely new AAA-like recoil controller that ensures negative deltas are applied during
recovery.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidClears all accumulated/target/residual recoil so the next tick starts from 0.voidonShotFired(RecoilProfile recoil, String weaponTitle, org.bukkit.inventory.ItemStack weaponStack, org.bukkit.entity.Player shooter, org.bukkit.inventory.EquipmentSlot hand)
-
Constructor Details
-
RecoilController
public RecoilController(@NotNull org.bukkit.entity.Player player)
-
-
Method Details
-
hardReset
public void hardReset()Clears all accumulated/target/residual recoil so the next tick starts from 0. -
onShotFired
public void onShotFired(@NotNull RecoilProfile recoil, @Nullable String weaponTitle, @Nullable org.bukkit.inventory.ItemStack weaponStack, @Nullable org.bukkit.entity.Player shooter, @Nullable org.bukkit.inventory.EquipmentSlot hand) -
accept
-