Class LandClaim
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
[ProtoContract]
public class LandClaim
- Inheritance
-
LandClaim
- Inherited Members
- Extension Methods
Fields
AllowUseEveryone
[ProtoMember(11)]
public bool AllowUseEveryone
Field Value
Areas
[ProtoMember(1)]
public List<Cuboidi> Areas
Field Value
Description
[ProtoMember(7)]
public string Description
Field Value
LastKnownOwnerName
[ProtoMember(6)]
public string LastKnownOwnerName
Field Value
OwnedByEntityId
[ProtoMember(3)]
public long OwnedByEntityId
Field Value
OwnedByPlayerGroupUid
[ProtoMember(5)]
public uint OwnedByPlayerGroupUid
Field Value
OwnedByPlayerUid
[ProtoMember(4)]
public string OwnedByPlayerUid
Field Value
PermittedPlayerGroupIds
Other groups allowed to use this land
[ProtoMember(8)]
public Dictionary<int, EnumBlockAccessFlags> PermittedPlayerGroupIds
Field Value
PermittedPlayerLastKnownPlayerName
Other players allowed to use this land, name of the player at the time the privilege was granted
[ProtoMember(10)]
public Dictionary<string, string> PermittedPlayerLastKnownPlayerName
Field Value
PermittedPlayerUids
Other players allowed to use this land
[ProtoMember(9)]
public Dictionary<string, EnumBlockAccessFlags> PermittedPlayerUids
Field Value
ProtectionLevel
[ProtoMember(2)]
public int ProtectionLevel
Field Value
Properties
Center
public BlockPos Center { get; }
Property Value
SizeXYZ
public int SizeXYZ { get; }
Property Value
SizeXZ
public int SizeXZ { get; }
Property Value
Methods
AddArea(Cuboidi)
public EnumClaimError AddArea(Cuboidi cuboidi)
Parameters
cuboidi
Cuboidi
Returns
Clone()
public LandClaim Clone()
Returns
CreateClaim(string, int)
public static LandClaim CreateClaim(string ownerName, int protectionLevel = 1)
Parameters
Returns
CreateClaim(EntityAgent, int)
public static LandClaim CreateClaim(EntityAgent entity, int protectionLevel = 1)
Parameters
entity
EntityAgentprotectionLevel
int
Returns
CreateClaim(IPlayer, int)
public static LandClaim CreateClaim(IPlayer player, int protectionLevel = 1)
Parameters
Returns
Intersects(Cuboidi)
public bool Intersects(Cuboidi cuboidi)
Parameters
cuboidi
Cuboidi
Returns
Intersects2d(HorRectanglei)
Ignores y-values
public bool Intersects2d(HorRectanglei rec)
Parameters
rec
HorRectanglei
Returns
PositionInside(BlockPos)
public bool PositionInside(BlockPos position)
Parameters
position
BlockPos
Returns
PositionInside(Vec3d)
public bool PositionInside(Vec3d position)
Parameters
position
Vec3d
Returns
TestPlayerAccess(IPlayer, EnumBlockAccessFlags)
public EnumPlayerAccessResult TestPlayerAccess(IPlayer player, EnumBlockAccessFlags claimFlag)
Parameters
player
IPlayerclaimFlag
EnumBlockAccessFlags