Class TextEventValue
java.lang.Object
ua.mcchickenstudio.opencreative.coding.values.EventValue
ua.mcchickenstudio.opencreative.coding.values.TextEventValue
- All Implemented Interfaces:
ExtensionContent
- Direct Known Subclasses:
BedEnterResultValue,BlockInteractionTypeValue,BlockMaterialValue,ChatMessageValue,ClickTypeValue,ClientBrandValue,DamageCauseValue,EntityFacingValue,EntityLastDamageCauseValue,EntityNameValue,EntityPoseValue,EntitySpawnReasonValue,EntityTargetValue,EntityTypeValue,EntityUUIDValue,EntityVehicleValue,FishingStateValue,HumanGameModeValue,LivingLeashHolderValue,LocaleCountryValue,LocaleDisplayCountryValue,LocaleDisplayLanguageValue,LocaleLanguageValue,PlayerChatVisibilityValue,PlayerMainHandValue,ProjectileOwnerValue,PurchaseIdValue,PurchaseNameValue,TargetEntityValue,TransferVariableValue,WebResponseValue,WebUrlValue,WorldCustomIdValue,WorldDescriptionValue,WorldMoonPhaseValue,WorldNameValue
TextEventValue
This class represents an event value, that returns string, or null.-
Constructor Summary
ConstructorsConstructorDescriptionTextEventValue(@NotNull String id, @NotNull org.bukkit.inventory.ItemStack displayIcon, @NotNull MenusCategory category) -
Method Summary
Modifier and TypeMethodDescriptionabstract @Nullable StringgetText(@NotNull ActionsHandler handler, @NotNull Action action, @Nullable org.bukkit.entity.Entity entity) Returns a string that can be got from player, event, action, or null.final @Nullable ObjectgetValue(@NotNull ActionsHandler handler, @NotNull Action action, @Nullable org.bukkit.entity.Entity entity) Returns a value that will be set instead of event value name tag item.Methods inherited from class ua.mcchickenstudio.opencreative.coding.values.EventValue
equals, getCategory, getDisplayIcon, getID, getLocaleName, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ua.mcchickenstudio.opencreative.coding.ExtensionContent
getDescription, getExtensionId
-
Constructor Details
-
Method Details
-
getText
@Nullable public abstract @Nullable String getText(@NotNull @NotNull ActionsHandler handler, @NotNull @NotNull Action action, @Nullable @Nullable org.bukkit.entity.Entity entity) Returns a string that can be got from player, event, action, or null.- Returns:
- string, or null.
-
getValue
@Nullable public final @Nullable Object getValue(@NotNull @NotNull ActionsHandler handler, @NotNull @NotNull Action action, @Nullable @Nullable org.bukkit.entity.Entity entity) Description copied from class:EventValueReturns a value that will be set instead of event value name tag item.- Specified by:
getValuein classEventValue- Parameters:
handler- handler of action to get value.action- action to get value.entity- entity to get value, can be null.- Returns:
- string, number, boolean, item, location, vector, or null.
-