Class MinigunPlayerTracker
java.lang.Object
me.desht.pneumaticcraft.common.minigun.MinigunPlayerTracker
Tracks various properties of the minigun item, without the overhead (especially for sync'ing) of using NBT
on the minigun item itself.
-
Method Summary
Modifier and TypeMethodDescriptionintfloatstatic MinigunPlayerTrackergetInstance(net.minecraft.world.entity.player.Player player) floatfloatintbooleanvoidsetActivated(boolean activated) voidsetAmmoColor(int ammoColor) voidsetBarrelRotation(float barrelRotation) voidsetPrevBarrelRotation(float prevBarrelRotation) voidsetRotationSpeed(float rotationSpeed) voidsetTriggerTimeout(int triggerTimeout)
-
Method Details
-
getInstance
-
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)
-