You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So if a Curios item overrides the use(in MCP is onItemRightClick) method, it causes the method to be called at the client.
For example, a helmet, which is also a Curios item, will be equipped to both the Curios slot and the Armor slot when right click, but the Armor slot one is fake.
In survival mode, it seems to be equipped to the Armor slot.
But it is equipped to the Curios slot, the Armor slot one is fake.
Expected Behavior:
On the client side, you can also cancel the RightClickItem event. The Cancellation Result should be ActionResultType.sidedSuccess(player.world.isClientSide())(in MCP is ActionResultType.func_233537_a_(player.world.isRemote()))
Versions (Be specific, do not write "latest"):
Observed Behavior:
When right click a Curios item, Curios will not handle the client logic because only on the server side, the event will be canceled.
Curios/src/main/java/top/theillusivec4/curios/common/event/CuriosEventHandler.java
Lines 333 to 362 in 57d8909
So if a Curios item overrides the
use
(in MCP isonItemRightClick
) method, it causes the method to be called at the client.For example, a helmet, which is also a Curios item, will be equipped to both the Curios slot and the Armor slot when right click, but the Armor slot one is fake.
In survival mode, it seems to be equipped to the Armor slot.
But it is equipped to the Curios slot, the Armor slot one is fake.
Expected Behavior:
On the client side, you can also cancel the
RightClickItem
event. The Cancellation Result should beActionResultType.sidedSuccess(player.world.isClientSide())
(in MCP isActionResultType.func_233537_a_(player.world.isRemote())
)Steps to Reproduce:
examplemod:test_item
ashead
.examplemod:test_item
in survival mode.The text was updated successfully, but these errors were encountered: