Class TeleportGUIButton.Builder
java.lang.Object
de.placeblock.betterinventories.Builder<B,P>
de.placeblock.betterinventories.content.GUISection.Builder<B,P>
de.placeblock.betterinventories.content.item.GUIItem.AbstractBuilder<B,P>
de.placeblock.betterinventories.content.item.GUIButton.AbstractBuilder<TeleportGUIButton.Builder,TeleportGUIButton>
de.placeblock.betterinventories.content.item.impl.TeleportGUIButton.Builder
- Enclosing class:
- TeleportGUIButton
public static class TeleportGUIButton.Builder
extends GUIButton.AbstractBuilder<TeleportGUIButton.Builder,TeleportGUIButton>
Builder for creating
TeleportGUIButton-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the instancelocation(org.bukkit.Location location) Sets the location attributeprotected TeleportGUIButton.Builderself()Returns the Builder instance itselfMethods inherited from class de.placeblock.betterinventories.content.item.GUIButton.AbstractBuilder
cooldown, onClick, onLeftClick, onRightClick, onShiftClick, onShiftLeftClick, onShiftRightClick, permission, soundMethods inherited from class de.placeblock.betterinventories.content.item.GUIItem.AbstractBuilder
itemStackMethods inherited from class de.placeblock.betterinventories.content.GUISection.Builder
adoptMinMax, getMaxSize, getMinSize, maxSize, maxSize, minSize, minSize, size, size
-
Constructor Details
-
Builder
Creates a new Builder- Parameters:
gui- The gui this button belongs to
-
-
Method Details
-
location
Sets the location attribute- Parameters:
location- The location to which the player is teleported- Returns:
- Itself
-
build
Description copied from class:BuilderBuilds the instance- Specified by:
buildin classBuilder<TeleportGUIButton.Builder,TeleportGUIButton> - Returns:
- The new instance
-
self
Description copied from class:BuilderReturns the Builder instance itself- Specified by:
selfin classBuilder<TeleportGUIButton.Builder,TeleportGUIButton> - Returns:
- the Builder instance itself
-