Interface SyntaxElement

All Known Subinterfaces:
DefaultExpression<T>, Expression<T>, Literal<T>
All Known Implementing Classes:
AsyncEffect, AxolotlData, BeeData, BoatData, CatData, CondAI, CondAlphanumeric, CondCanBuild, CondCancelled, CondCanFly, CondCanHold, CondCanSee, CondChance, CondCompare, CondContains, CondDamageCause, CondDate, CondEntityIsInLiquid, CondEntityIsWet, CondHasClientWeather, CondHasCustomModelData, CondHasMetadata, CondHasPotion, CondHasRelationalVariable, CondHasResourcePack, CondHasScoreboardTag, CondIgnitionProcess, CondIncendiary, CondIsAlive, CondIsBanned, CondIsBlock, CondIsBlocking, CondIsBlockRedstonePowered, CondIsBurning, CondIsCharged, CondIsEdible, CondIsEmpty, CondIsEnchanted, CondIsFlammable, CondIsFlying, CondIsFuel, CondIsInteractable, CondIsInvulnerable, CondIsInWorld, CondIsLoaded, CondIsMember, CondIsOccluding, CondIsOfType, CondIsOnGround, CondIsOnline, CondIsPassable, CondIsPluginEnabled, CondIsPoisoned, CondIsRiding, CondIsRiptiding, CondIsSet, CondIsSilent, CondIsSkriptCommand, CondIsSleeping, CondIsSlimeChunk, CondIsSneaking, CondIsSolid, CondIsSprinting, CondIsSwimming, CondIsTameable, CondIsTransparent, CondIsUnbreakable, CondIsVectorNormalized, CondIsWearing, CondIsWhitelisted, CondItemInHand, Condition, CondLeashed, CondMatches, CondMinecraftVersion, CondPermission, CondPlayedBefore, CondProjectileCanBounce, CondPvP, CondRegionContains, CondResourcePack, CondScriptLoaded, CondStartsEndsWith, CondWeather, ContainerExpression, ConvertedExpression, ConvertedLiteral, CreeperData, Delay, DroppedItemData, EffActionBar, EffAssert, EffBan, EffBreakNaturally, EffBroadcast, EffCancelCooldown, EffCancelDrops, EffCancelEvent, EffChange, EffChargeCreeper, EffColorItems, EffCommand, EffConnect, EffContinue, EffDoIf, EffDrop, Effect, EffectSection, EffectSectionEffect, EffEnchant, EffEquip, EffExceptionDebug, EffExit, EffExplodeCreeper, EffExplosion, EffFeed, EffFireworkLaunch, EffForceAttack, EffFunctionCall, EffHealth, EffHidePlayerFromServerList, EffIgnite, EffIncendiary, EffInvulnerability, EffKeepInventory, EffKick, EffKill, EffLeash, EffLightning, EffLoadServerIcon, EffLog, EffMakeFly, EffMakeSay, EffMessage, EffOp, EffOpenBook, EffOpenInventory, EffPlayerInfoVisibility, EffPlayerVisibility, EffPlaySound, EffPoison, EffPotion, EffPush, EffPvP, EffReplace, EffResetTitle, EffRespawn, EffReturn, EffScriptFile, EffSecSpawn, EffSendBlockChange, EffSendResourcePack, EffSendTitle, EffShear, EffShoot, EffSilence, EffStopServer, EffStopSound, EffSuppressWarnings, EffSwingHand, EffTeleport, EffToggle, EffToggleFlight, EffTree, EffVectorRotateAroundAnother, EffVectorRotateXYZ, EffVehicle, EffVisualEffect, EndermanData, EntityData, EventValueExpression, EvtAtTime, EvtBlock, EvtBlockLegacy, EvtBookEdit, EvtBookSign, EvtChat, EvtClick, EvtCommand, EvtDamage, EvtEntity, EvtEntityBlockChange, EvtEntityTarget, EvtExperienceSpawn, EvtFirework, EvtFirstJoin, EvtGameMode, EvtGrow, EvtItem, EvtLevel, EvtMove, EvtMoveOn, EvtPeriodical, EvtPlantGrowth, EvtPressurePlate, EvtRegionBorder, EvtResourcePackResponse, EvtScript, EvtSkript, EvtTestCase, EvtWeatherChange, ExprAbsorbedBlocks, ExprAffectedEntities, ExprAI, ExprAllCommands, ExprAllGroups, ExprAlphabetList, ExprAltitude, ExprAmount, ExprAmountOfItems, ExprAppliedEnchantments, ExprArgument, ExprArithmetic, ExprArmorSlot, ExprArrowKnockbackStrength, ExprArrowPierceLevel, ExprArrowsStuck, ExprAttackCooldown, ExprAttacked, ExprAttacker, ExprBalance, ExprBed, ExprBiome, ExprBlock, ExprBlockData, ExprBlockHardness, ExprBlocks, ExprBlocksInRegion, ExprBlockSphere, ExprBookAuthor, ExprBookPages, ExprBookTitle, ExprBurnCookTime, ExprChatFormat, ExprChatRecipients, ExprChestInventory, ExprChunk, ExprClicked, ExprClientViewDistance, ExprCmdCooldownInfo, ExprColorOf, ExprColoured, ExprCommand, ExprCommandInfo, ExprCommandSender, ExprCompassTarget, ExprCoordinate, ExprCreeperMaxFuseTicks, ExprCursorSlot, ExprCustomModelData, ExprDamage, ExprDamageCause, ExprDamagedItem, ExprDateAgoLater, ExprDefaultValue, ExprDifference, ExprDifficulty, ExprDirection, ExprDistance, ExprDrops, ExprDropsOfBlock, ExprDurability, ExprElement, ExprEnchantingExpCost, ExprEnchantItem, ExprEnchantmentBonus, ExprEnchantmentExpCosts, ExprEnchantmentLevel, ExprEnchantmentOffer, ExprEnchantmentOfferCost, ExprEnchantments, ExprEnderChest, ExprEntities, ExprEntity, ExprEntityAttribute, ExprEntityTamer, ExpressionList, ExprEventCancelled, ExprEventExpression, ExprExhaustion, ExprExperience, ExprExplodedBlocks, ExprExplosionBlockYield, ExprExplosionYield, ExprExplosiveYield, ExprEyeLocation, ExprFacing, ExprFallDistance, ExprFertilizedBlocks, ExprFilter, ExprFilter.ExprInput, ExprFinalDamage, ExprFireworkEffect, ExprFlightMode, ExprFoodLevel, ExprFormatTime, ExprFunctionCall, ExprFurnaceSlot, ExprGameMode, ExprGameRule, ExprGlidingState, ExprGlowing, ExprGravity, ExprGroup, ExprHash, ExprHealAmount, ExprHealReason, ExprHealth, ExprHiddenPlayers, ExprHighestSolidBlock, ExprHostname, ExprHotbarButton, ExprHotbarSlot, ExprHoverList, ExprHumidity, ExprIdOf, ExprIndexOf, ExprIndices, ExprInventory, ExprInventoryAction, ExprInventoryInfo, ExprInventorySlot, ExprIP, ExprItem, ExprItemAmount, ExprItemFrameSlot, ExprItems, ExprItemsIn, ExprItemWithCustomModelData, ExprItemWithLore, ExprJoinSplit, ExprLanguage, ExprLastAttacker, ExprLastColor, ExprLastDamage, ExprLastDamageCause, ExprLastLoadedServerIcon, ExprLastLoginTime, ExprLastResourcePackResponse, ExprLastSpawnedEntity, ExprLeashHolder, ExprLength, ExprLevel, ExprLevelProgress, ExprLightLevel, ExprLocation, ExprLocationAt, ExprLocationFromVector, ExprLocationOf, ExprLocationVectorOffset, ExprLoopValue, ExprLore, ExprMaxDurability, ExprMaxHealth, ExprMaxMinecartSpeed, ExprMaxPlayers, ExprMaxStack, ExprMe, ExprMembersOfRegion, ExprMendingRepairAmount, ExprMessage, ExprMetadata, ExprMiddleOfLocation, ExprMinecartDerailedFlyingVelocity, ExprMOTD, ExprName, ExprNamed, ExprNoDamageTicks, ExprNow, ExprNumberOfCharacters, ExprNumbers, ExprOfflinePlayers, ExprOnlinePlayersCount, ExprOpenedInventory, ExprParse, ExprParseError, ExprPassenger, ExprPermissions, ExprPing, ExprPlain, ExprPlayerlistHeaderFooter, ExprPlayerViewDistance, ExprPlayerWeather, ExprPortal, ExprPotionEffect, ExprPotionEffects, ExprPrefixSuffix, ExprProjectileBounceState, ExprProjectileCriticalState, ExprProtocolVersion, ExprPushedBlocks, ExprRandom, ExprRandomNumber, ExprRandomUUID, ExprRawName, ExprRedstoneBlockPower, ExprRegion, ExprRegionsAt, ExprRelationalVariable, ExprRemainingAir, ExprRespawnLocation, ExprReversedList, ExprRound, ExprSaturation, ExprScoreboardTags, ExprScript, ExprScripts, ExprSeaLevel, ExprSeed, ExprServerIcon, ExprShooter, ExprShuffledList, ExprSignText, ExprSkull, ExprSlotIndex, ExprSortedList, ExprSpawn, ExprSpawnerType, ExprSpawnReason, ExprSpecialNumber, ExprSpectatorTarget, ExprSpeed, ExprStringCase, ExprSubstring, ExprTamer, ExprTarget, ExprTargetedBlock, ExprTeleportCause, ExprTemperature, ExprTernary, ExprTime, ExprTimePlayed, ExprTimes, ExprTimeSince, ExprTimeState, ExprTool, ExprTPS, ExprTypeOf, ExprUnbreakable, ExprUnixDate, ExprUnixTicks, ExprUUID, ExprValue, ExprVectorAngleBetween, ExprVectorArithmetic, ExprVectorBetweenLocations, ExprVectorCrossProduct, ExprVectorCylindrical, ExprVectorDotProduct, ExprVectorFromXYZ, ExprVectorFromYawAndPitch, ExprVectorLength, ExprVectorNormalize, ExprVectorOfLocation, ExprVectorRandom, ExprVectorSpherical, ExprVectorSquaredLength, ExprVectorXYZ, ExprVehicle, ExprVelocity, ExprVersion, ExprVersionString, ExprWeather, ExprWhitelist, ExprWorld, ExprWorldFromName, ExprWorlds, ExprXOf, ExprYawPitch, FallingBlockData, FishData, FoxData, GoatData, GuardianData, HorseData, IndeterminateDelay, LitAt, LitConsole, LiteralList, LitNewLine, LlamaData, MinecartData, MooshroomData, OcelotData, PandaData, ParrotData, PigData, PlayerData, PropertyCondition, PropertyExpression, RabbitData, SecConditional, SecLoop, Section, SectionSkriptEvent, SecWhile, SelfRegisteringSkriptEvent, SheepData, SimpleEntityData, SimpleEvent, SimpleExpression, SimpleLiteral, SimplePropertyExpression, SkeletonData, SkriptEvent, Statement, ThrownPotionData, TropicalFishData, UnparsedLiteral, Variable, VariableString, VillagerData, VisualEffect, WolfData, WrapperExpression, XpOrbData, ZombieVillagerData

public interface SyntaxElement
Represents a general part of the syntax.
  • Method Details

    • init

      boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parseResult)
      Called just after the constructor.
      Parameters:
      exprs - all %expr%s included in the matching pattern in the order they appear in the pattern. If an optional value was left out it will still be included in this list holding the default value of the desired type which usually depends on the event.
      matchedPattern - The index of the pattern which matched
      isDelayed - Whether this expression is used after a delay or not (i.e. if the event has already passed when this expression will be called)
      parseResult - Additional information about the match.
      Returns:
      Whether this expression was initialised successfully. An error should be printed prior to returning false to specify the cause.
      See Also:
      ParserInstance.isCurrentEvent(Class...)
    • getParser

      default ParserInstance getParser()
      See Also:
      ParserInstance.get()