Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Type: Difference between revisions

From FiguraMC
PenguinEncounter (talk | contribs)
Create WIP
Tag: 2017 source edit
 
PenguinEncounter (talk | contribs)
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.
<!-- TODO -->
<!-- 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.

Navigation

Documentation
Globals
APIs (Types)
Visuals (Types)
Other Types
Enums