public class ItemRepairPageSupplier implements OpenCustomUIInteraction.CustomPageSupplier
Class ItemRepairPageSupplier. Provides itemrepairpagesupplier functionality for the Hytale server.
java.lang.Object > ItemRepairPageSupplier
Field Summary
repairPenalty
protected
double
repairPenalty
Field repairPenalty.
playerComponent
final
Player
playerComponent
Field playerComponent.
itemContext
final
ItemContext
itemContext
Field itemContext.
Method Detail
tryCreate
public
CustomUIPage
tryCreate
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor, @Nonnull final PlayerRef playerRef, @Nonnull final InteractionContext context)
Method tryCreate.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor@Nonnull final PlayerRefplayerRef@Nonnull final InteractionContextcontext
ItemRepairPage
public
new
ItemRepairPage
(playerRef, playerComponent.getInventory()
Method ItemRepairPage.
- Parameters:
playerRefplayerRefplayerComponent.getInventory(playerComponent.getInventory(