类 LaserInstance

java.lang.Object
mod.chloeprime.gunsmithlib.client.laser.LaserInstance

@Internal public class LaserInstance extends Object
  • 字段详细资料

    • type

      public final LaserType type
    • hitLocation

      public net.minecraft.world.phys.Vec3 hitLocation
    • startPos

      public net.minecraft.world.phys.Vec3 startPos
    • length

      public float length
    • roll

      public final float roll
    • localSpawnTime

      public long localSpawnTime
    • shooter

      public final WeakReference<net.minecraft.world.entity.Entity> shooter
  • 构造器详细资料

    • LaserInstance

      public LaserInstance(LaserType type, net.minecraft.world.phys.Vec3 hitLocation, double length, net.minecraft.world.phys.Vec3 startPos, net.minecraft.world.entity.Entity shooter)
  • 方法详细资料

    • refresh

      public void refresh(float partial)
    • getShooter

      public Optional<net.minecraft.world.entity.Entity> getShooter()