Class EntityDisguise
Holds a disguised entity
Inheritance
System.Object
EntityDisguise
Namespace: OpenAPI.Entities
Assembly: OpenAPI.dll
Syntax
public class EntityDisguise : object
Constructors
| Improve this Doc View SourceEntityDisguise(Entity, Entity)
Declaration
public EntityDisguise(Entity parent, Entity disguise)
Parameters
Type | Name | Description |
---|---|---|
Entity | parent | |
Entity | disguise |
Properties
| Improve this Doc View SourceDisguise
The entity to disguise as
Declaration
public Entity Disguise { get; }
Property Value
Type | Description |
---|---|
Entity |
Parent
The disguised entity
Declaration
public Entity Parent { get; }
Property Value
Type | Description |
---|---|
Entity |
PositionOffset
The offset from the Parent entity.
Declaration
public Vector3 PositionOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
SpawnToSelf
Should disguise be visible to Parent
Declaration
public bool SpawnToSelf { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDespawnDisguise()
Declaration
public void DespawnDisguise()
DespawnFromPlayers(MiNET.Player[])
Declaration
public void DespawnFromPlayers(MiNET.Player[] players)
Parameters
Type | Name | Description |
---|---|---|
MiNET.Player[] | players |
SpawnDisguise()
Declaration
public void SpawnDisguise()
SpawnToPlayers(MiNET.Player[])
Declaration
public void SpawnToPlayers(MiNET.Player[] players)
Parameters
Type | Name | Description |
---|---|---|
MiNET.Player[] | players |
Tick()
Declaration
public void Tick()