java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.weaponprojectile.Through
All Implemented Interfaces:
Cloneable, me.deecaad.core.file.Serializer<Through>

public class Through extends Object implements me.deecaad.core.file.Serializer<Through>, Cloneable
  • 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 projectile
      hit - the hit entity or block
      Returns:
      true if projectile went through, false if projectile should die
    • getKeyword

      public String getKeyword()
      Specified by:
      getKeyword in interface me.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:
      serialize in interface me.deecaad.core.file.Serializer<Through>
      Throws:
      me.deecaad.core.file.SerializerException
    • clone

      public Through clone()
      Overrides:
      clone in class Object