Class DroneEntity.MinigunDrone
java.lang.Object
me.desht.pneumaticcraft.common.minigun.Minigun
me.desht.pneumaticcraft.common.entity.drone.DroneEntity.MinigunDrone
- Enclosing class:
- DroneEntity
-
Field Summary
Fields inherited from class me.desht.pneumaticcraft.common.minigun.Minigun
MAX_GUN_SPEED, minigunPitch, minigunYaw, oldMinigunPitch, oldMinigunYaw, player, world -
Method Summary
Modifier and TypeMethodDescriptionintnet.minecraft.world.phys.Vec3A normalised look vector for the minigunnet.minecraft.world.phys.Vec3The position from which particles originate when the gun is firingfloatGet the source for this sound, where the client should play the sound loop at.booleanbooleanisValid()voidplaySound(net.minecraft.sounds.SoundEvent soundName, float volume, float pitch) voidsetAmmoColorStack(net.minecraft.world.item.ItemStack ammo) voidsetMinigunActivated(boolean activated) Methods inherited from class me.desht.pneumaticcraft.common.minigun.Minigun
clampYaw, clampYaw, dispenserWeightedPercentage, dispenserWeightedPercentage, getAirCapability, getAmmoColor, getAmmoStack, getAttackTarget, getMinigunRotation, getMinigunSpeed, getMinigunTriggerTimeOut, getOldMinigunRotation, getPlayer, getRange, getUpgrades, getWorld, isGunAimedAtTarget, isReturning, isSweeping, setAirHandler, setAmmoStack, setAttackTarget, setIdleYaw, setMinigunRotation, setMinigunSpeed, setMinigunTriggerTimeOut, setOldMinigunRotation, setReturning, setSweeping, setWorld, tick, tryFireMinigun
-
Method Details
-
getSoundSource
Description copied from class:MinigunGet 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:
getSoundSourcein classMinigun- Returns:
- the sound's source
-
isMinigunActivated
public boolean isMinigunActivated()- Specified by:
isMinigunActivatedin classMinigun
-
setMinigunActivated
public void setMinigunActivated(boolean activated) - Specified by:
setMinigunActivatedin classMinigun
-
setAmmoColorStack
public void setAmmoColorStack(@Nonnull net.minecraft.world.item.ItemStack ammo) - Specified by:
setAmmoColorStackin classMinigun
-
getAmmoColor
public int getAmmoColor()- Specified by:
getAmmoColorin classMinigun
-
playSound
public void playSound(net.minecraft.sounds.SoundEvent soundName, float volume, float pitch) -
getMuzzlePosition
public net.minecraft.world.phys.Vec3 getMuzzlePosition()Description copied from class:MinigunThe position from which particles originate when the gun is firing- Specified by:
getMuzzlePositionin classMinigun- Returns:
- a vector position, may be null
-
getLookAngle
public net.minecraft.world.phys.Vec3 getLookAngle()Description copied from class:MinigunA normalised look vector for the minigun- Specified by:
getLookAnglein classMinigun- Returns:
- a vector
-
getParticleScale
public float getParticleScale()- Specified by:
getParticleScalein classMinigun
-
isValid
public boolean isValid()
-