Empeld
Empeld plugin documentation.
essentials.Prefabs.Interop.MCBlockMap Class Reference

A class that maps an external block id to an empeld block id More...

Public Member Functions

 MCBlockMap ()
 
void Add (byte id, ushort empeldBlockId)
 
void Add (byte id, IBlock block)
 

Properties

ushort DefaultBlock [get, set]
 
int Count [get]
 
IEnumerable< byte > Keys [get]
 
IEnumerable< byte > MapMisses [get]
 

Detailed Description

A class that maps an external block id to an empeld block id

Constructor & Destructor Documentation

◆ MCBlockMap()

essentials.Prefabs.Interop.MCBlockMap.MCBlockMap ( )
45  {
46  }

Member Function Documentation

◆ Add() [1/2]

void essentials.Prefabs.Interop.MCBlockMap.Add ( byte  id,
ushort  empeldBlockId 
)

Attribute: id

= empeldBlockId;

49  {
50  _map[id] = empeldBlockId;
51  }

◆ Add() [2/2]

void essentials.Prefabs.Interop.MCBlockMap.Add ( byte  id,
IBlock  block 
)
54  {
55  Add(id, block.Id);
56  }
ushort Id
Id that represent the block type (usually hash of InternalName)
Definition: IBlock.cs:32
void Add(byte id, ushort empeldBlockId)
Definition: MCBlockMap.cs:48

Property Documentation

◆ Count

int essentials.Prefabs.Interop.MCBlockMap.Count
get

◆ DefaultBlock

ushort essentials.Prefabs.Interop.MCBlockMap.DefaultBlock
getset

◆ Keys

IEnumerable<byte> essentials.Prefabs.Interop.MCBlockMap.Keys
get

◆ MapMisses

IEnumerable<byte> essentials.Prefabs.Interop.MCBlockMap.MapMisses
get

The documentation for this class was generated from the following file: