Class RemoveOnBlockCollisionProjectile
java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.AProjectile
me.deecaad.weaponmechanics.weapon.projectile.RemoveOnBlockCollisionProjectile
Really lightweight remove on block collision projectile. This considers all blocks as 1x1x1 and
is removed on any collision including passable blocks.
This doesn't check entity collisions.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoveOnBlockCollisionProjectile(org.bukkit.Location location, org.bukkit.util.Vector motion) RemoveOnBlockCollisionProjectile(org.bukkit.Location location, org.bukkit.util.Vector motion, me.deecaad.core.compatibility.entity.FakeEntity disguise) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method updates the projectile's position/velocity, and handles all physics interactions during that movement.Methods inherited from class me.deecaad.weaponmechanics.weapon.projectile.AProjectile
addDistanceTravelled, addProjectileScript, getAliveTicks, getBukkitLocation, getCurrentBlock, getDisguise, getDistanceTravelled, getDrag, getGravity, getIntTag, getLastLocation, getLocation, getMaximumAliveTicks, getMaximumSpeed, getMinimumSpeed, getMotion, getMotionLength, getNormalizedMotion, getShooter, getTag, getWorld, getX, getY, getZ, isDead, isOwnedByCurrentRegion, isRemoveAtMaximumSpeed, isRemoveAtMinimumSpeed, onCollide, onEnd, onStart, remove, scriptEvent, setIntTag, setLocation, setMotion, setRawLocation, setTag, spawnDisguise, tick, updateDisguise
-
Constructor Details
-
RemoveOnBlockCollisionProjectile
public RemoveOnBlockCollisionProjectile(org.bukkit.Location location, org.bukkit.util.Vector motion) -
RemoveOnBlockCollisionProjectile
public RemoveOnBlockCollisionProjectile(org.bukkit.Location location, org.bukkit.util.Vector motion, me.deecaad.core.compatibility.entity.FakeEntity disguise)
-
-
Method Details
-
updatePosition
public boolean updatePosition()Description copied from class:AProjectileThis method updates the projectile's position/velocity, and handles all physics interactions during that movement. This method also updatesAProjectile.distanceTravelled.- Specified by:
updatePositionin classAProjectile- Returns:
- true if projectile should be removed from projectile runnable
-