Class MinigunPlayerTracker

java.lang.Object
me.desht.pneumaticcraft.common.minigun.MinigunPlayerTracker

public class MinigunPlayerTracker extends Object
Tracks various properties of the minigun item, without the overhead (especially for sync'ing) of using NBT on the minigun item itself.
  • Method Details

    • getInstance

      public static MinigunPlayerTracker getInstance(net.minecraft.world.entity.player.Player player)
    • isActivated

      public boolean isActivated()
    • setActivated

      public void setActivated(boolean activated)
    • getBarrelRotation

      public float getBarrelRotation()
    • setBarrelRotation

      public void setBarrelRotation(float barrelRotation)
    • getPrevBarrelRotation

      public float getPrevBarrelRotation()
    • setPrevBarrelRotation

      public void setPrevBarrelRotation(float prevBarrelRotation)
    • getTriggerTimeout

      public int getTriggerTimeout()
    • setTriggerTimeout

      public void setTriggerTimeout(int triggerTimeout)
    • getRotationSpeed

      public float getRotationSpeed()
    • setRotationSpeed

      public void setRotationSpeed(float rotationSpeed)
    • getAmmoColor

      public int getAmmoColor()
    • setAmmoColor

      public void setAmmoColor(int ammoColor)