Package io.github.apfelcreme.Pipes.Pipe
Class PipeInput
java.lang.Object
io.github.apfelcreme.Pipes.Pipe.AbstractPipePart
io.github.apfelcreme.Pipes.Pipe.PipeInput
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.apfelcreme.Pipes.Pipe.AbstractPipePart
AbstractPipePart.Option<T>, AbstractPipePart.OptionsList, AbstractPipePart.Value<T>
-
Field Summary
Fields inherited from class io.github.apfelcreme.Pipes.Pipe.AbstractPipePart
OPTIONS_KEY, STORED_TYPE_KEY, TYPE_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected AbstractPipePart.Option<?>
getAvailableOption
(String name) Returns the enum constant of this type with the specified name.org.bukkit.block.BlockFace
String[]
Get the setup of the GUI with the character 'i' for the block's inventory, 's' and 'z' for settings, 'c' for the copy bookprotected AbstractPipePart.Option<?>[]
Get all possible optionstoString()
Methods inherited from class io.github.apfelcreme.Pipes.Pipe.AbstractPipePart
applyBook, getHolder, getLocation, getOption, getOption, getOptionsString, getType, getValue, getValue, hashCode, setOption, setOption, showGui
-
Field Details
-
GUI_SETUP
-
-
Constructor Details
-
PipeInput
public PipeInput(org.bukkit.block.BlockState state)
-
-
Method Details
-
getTargetLocation
-
getFacing
public org.bukkit.block.BlockFace getFacing() -
getGuiSetup
Description copied from class:AbstractPipePart
Get the setup of the GUI with the character 'i' for the block's inventory, 's' and 'z' for settings, 'c' for the copy book- Specified by:
getGuiSetup
in classAbstractPipePart
- Returns:
- The setup for the GUI
-
getOptions
Description copied from class:AbstractPipePart
Get all possible options- Specified by:
getOptions
in classAbstractPipePart
- Returns:
- All possible options of this part
-
getAvailableOption
Description copied from class:AbstractPipePart
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Overrides:
getAvailableOption
in classAbstractPipePart
- Parameters:
name
- The name of the option to get- Returns:
- the enum constant with the specified name
-
equals
- Overrides:
equals
in classAbstractPipePart
-
toString
- Overrides:
toString
in classAbstractPipePart
-