Module moe.maple.script.api
Interface ReactorObject<T>
- Type Parameters:
T-
- All Superinterfaces:
FieldedObject<T>,ScriptObject<T>
public interface ReactorObject<T> extends FieldedObject<T>
This is a script proxy for reactor objects.
-
Method Summary
Modifier and Type Method Description booleancreateMob(int mobTemplateId, int xPos, int yPos)booleandrop()Triggers a 'drop' action for the reactor.booleandropItems(Collection<Tuple<Integer,Integer>> itemAndCount)Drops items from the reactor's positiondefault booleandropItems(Tuple<Integer,Integer>... itemAndCount)Drops items from the reactor's positionOptional<? extends UserObject>getLastUser()intgetState()intgetTemplateId()booleanisOnLastState()Methods inherited from interface moe.maple.api.script.model.object.field.FieldedObject
getField, getFieldId, getObjectId, getX, getY
-
Method Details
-
getState
int getState() -
getTemplateId
int getTemplateId() -
isOnLastState
boolean isOnLastState() -
createMob
boolean createMob(int mobTemplateId, int xPos, int yPos) -
getLastUser
Optional<? extends UserObject> getLastUser()- Returns:
- the last User to interact with this reactor.
-
drop
boolean drop()Triggers a 'drop' action for the reactor.- Returns:
- true if the drop was successful.
-
dropItems
Drops items from the reactor's position- Parameters:
itemAndCount- - Left is the item's .wz id - Right is the count- Returns:
- true if items were dropped
-
dropItems
Drops items from the reactor's position- Parameters:
itemAndCount- - Left is the item's .wz id - Right is the count- Returns:
- true if items were dropped
-