Class DroneEntity.MinigunDrone

java.lang.Object
me.desht.pneumaticcraft.common.minigun.Minigun
me.desht.pneumaticcraft.common.entity.drone.DroneEntity.MinigunDrone
Enclosing class:
DroneEntity

public class DroneEntity.MinigunDrone extends Minigun
  • Method Details

    • getSoundSource

      public PacketPlayMovingSound.MovingSoundFocus getSoundSource()
      Description copied from class: Minigun
      Get the source for this sound, where the client should play the sound loop at. Can be an Entity, a TileEntity, or a BlockPos; anything else will cause an exception to be thrown.
      Overrides:
      getSoundSource in class Minigun
      Returns:
      the sound's source
    • isMinigunActivated

      public boolean isMinigunActivated()
      Specified by:
      isMinigunActivated in class Minigun
    • setMinigunActivated

      public void setMinigunActivated(boolean activated)
      Specified by:
      setMinigunActivated in class Minigun
    • setAmmoColorStack

      public void setAmmoColorStack(@Nonnull net.minecraft.world.item.ItemStack ammo)
      Specified by:
      setAmmoColorStack in class Minigun
    • getAmmoColor

      public int getAmmoColor()
      Specified by:
      getAmmoColor in class Minigun
    • playSound

      public void playSound(net.minecraft.sounds.SoundEvent soundName, float volume, float pitch)
      Specified by:
      playSound in class Minigun
    • getMuzzlePosition

      public net.minecraft.world.phys.Vec3 getMuzzlePosition()
      Description copied from class: Minigun
      The position from which particles originate when the gun is firing
      Specified by:
      getMuzzlePosition in class Minigun
      Returns:
      a vector position, may be null
    • getLookAngle

      public net.minecraft.world.phys.Vec3 getLookAngle()
      Description copied from class: Minigun
      A normalised look vector for the minigun
      Specified by:
      getLookAngle in class Minigun
      Returns:
      a vector
    • getParticleScale

      public float getParticleScale()
      Specified by:
      getParticleScale in class Minigun
    • isValid

      public boolean isValid()
      Overrides:
      isValid in class Minigun