Interface SyntaxRuntimeErrorProducer
- All Superinterfaces:
RuntimeErrorProducer
- All Known Implementing Classes:
AsyncEffect, CondBrewingConsume, CondCanAge, CondCanBreed, CondEquipCompDamage, CondEquipCompDispensable, CondEquipCompInteract, CondEquipCompShearable, CondEquipCompSwapEquipment, CondFishingLure, CondHasBossBarFlag, CondHasLootTable, CondHasPersistentDataTag, CondHasPotion, CondIsAdult, CondIsBaby, CondIsEnchanted, CondIsInLove, CondIsInOpenWater, CondIsLootable, CondIsPoisoned, CondIsPotionAmbient, CondIsPotionInstant, CondIsPressingKey, CondIsResponsive, CondIsTagged, CondItemEnchantmentGlint, Condition, CondPotionHasIcon, CondPotionHasParticles, CondScalesWithDifficulty, CondTextDisplayHasDropShadow, CondTextDisplaySeeThroughBlocks, CondWasIndirect, ContainerExpression, EffActionBar, EffAllowAging, EffApplyPotionEffect, EffBan, EffBossBarFlags, EffBreedable, EffBrewingConsume, EffBroadcast, Effect, EffectSection, EffectSectionEffect, EffEnchant, EffEquipCompDamageable, EffEquipCompDispensable, EffEquipCompInteract, EffEquipCompShearable, EffEquipCompSwapEquipment, EffFishingLure, EffForceEnchantmentGlint, EffGenerateLoot, EffKick, EffMakeAdultOrBaby, EffMakeResponsive, EffMessage, EffPlayEffect, EffPoison, EffPotionAmbient, EffPotionIcon, EffPotionInfinite, EffPotionParticles, EffPullHookedEntity, EffRegisterTag, EffResetTitle, EffRotate, EffSendTitle, EffTeleport, EffTextDisplayDropShadow, EffTextDisplaySeeThroughBlocks, EffWorldBorderExpand, ch.njol.skript.expressions.base.EventValueExpression, ExprAllPersistentDataKeys, ExprAppliedEnchantments, ExprBookAuthor, ExprBookPages, ExprBookTitle, ExprBossBarFromEntity, ExprBossBarFromKey, ExprBreedingFamily, ExprBrewingFuelLevel, ExprBrewingResults, ExprBrewingSlot, ExprBrewingTime, ExprBroadcastMessage, ExprCausingEntity, ExprChatFormat, ExprChatMessage, ExprChatRecipients, ExprColored, ExprColorFromHexCode, ExprColorOf, ExprCreatedDamageSource, ExprCurrentInputKeys, ExprDamageLocation, ExprDamageType, ExprDeathMessage, ExprDirectEntity, ExprDisplayBillboard, ExprDisplayBrightness, ExprDisplayGlowOverride, ExprDisplayHeightWidth, ExprDisplayInterpolation, ExprDisplayShadow, ExprDisplayTeleportDuration, ExprDisplayTransformationRotation, ExprDisplayTransformationScaleTranslation, ExprDisplayViewRange, ExprEnchantingExpCost, ExprEnchantItem, ExprEnchantmentBonus, ExprEnchantmentHint, ExprEnchantmentLevel, ExprEnchantmentOffer, ExprEnchantmentOfferCost, ExprEnchantments, ExprEquipCompCameraOverlay, ExprEquipCompEntities, ExprEquipCompEquipSound, ExprEquipCompModel, ExprEquipCompShearSound, ExprEquipCompSlot, ExprEquippableComponent, ExpressionSection, ExprFishingApproachAngle, ExprFishingBiteTime, ExprFishingHook, ExprFishingHookEntity, ExprFishingWaitTime, ExprFoodExhaustion, ExprFurnaceEventItems, ExprFurnaceSlot, ExprFurnaceTime, ExprGameEffectWithData, ExprGameMode, ExprHexCode, ExprInteractionDimensions, ExprItemCompCopy, ExprItemDisplayTransform, ExprItemOfEntity, ExprItemWithEnchantmentGlint, ExprItemWithLore, ExprJoinMessage, ExprKeyOfBossBar, ExprKickMessage, ExprLastInteractionDate, ExprLastInteractionPlayer, ExprLoot, ExprLootContext, ExprLootContextEntity, ExprLootContextLocation, ExprLootContextLooter, ExprLootContextLuck, ExprLootItems, ExprLootTable, ExprLootTableFromString, ExprLootTableSeed, ExprLore, ExprLoveTime, ExprMinMaxEnchantmentLevel, ExprMOTD, ExprOnScreenKickMessage, ExprParticleCount, ExprParticleDistribution, ExprParticleOffset, ExprParticleSpeed, ExprParticleWithData, ExprParticleWithOffset, ExprParticleWithSpeed, ExprPathfindingLocation, ExprPathfindingTarget, ExprPersistentData, ExprPickedItem, ExprPlayerListHeaderFooter, ExprPlayerListName, ExprPlayerListPriority, ExprPotionAmplifier, ExprPotionDuration, ExprPotionEffect, ExprPotionEffects, ExprPotionEffectTypeCategory, ExprQuaternionAxisAngle, ExprQuitMessage, ExprRawString, ExprRecursiveSize, ExprReplace, ExprResolvedComponent, ExprRotate, ExprSecBlankEquipComp, ExprSecCreateBossBar, ExprSecCreateLootContext, ExprSecCreateWorldBorder, ExprSecDamageSource, ExprSecPotionEffect, ExprSignText, ExprSkriptPotionEffect, ExprSkullTexture, ExprSourceLocation, ExprStoredEnchantments, ExprStringColor, ExprTag, ExprTagContents, ExprTagKey, ExprTagsOf, ExprTagsOfType, ExprTextDisplayAlignment, ExprTextDisplayLineWidth, ExprTextDisplayOpacity, ExprTextOf, ExprWithYawPitch, ExprWorldBorder, ExprWorldBorderCenter, ExprWorldBorderDamageAmount, ExprWorldBorderDamageBuffer, ExprWorldBorderSize, ExprWorldBorderWarningDistance, ExprWorldBorderWarningTime, LoopSection, PropCondContains, PropCondIsEmpty, PropertyBaseCondition, PropertyBaseExpression, ch.njol.skript.conditions.base.PropertyCondition, ch.njol.skript.expressions.base.PropertyExpression, PropExprAmount, PropExprCustomName, PropExprName, PropExprNumber, PropExprProgress, PropExprScale, PropExprSize, PropExprStyle, PropExprTitle, PropExprValueOf, PropExprViewers, PropExprWXYZ, Section, ch.njol.skript.expressions.base.SectionExpression, SimpleExpression, ch.njol.skript.expressions.base.SimplePropertyExpression, SimplifiedCondition
A runtime error producer intended for use with
SyntaxElements. Uses Nodes to determine source.-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ErrorSourceGets the source of the errors produced by the implementing class.getNode()Returns the sourceNodefor any errors the implementing class emits.Methods inherited from interface RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warning
-
Method Details
-
getNode
Node getNode()Returns the sourceNodefor any errors the implementing class emits.
Used for accessing the line contents viaNode.getKey()and the line number viaNode.getLine().
A standard implementation is to store the Node duringSyntaxElement.init(Expression[], int, Kleenean, SkriptParser.ParseResult)viaParserInstance.getNode().- Returns:
- The source that produced a runtime error.
-
getErrorSource
Description copied from interface:RuntimeErrorProducerGets the source of the errors produced by the implementing class. Most extending interfaces should provide a default implementation of this method for ease of use.- Specified by:
getErrorSourcein interfaceRuntimeErrorProducer- Returns:
- The source of the error.
- See Also:
-