Class Through
java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.weaponprojectile.Through
-
Constructor Summary
ConstructorsConstructorDescriptionThrough()Default constructor for serializerThrough(double maximumThroughAmount, ListHolder<org.bukkit.block.BlockType> blocks, ListHolder<org.bukkit.entity.EntityType> entities) -
Method Summary
Modifier and TypeMethodDescriptionclone()doublebooleanhandleThrough(WeaponProjectile projectile, me.deecaad.core.utils.ray.RayTraceResult hit) serialize(me.deecaad.core.file.SerializeData data) voidsetMaximumThroughAmount(double maximumThroughAmount) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
-
Constructor Details
-
Through
public Through()Default constructor for serializer -
Through
public Through(double maximumThroughAmount, ListHolder<org.bukkit.block.BlockType> blocks, ListHolder<org.bukkit.entity.EntityType> entities)
-
-
Method Details
-
getMaximumThroughAmount
public double getMaximumThroughAmount() -
setMaximumThroughAmount
public void setMaximumThroughAmount(double maximumThroughAmount) -
handleThrough
public boolean handleThrough(WeaponProjectile projectile, me.deecaad.core.utils.ray.RayTraceResult hit) - Parameters:
projectile- the projectilehit- the hit entity or block- Returns:
- true if projectile went through, false if projectile should die
-
getKeyword
- Specified by:
getKeywordin interfaceme.deecaad.core.file.Serializer<Through>
-
serialize
@NotNull public Through serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
serializein interfaceme.deecaad.core.file.Serializer<Through>- Throws:
me.deecaad.core.file.SerializerException
-
clone
-