Class VariableAction
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
ua.mcchickenstudio.opencreative.coding.blocks.actions.variableactions.VariableAction
- All Implemented Interfaces:
CodingBlock
- Direct Known Subclasses:
AddItemEnchantmentAction,AddItemLoreLineAction,AddItemPageAction,AddToListAction,AddVectorsAction,AngleVectorAction,ArcCosineOfNumberAction,ArcSineOfNumberAction,ArcTangentOfNumberAction,CalculateFromListAction,CharAtTextAction,CharFromCodePointAction,ClearItemEnchantmentsAction,CloneItemAction,CloneListAction,CodePointOfCharAction,ConcatTextAction,ConvertToJSONAction,CosineOfNumberAction,CreateListAction,CreateMapAction,CreateMapByKeysAction,CrossProductVectorAction,DeleteVariableAction,DistanceVectorAction,DivideAssignNumberAction,DivideNumberAction,DivideVectorsAction,DotVectorAction,FormatUnixTimeAction,GetBlockFacingAction,GetBlockTypeAction,GetByIdFromListAction,GetCustomDataFromItemAction,GetDistanceAction,GetFirstValueFromListAction,GetFromMapByKeyAction,GetItemAmountAction,GetItemBookOwnerAction,GetItemById,GetItemDamageAction,GetItemDisplayNameAction,GetItemIdAction,GetItemLoreAction,GetItemLoreLineAction,GetItemMaxDamageAction,GetKeysSetAction,GetLastValueFromListAction,GetListSizeAction,GetLocationAllCoordinateAction,GetLocationPitchAction,GetLocationXAction,GetLocationYAction,GetLocationYawAction,GetLocationZAction,GetRandomFromListAction,GetValuesSetAction,GetVariableTypeAction,GetVectorAllAction,GetVectorXAction,GetVectorYAction,GetVectorZAction,LocationToVectorAction,LogarithmOfNumberAction,LowerCaseTextAction,MaxNumberAction,MergeListsAction,MidpointVectorAction,MinNumberAction,ModifyLocationAction,ModifyVectorAction,ModularDivideAssignNumberAction,ModularDivideNumbersAction,ModuleNumberAction,MoveLocationByVector,MultiplyAssignNumberAction,MultiplyNumberAction,MultiplyVectorsAction,NegateNumberAction,NormalizeVectorAction,NumberToDegreesAction,NumberToRadiansAction,ParseJSONAction,ParseNumberAction,PerlinNoiseAction,PowerNumberAction,PutIntoMapAction,RandomNumberAction,RayTraceVectorAction,RayTraceVectorMultiAction,RayTraceVectorMultiEntitiesAction,RemoveByIdFromListAction,RemoveByValueFromListAction,RemoveCustomDataFromItemAction,RemoveFromMapByKeyAction,RemoveItemEnchantmentAction,RemoveItemLoreLineAction,ReplaceTextAction,ReverseTextAction,RotationToVectorAction,RoundNumberAction,SetCustomDataToItemActon,SetInListAction,SetItemAmountAction,SetItemBookOwnerAction,SetItemDamageAction,SetItemDisplayNameAction,SetItemLoreAction,SetItemLoreLineAction,SetItemMaxDamageAction,SetItemPagesAction,SetSkullOwnerAction,SetSkullTexturesAction,SetVariableRandomValueAction,SetVariableValueAction,SimplexNoiseAction,SineOfNumberAction,SplitTextAction,SquareRootNumberAction,StripColorAction,SublistAction,SubstringTextAction,SubtractAssignNumberAction,SubtractNumbersAction,SubtractVectorsAction,SumAssignNumberAction,SumNumbersAction,TangentOfNumberAction,TextLengthAction,TranslateColorsAction,UpperCaseTextAction,VectorToLocationAction
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancannotChangeListElements(int size) voidchangeListElementsChangesAmount(int size) protected abstract voidexecute()Executes variable action: sets variable value.protected voidexecute(org.bukkit.entity.Entity entity) Executes action with specified entity.@NotNull ActionCategoryReturns category of action, that contains information about action: glass pane materials, block materials.protected @NotNull org.bukkit.LocationMethods inherited from class ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
getActionType, getArguments, getArgumentsList, getEntitiesByNameOrUUID, getEntity, getEntityByNameOrUUID, getEvent, getExecutor, getHandler, getPlanet, getPlayersByNameOrUUID, getTarget, getTargets, getWorld, getX, getY, getZ, prepareAndExecute, setEntity, setEvent, setHandler, setVarValue
-
Constructor Details
-
VariableAction
-
-
Method Details
-
execute
protected void execute(org.bukkit.entity.Entity entity) Description copied from class:ActionExecutes action with specified entity. -
execute
protected abstract void execute()Executes variable action: sets variable value. -
cannotChangeListElements
public boolean cannotChangeListElements(int size) -
changeListElementsChangesAmount
public void changeListElementsChangesAmount(int size) -
getDefaultLocation
@NotNull protected @NotNull org.bukkit.Location getDefaultLocation() -
getActionCategory
Description copied from class:ActionReturns category of action, that contains information about action: glass pane materials, block materials.- Specified by:
getActionCategoryin classAction- Returns:
- Category of action.
-