-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
src/main/java/dev/dubhe/anvilcraft/api/events/EventManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ubhe/anvilcraft/event/SubscribeEvent.java → ...anvilcraft/api/events/SubscribeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 16 additions & 1 deletion
17
src/main/java/dev/dubhe/anvilcraft/event/AnvilFallOnLandEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
package dev.dubhe.anvilcraft.event; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.entity.item.FallingBlockEntity; | ||
import net.minecraft.world.level.Level; | ||
|
||
public record AnvilFallOnLandEvent(Level level, BlockPos pos, FallingBlockEntity entity) { | ||
@Getter | ||
public class AnvilFallOnLandEvent { | ||
private final Level level; | ||
private final BlockPos pos; | ||
private final FallingBlockEntity entity; | ||
@Setter | ||
private boolean isAnvilDamage; | ||
|
||
public AnvilFallOnLandEvent(Level level, BlockPos pos, FallingBlockEntity entity) { | ||
this.level = level; | ||
this.pos = pos; | ||
this.entity = entity; | ||
this.isAnvilDamage = false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters