Class Pipe

java.lang.Object
io.github.apfelcreme.Pipes.Pipe.Pipe

public class Pipe extends Object
  • Constructor Details

  • Method Details

    • getInputs

      public LinkedHashMap<SimpleLocation,PipeInput> getInputs()
      returns the set of inputs
      Returns:
      the set of inputs
    • getOutputs

      public LinkedHashMap<SimpleLocation,PipeOutput> getOutputs()
      returns the set of outputs which are connected to a sorter
      Returns:
      the set of outputs
    • getChunkLoaders

      public LinkedHashMap<SimpleLocation,ChunkLoader> getChunkLoaders()
      returns the set of furnaces that are connected to a pipe that allows the server to load chunks if parts of the pipe are located in unloaded chunks
      Returns:
      a set of chunk loaders
    • getPipeBlocks

      public LinkedHashSet<SimpleLocation> getPipeBlocks()
      returns the set of glass-blocks the pipe consists of
      Returns:
      the set of pipe blocks
    • getInput

      public PipeInput getInput(SimpleLocation location)
      returns the pipe input object if there is one at the given location
      Parameters:
      location - a SimpleLocation
      Returns:
      a pipeinput
    • getType

      public org.bukkit.Material getType()
      Get the type of this pipe
      Returns:
      The type of the blocks this pipe consists of
    • getLastTransfer

      public int getLastTransfer()
      Get the last tick this pipe transferred something
      Returns:
      The tick number the last transfer happened
    • setLastTransfer

      public void setLastTransfer(int lastTransfer)
      Set the last tick this pipe transferred something
      Parameters:
      lastTransfer - The tick number the last transfer happened
    • getTransfers

      public int getTransfers()
      Get the amount of transfers in this transfer cycle
      Returns:
      the amount of transfers
    • setTransfers

      public void setTransfers(int transfers)
      Set the amount of transfers in this transfer cycle
      Parameters:
      transfers - the amount of transfers
    • highlight

      public void highlight(org.bukkit.entity.Player... players)
      displays particles around a pipe
      Parameters:
      players - The player to show the pipe to, none to show it to everyone
    • getString

      public String getString(org.bukkit.command.CommandSender player)
      returns a string with some info in it
      Parameters:
      player - the player getting the string representation of this Pipe
      Returns:
      a string with some info in it
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • checkLoaded

      public void checkLoaded(SimpleLocation startLocation) throws ChunkNotLoadedException
      Throws:
      ChunkNotLoadedException