Table of Contents

Struct EntityTagSet

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll
public readonly struct EntityTagSet : ITagSet, IHasSetOperations<EntityTagSet>
Implements
Inherited Members
Extension Methods

Constructors

EntityTagSet(IEnumerable<ushort>)

public EntityTagSet(IEnumerable<ushort> indexes)

Parameters

indexes IEnumerable<ushort>

EntityTagSet(FixedSizeBitSet)

public EntityTagSet(FixedSizeBitSet indexes)

Parameters

indexes FixedSizeBitSet

Fields

Empty

public static readonly EntityTagSet Empty

Field Value

EntityTagSet

Value

public readonly FixedSizeBitSet Value

Field Value

FixedSizeBitSet

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Except(EntityTagSet)

public EntityTagSet Except(EntityTagSet array)

Parameters

array EntityTagSet

Returns

EntityTagSet

FromBytes(BinaryReader)

public static EntityTagSet FromBytes(BinaryReader reader)

Parameters

reader BinaryReader

Returns

EntityTagSet

GetEmpty()

public static EntityTagSet GetEmpty()

Returns

EntityTagSet

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Intersect(EntityTagSet)

public EntityTagSet Intersect(EntityTagSet array)

Parameters

array EntityTagSet

Returns

EntityTagSet

IsEmpty()

public bool IsEmpty()

Returns

bool

IsSubsetOf(EntityTagSet)

public bool IsSubsetOf(EntityTagSet array)

Parameters

array EntityTagSet

Returns

bool

IsSupersetOf(EntityTagSet)

public bool IsSupersetOf(EntityTagSet array)

Parameters

array EntityTagSet

Returns

bool

Overlaps(EntityTagSet)

public bool Overlaps(EntityTagSet array)

Parameters

array EntityTagSet

Returns

bool

OverlapsWithEach(IEnumerable<EntityTagSet>)

public bool OverlapsWithEach(IEnumerable<EntityTagSet> arrays)

Parameters

arrays IEnumerable<EntityTagSet>

Returns

bool

SetEquals(EntityTagSet)

public bool SetEquals(EntityTagSet array)

Parameters

array EntityTagSet

Returns

bool

SupersetOfAtLeastOne(IEnumerable<EntityTagSet>)

public bool SupersetOfAtLeastOne(IEnumerable<EntityTagSet> arrays)

Parameters

arrays IEnumerable<EntityTagSet>

Returns

bool

SymmetricExcept(EntityTagSet)

public EntityTagSet SymmetricExcept(EntityTagSet array)

Parameters

array EntityTagSet

Returns

EntityTagSet

ToBytes(BinaryWriter)

public void ToBytes(BinaryWriter writer)

Parameters

writer BinaryWriter

Union(EntityTagSet)

public EntityTagSet Union(EntityTagSet array)

Parameters

array EntityTagSet

Returns

EntityTagSet

Operators

operator ==(EntityTagSet, EntityTagSet)

public static bool operator ==(EntityTagSet first, EntityTagSet second)

Parameters

first EntityTagSet
second EntityTagSet

Returns

bool

operator !=(EntityTagSet, EntityTagSet)

public static bool operator !=(EntityTagSet first, EntityTagSet second)

Parameters

first EntityTagSet
second EntityTagSet

Returns

bool