Class CapacitorTextureUpdateTask

java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.CapacitorTextureUpdateTask
All Implemented Interfaces:
Runnable

public class CapacitorTextureUpdateTask extends Object implements Runnable
This task is run whenever a Capacitor needs to update their texture. This must be executed on the main Server Thread!
Author:
TheBusyBiscuit
  • Constructor Details

    • CapacitorTextureUpdateTask

      public CapacitorTextureUpdateTask(@Nonnull org.bukkit.Location l, double charge, double capacity)
      This creates a new CapacitorTextureUpdateTask with the given parameters.
      Parameters:
      l - The Location of the Capacitor
      charge - The amount of charge in this Capacitor
      capacity - The capacity of this Capacitor
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable