Interface MerchantInventoryViewBuilder<V extends InventoryView>
- Type Parameters:
V
- the type of InventoryView created by this builder
- All Superinterfaces:
InventoryViewBuilder<V>
@Experimental
public interface MerchantInventoryViewBuilder<V extends InventoryView>
extends InventoryViewBuilder<V>
An InventoryViewBuilder for creating merchant views
-
Method Summary
Modifier and TypeMethodDescriptioncheckReachable
(boolean checkReachable) Determines whether or not the server should check if the player can reach the location.copy()
Makes a copy of this builderAdds a merchant to this builderSets the title of the builderMethods inherited from interface org.bukkit.inventory.view.builder.InventoryViewBuilder
build
-
Method Details
-
copy
Description copied from interface:InventoryViewBuilder
Makes a copy of this builder- Specified by:
copy
in interfaceInventoryViewBuilder<V extends InventoryView>
- Returns:
- a copy of this builder
-
title
Description copied from interface:InventoryViewBuilder
Sets the title of the builder- Specified by:
title
in interfaceInventoryViewBuilder<V extends InventoryView>
- Parameters:
title
- the title- Returns:
- this builder
-
merchant
Adds a merchant to this builder- Parameters:
merchant
- the merchant- Returns:
- this builder
-
checkReachable
Determines whether or not the server should check if the player can reach the location.Given checkReachable is provided and a virtual merchant is provided to the builder from
Server.createMerchant(String)
this method will have no effect on the actual menu status.- Parameters:
checkReachable
- whether or not to check if the view is "reachable"- Returns:
- this builder
-