-
Notifications
You must be signed in to change notification settings - Fork 47
Impl PlayerChangedDimensionEvent, PlayerRespawnEvent and PlayerLoggedOutEvent #118
Conversation
leo60228
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from that bikeshedding, this PR seems fine.
...-events-entity/src/main/java/net/patchworkmc/mixin/event/entity/MixinCraftingResultSlot.java
Show resolved
Hide resolved
| target = "net/minecraft/item/ItemStack.onCraft(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;I)V" | ||
| ) | ||
| ) | ||
| private void onCrafted_stack_onCraft(ItemStack stack, CallbackInfo ci) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method name is a bit strange. Maybe onStackCrafted?
| @Inject(method = "onCrafted(Lnet/minecraft/item/ItemStack;)V", | ||
| at = @At("RETURN") | ||
| ) | ||
| private void onCrafted_return(ItemStack stack, CallbackInfo ci) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above, maybe onCraftingFinished?
patchwork-events-entity/src/main/java/net/patchworkmc/mixin/event/entity/MixinItemEntity.java
Show resolved
Hide resolved
| target = "net/minecraft/item/ItemStack.isEmpty()Z" | ||
| ) | ||
| ) | ||
| private void onPlayerCollision_isEmpty(PlayerEntity player, CallbackInfo ci) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above, don't have a great idea for this one though. If using underscores is just the style for this kind of inject it's reasonable enough, though it's not very descriptive about what exactly it's doing.
...-events-entity/src/main/java/net/patchworkmc/mixin/event/entity/MixinServerPlayerEntity.java
Show resolved
Hide resolved
|
Merge conflicts |
Conflicts: patchwork-events-entity/src/main/java/net/patchworkmc/impl/event/entity/EntityEvents.java
|
Conflicts solved |
|
I'd like Leo's bikeshedding to be addressed and this is good to go |
|
suggestion applied |
|
I'll deprecate my PR and work off this branch once its pulled. LGTM. |
Implemented PlayerEvents:
The rest of PlayerEvents will be implemented in a separate pr.