|
Action< T > | Changed |
| Event triggered when any change occurs on this object, either locally or over the network More...
|
|
Action< T > | NetUpdate |
| Event triggered when a change occurs resulting from a change over the network More...
|
|
Action< T > | Touched |
| Event occurs only when an object is first touched. Usually the first instance of a local-change More...
|
|
◆ ItemBase()
essentials.action.ItemFramework.ItemBase.ItemBase |
( |
| ) |
|
30 this.InjectDependencies();
◆ LoadIcon()
virtual Bitmap essentials.action.ItemFramework.ItemBase.LoadIcon |
( |
| ) |
|
|
protectedvirtual |
◆ LoadModel()
virtual IReadonlyModel essentials.action.ItemFramework.ItemBase.LoadModel |
( |
| ) |
|
|
protectedvirtual |
Loads the mesh representing the model in-world
- Returns
- The model.
Implements essentials.action.ItemFramework.IItem.
Reimplemented in essentials.action.ItemFramework.ItemBundle, and essentials.action.ItemFramework.BlockStackItem.
132 var mesh = this.BuildMeshFromModelImage();
IReadonlyModel CreateMesh(Mesh mesh)
Creates a model given a mesh
readonly IPluginLogger Logger
Definition: ItemBase.cs:23
void LogDebug(string msg, params object[] args)
virtual string MeshResource
Definition: ItemBase.cs:59
virtual string ModelImage
Definition: ItemBase.cs:64
readonly IModelFactory ModelFactory
Definition: ItemBase.cs:20
abstract string Name
Gets the name of the item
Definition: ItemBase.cs:46
IReadonlyModel LoadModel(string resource)
Load a model to a readonly model instance
virtual Matrix4 ModelTransform
How to transform the generated model (Only impacts generated meshes, not loaded models) ...
Definition: ItemBase.cs:88
◆ ToString()
override string essentials.action.ItemFramework.ItemBase.ToString |
( |
| ) |
|
291 return string.Format(
"[Item: {0}]",
Name ??
"Unknown");
abstract string Name
Gets the name of the item
Definition: ItemBase.cs:46
◆ ItemRenderMode
How the item is rendered when dropped (ItemDropEntity)
The item render mode.
◆ Logger
readonly IPluginLogger essentials.action.ItemFramework.ItemBase.Logger |
|
protected |
◆ ModelFactory
readonly IModelFactory essentials.action.ItemFramework.ItemBase.ModelFactory |
|
protected |
Attribute: Dependency(Optional = true)
◆ ModelSize
virtual float essentials.action.ItemFramework.ItemBase.ModelSize => 0.5f |
|
protected |
Size to render the model
The size of the model.
◆ ModelTransform
virtual Matrix4 essentials.action.ItemFramework.ItemBase.ModelTransform => null |
|
protected |
How to transform the generated model (Only impacts generated meshes, not loaded models)
The model transform.
◆ AutoDespawn
virtual bool essentials.action.ItemFramework.ItemBase.AutoDespawn |
|
get |
◆ AutoDespawnDelay
virtual TimeSpan essentials.action.ItemFramework.ItemBase.AutoDespawnDelay |
|
get |
◆ Bounce
virtual bool essentials.action.ItemFramework.ItemBase.Bounce |
|
get |
◆ Description
virtual string essentials.action.ItemFramework.ItemBase.Description |
|
get |
◆ HasGravity
virtual bool essentials.action.ItemFramework.ItemBase.HasGravity |
|
get |
◆ Icon
abstract string essentials.action.ItemFramework.ItemBase.Icon |
|
getprotected |
Gets the path to the icon
The icon.
◆ IconLabel
virtual string essentials.action.ItemFramework.ItemBase.IconLabel |
|
get |
◆ MeshalizerDepth
virtual float essentials.action.ItemFramework.ItemBase.MeshalizerDepth |
|
getprotected |
◆ MeshalizerResolution
virtual int essentials.action.ItemFramework.ItemBase.MeshalizerResolution |
|
getprotected |
◆ MeshResource
virtual string essentials.action.ItemFramework.ItemBase.MeshResource |
|
getprotected |
◆ ModelCacheKey
virtual string essentials.action.ItemFramework.ItemBase.ModelCacheKey |
|
getprotected |
◆ ModelImage
virtual string essentials.action.ItemFramework.ItemBase.ModelImage |
|
getprotected |
◆ Name
abstract string essentials.action.ItemFramework.ItemBase.Name |
|
get |
Gets the name of the item
The name.
◆ ShowNameplate
virtual bool essentials.action.ItemFramework.ItemBase.ShowNameplate |
|
get |
◆ ViewDistance
virtual double essentials.action.ItemFramework.ItemBase.ViewDistance |
|
get |
The documentation for this class was generated from the following file: