pub struct CodeIcon {Show 21 fields
pub name: String,
pub material: String,
pub advanced: Option<bool>,
pub description: Vec<String>,
pub example: Vec<String>,
pub works_with: Vec<String>,
pub deprecated_note: Vec<String>,
pub additional_info: Vec<Vec<String>>,
pub arguments: Option<Vec<Argument>>,
pub return_type: Option<String>,
pub return_description: Option<Vec<String>>,
pub required_rank: String,
pub require_tokens: bool,
pub require_rank_and_tokens: bool,
pub mobs_only: Option<bool>,
pub cancellable: Option<bool>,
pub cancelled_automatically: Option<bool>,
pub head: Option<String>,
pub color: Option<IconColor>,
pub tags: Option<u8>,
pub loaded_item: Option<String>,
}Expand description
The display information for a CodeData.
Fields§
§name: StringThe display name of this code item.
material: StringThe item material.
This is a bukkit material name
advanced: Option<bool>Whether this code item is considered advanced.
description: Vec<String>A description of this code item.
example: Vec<String>An example of the usage of this code item.
works_with: Vec<String>Things that this code item works on/with.
deprecated_note: Vec<String>Information about the deprecation of this code item.
additional_info: Vec<Vec<String>>Any additional information about this code item.
arguments: Option<Vec<Argument>>§return_type: Option<String>The return type of this game value.
return_description: Option<Vec<String>>The description for the returned value.
required_rank: StringThe rank required to use this code item.
require_tokens: boolWhether this code item requires a purchase in the token shop to use.
require_rank_and_tokens: boolSupposedly true when the following conditions are met:
required_rankis not emptyrequire_tokensistrue
Seems to be broken and always false.
mobs_only: Option<bool>Whether this action can only be used on mobs.
cancellable: Option<bool>Whether this event can be cancelled.
cancelled_automatically: Option<bool>Whether this event is automatically cancelled.
head: Option<String>The texture data for the item if the material is PLAYER_HEAD.
color: Option<IconColor>The color data for the item.
A boolean encoded as 0 or 1 denoting whether this action has any tags.
loaded_item: Option<String>Unknown.
Always an empty String.