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
indexesIEnumerable<ushort>
EntityTagSet(FixedSizeBitSet)
public EntityTagSet(FixedSizeBitSet indexes)
Parameters
indexesFixedSizeBitSet
Fields
Empty
public static readonly EntityTagSet Empty
Field Value
Value
public readonly FixedSizeBitSet Value
Field Value
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Except(EntityTagSet)
public EntityTagSet Except(EntityTagSet array)
Parameters
arrayEntityTagSet
Returns
FromBytes(BinaryReader)
public static EntityTagSet FromBytes(BinaryReader reader)
Parameters
readerBinaryReader
Returns
GetEmpty()
public static EntityTagSet GetEmpty()
Returns
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
arrayEntityTagSet
Returns
IsEmpty()
public bool IsEmpty()
Returns
IsSubsetOf(EntityTagSet)
public bool IsSubsetOf(EntityTagSet array)
Parameters
arrayEntityTagSet
Returns
IsSupersetOf(EntityTagSet)
public bool IsSupersetOf(EntityTagSet array)
Parameters
arrayEntityTagSet
Returns
Overlaps(EntityTagSet)
public bool Overlaps(EntityTagSet array)
Parameters
arrayEntityTagSet
Returns
OverlapsWithEach(IEnumerable<EntityTagSet>)
public bool OverlapsWithEach(IEnumerable<EntityTagSet> arrays)
Parameters
arraysIEnumerable<EntityTagSet>
Returns
SetEquals(EntityTagSet)
public bool SetEquals(EntityTagSet array)
Parameters
arrayEntityTagSet
Returns
SupersetOfAtLeastOne(IEnumerable<EntityTagSet>)
public bool SupersetOfAtLeastOne(IEnumerable<EntityTagSet> arrays)
Parameters
arraysIEnumerable<EntityTagSet>
Returns
SymmetricExcept(EntityTagSet)
public EntityTagSet SymmetricExcept(EntityTagSet array)
Parameters
arrayEntityTagSet
Returns
ToBytes(BinaryWriter)
public void ToBytes(BinaryWriter writer)
Parameters
writerBinaryWriter
Union(EntityTagSet)
public EntityTagSet Union(EntityTagSet array)
Parameters
arrayEntityTagSet
Returns
Operators
operator ==(EntityTagSet, EntityTagSet)
public static bool operator ==(EntityTagSet first, EntityTagSet second)
Parameters
firstEntityTagSetsecondEntityTagSet
Returns
operator !=(EntityTagSet, EntityTagSet)
public static bool operator !=(EntityTagSet first, EntityTagSet second)
Parameters
firstEntityTagSetsecondEntityTagSet