More actions
Create WIP Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
== Return values == | == Return values == | ||
The <code>type</code> function can return the following values. | The <code>type</code> function can return the following values. | ||
<!-- | <!-- Copied from the GS vsdocs --> | ||
{{:Type/returns|nil}} | |||
{{:Type/returns|number}} | |||
{{:Type/returns|string}} | |||
{{:Type/returns|boolean}} | |||
{{:Type/returns|table}} | |||
{{:Type/returns|function}} | |||
{{:Type/returns|Action}} | |||
{{:Type/returns|ActionWheelAPI}} | |||
{{:Type/returns|Animation}} | |||
{{:Type/returns|AnimationAPI}} | |||
{{:Type/returns|AvatarAPI}} | |||
{{:Type/returns|Biome}} | |||
{{:Type/returns|BlockState}} | |||
{{:Type/returns|BlockTask}} | |||
{{:Type/returns|ClientAPI}} | |||
{{:Type/returns|ConfigAPI}} | |||
{{:Type/returns|EntityAPI}} | |||
{{:Type/returns|EntityNameplateCustomization}} | |||
{{:Type/returns|Event}} | |||
{{:Type/returns|EventsAPI}} | |||
{{:Type/returns|HostAPI}} | |||
{{:Type/returns|ItemStack}} | |||
{{:Type/returns|ItemTask}} | |||
{{:Type/returns|Keybind}} | |||
{{:Type/returns|KeybindAPI}} | |||
{{:Type/returns|LivingEntityAPI}} | |||
{{:Type/returns|MatricesAPI}} | |||
{{:Type/returns|Matrix2}} | |||
{{:Type/returns|Matrix3}} | |||
{{:Type/returns|Matrix4}} | |||
{{:Type/returns|ModelPart}} | |||
{{:Type/returns|NameplateAPI}} | |||
{{:Type/returns|NameplateCustomization}} | |||
{{:Type/returns|NameplateCustomizationGroup}} | |||
{{:Type/returns|NullEntity}} <!-- ? --> | |||
{{:Type/returns|Page}} | |||
{{:Type/returns|Particle}} | |||
{{:Type/returns|ParticleAPI}} | |||
{{:Type/returns|PingAPI}} | |||
{{:Type/returns|PingFunction}} | |||
{{:Type/returns|PlayerAPI}} | |||
{{:Type/returns|RenderTask}} | |||
{{:Type/returns|RendererAPI}} | |||
{{:Type/returns|Sound}} | |||
{{:Type/returns|SoundAPI}} | |||
{{:Type/returns|SpriteTask}} | |||
{{:Type/returns|TextTask}} | |||
{{:Type/returns|Texture}} | |||
{{:Type/returns|TextureAPI}} | |||
{{:Type/returns|TextureAtlas}} | |||
{{:Type/returns|VanillaModelAPI}} | |||
{{:Type/returns|VanillaModelGroup}} | |||
{{:Type/returns|VanillaModelPart}} | |||
{{:Type/returns|VanillaPart}} | |||
{{:Type/returns|Vector2}} | |||
{{:Type/returns|Vector3}} | |||
{{:Type/returns|Vector4}} | |||
{{:Type/returns|VectorsAPI}} | |||
{{:Type/returns|Vertex}} | |||
{{:Type/returns|ViewerAPI}} | |||
{{:Type/returns|WorldAPI}} | |||
== Navigation == | |||
{{Navbox documentation}} |
Latest revision as of 17:15, 27 October 2024
This global replaces the built-in Lua function of the same name.
Arguments | Returns |
---|---|
v: any | string |
The type(v)
function returns a string representing the type of the passed object v
.
Return values
The type
function can return the following values.
"nil"
(nil)"number"
(number)"string"
(string)"boolean"
(boolean)"table"
(table)"function"
(function)"Action"
(Action)"ActionWheelAPI"
(ActionWheelAPI)"Animation"
(Animation)"AnimationAPI"
(AnimationAPI)"AvatarAPI"
(AvatarAPI)"Biome"
(Biome)"BlockState"
(BlockState)"BlockTask"
(BlockTask)"ClientAPI"
(ClientAPI)"ConfigAPI"
(ConfigAPI)"EntityAPI"
(EntityAPI)"EntityNameplateCustomization"
(EntityNameplateCustomization)"Event"
(Event)"EventsAPI"
(EventsAPI)"HostAPI"
(HostAPI)"ItemStack"
(ItemStack)"ItemTask"
(ItemTask)"Keybind"
(Keybind)"KeybindAPI"
(KeybindAPI)"LivingEntityAPI"
(LivingEntityAPI)"MatricesAPI"
(MatricesAPI)"Matrix2"
(Matrix2)"Matrix3"
(Matrix3)"Matrix4"
(Matrix4)"ModelPart"
(ModelPart)"NameplateAPI"
(NameplateAPI)"NameplateCustomization"
(NameplateCustomization)"NameplateCustomizationGroup"
(NameplateCustomizationGroup)"NullEntity"
(NullEntity)"Page"
(Page)"Particle"
(Particle)"ParticleAPI"
(ParticleAPI)"PingAPI"
(PingAPI)"PingFunction"
(PingFunction)"PlayerAPI"
(PlayerAPI)"RenderTask"
(RenderTask)"RendererAPI"
(RendererAPI)"Sound"
(Sound)"SoundAPI"
(SoundAPI)"SpriteTask"
(SpriteTask)"TextTask"
(TextTask)"Texture"
(Texture)"TextureAPI"
(TextureAPI)"TextureAtlas"
(TextureAtlas)"VanillaModelAPI"
(VanillaModelAPI)"VanillaModelGroup"
(VanillaModelGroup)"VanillaModelPart"
(VanillaModelPart)"VanillaPart"
(VanillaPart)"Vector2"
(Vector2)"Vector3"
(Vector3)"Vector4"
(Vector4)"VectorsAPI"
(VectorsAPI)"Vertex"
(Vertex)"ViewerAPI"
(ViewerAPI)"WorldAPI"
(WorldAPI)
Documentation | |||||
---|---|---|---|---|---|
Globals | |||||
APIs (Types) | |||||
Visuals (Types) | |||||
Other Types | |||||
Enums |