Package games.stendhal.client.gui
Interface DropTarget
- All Known Implementing Classes:
FeatureEnabledItemPanel
,GameScreen
public interface DropTarget
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the DropTarget can accept a certain entity.void
dropEntity(IEntity entity, int amount, Point point)
Drop an entity at a given location.
-
Method Details
-
dropEntity
Drop an entity at a given location. Called when dragging ends.- Parameters:
entity
- dropped entityamount
- number of dropped entities. -1 in case everything in the stack should be droppedpoint
- location within the DropTarget
-
canAccept
Check if the DropTarget can accept a certain entity.- Parameters:
entity
- entity to be checked- Returns:
true
, if the DropTarget can process the entity in question,false
otherwise
-