Adjustor mod plugin for VS
修订版 | 21d825ef5da932e25e51476c73f676f59628efa6 (tree) |
---|---|
时间 | 2019-04-28 00:27:27 |
作者 | melchior <melchior@user...> |
Commiter | melchior |
Changes for V1.9.0
@@ -73,7 +73,7 @@ namespace Adjustor | ||
73 | 73 | Logger.VerboseDebug( "ItemAdjustor ~ OnLoaded" ); |
74 | 74 | } |
75 | 75 | |
76 | - public override bool OnHeldInteractCancel(float secondsUsed, IItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, EnumItemUseCancelReason cancelReason) | |
76 | + public override bool OnHeldInteractCancel(float secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, EnumItemUseCancelReason cancelReason) | |
77 | 77 | { |
78 | 78 | return false; |
79 | 79 | } |
@@ -86,7 +86,7 @@ namespace Adjustor | ||
86 | 86 | /// <param name="blockSel">Block sel.</param> |
87 | 87 | /// <param name="entitySel">Entity sel.</param> |
88 | 88 | /// <param name="handHandling">Hand handling.</param> |
89 | - public override void OnHeldInteractStart(IItemSlot itemslot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, ref EnumHandHandling handHandling) | |
89 | + public override void OnHeldInteractStart(ItemSlot itemslot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, ref EnumHandHandling handHandling) | |
90 | 90 | { |
91 | 91 | if ( blockSel == null ) { |
92 | 92 | return; |
@@ -104,7 +104,7 @@ namespace Adjustor | ||
104 | 104 | { |
105 | 105 | #if DEBUG |
106 | 106 | Logger.VerboseDebug( "[{0}] Looks Rotatable, FromFace: {1}", thatBlock.Code.Path, blockSel.Face.Code ); |
107 | - ClientApi.SendMessageToClient( string.Format( "Appears Rotatable: {0}", thatBlock.Code ) ); | |
107 | + ClientApi.ShowChatMessage( string.Format( "Appears Rotatable: {0}", thatBlock.Code ) ); | |
108 | 108 | #endif |
109 | 109 | |
110 | 110 | handHandling = EnumHandHandling.PreventDefault; |
@@ -132,7 +132,7 @@ namespace Adjustor | ||
132 | 132 | /// <param name="byEntity">By entity.</param> |
133 | 133 | /// <param name="blockSel">Block sel.</param> |
134 | 134 | /// <param name="entitySel">Entity sel.</param> |
135 | - public override bool OnHeldInteractStep(float secondsUsed, IItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel) | |
135 | + public override bool OnHeldInteractStep(float secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel) | |
136 | 136 | { |
137 | 137 | if ( blockSel == null ) { |
138 | 138 | return false; |
@@ -154,7 +154,7 @@ namespace Adjustor | ||
154 | 154 | return false; |
155 | 155 | } |
156 | 156 | |
157 | - EnumWorldAccessResponse why = ServerApi.World.TestAccessBlock( thePlayer, position, EnumBlockAccessFlags.BuildOrBreak ); | |
157 | + EnumWorldAccessResponse why = ServerApi.World.Claims.TestAccess( thePlayer, position, EnumBlockAccessFlags.BuildOrBreak ); | |
158 | 158 | if ( why != EnumWorldAccessResponse.Granted) { |
159 | 159 | ServerApi.SendMessage( thePlayer, GlobalConstants.CurrentChatGroup, string.Format("Not permitted, {0}", why.ToString()), EnumChatType.Notification ); |
160 | 160 | return false; |