Struct BlockEntity.CachedAccessPerms
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Access permissions cache for a specific block for a specific player. Used in packet handling to not have to duplicate work if multiple handlers are interested in validation.
public struct BlockEntity.CachedAccessPerms
- Inherited Members
- Extension Methods
Constructors
CachedAccessPerms(IWorldAccessor, FastBlockPos, IPlayer)
Access permissions cache for a specific block for a specific player. Used in packet handling to not have to duplicate work if multiple handlers are interested in validation.
public CachedAccessPerms(IWorldAccessor world, FastBlockPos blockPos, IPlayer player)
Parameters
worldIWorldAccessorblockPosFastBlockPosplayerIPlayer
Fields
GrantedFlags
public EnumBlockAccessFlags GrantedFlags
Field Value
Reachable
public BlockEntity.CachedAccessPerms.EnumReachability Reachable
Field Value
TestedFlags
public EnumBlockAccessFlags TestedFlags
Field Value
Methods
TryAccessingBlockAtPos(EnumBlockAccessFlags, bool, string)
Test for permissions and log an audit message if the permission is not given.
public bool TryAccessingBlockAtPos(EnumBlockAccessFlags accessToCheck, bool validatePickRange, string thingNameForLog)
Parameters
accessToCheckEnumBlockAccessFlagsvalidatePickRangeboolthingNameForLogstring