-
Notifications
You must be signed in to change notification settings - Fork 15
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
12 changed files
with
57 additions
and
29 deletions.
There are no files selected for viewing
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
8 changes: 5 additions & 3 deletions
8
api/src/main/java/org/allaymc/api/eventbus/event/block/BlockEvent.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,15 +1,17 @@ | ||
package org.allaymc.api.eventbus.event.block; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.allaymc.api.block.dto.BlockStateWithPos; | ||
import org.allaymc.api.eventbus.event.Event; | ||
|
||
/** | ||
* @author daoge_cmd | ||
*/ | ||
@AllArgsConstructor | ||
@Getter | ||
public abstract class BlockEvent extends Event { | ||
protected BlockStateWithPos block; | ||
protected BlockStateWithPos blockState; | ||
|
||
public BlockEvent(BlockStateWithPos blockState) { | ||
this.blockState = blockState; | ||
} | ||
} |
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
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
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
21 changes: 21 additions & 0 deletions
21
api/src/main/java/org/allaymc/api/eventbus/event/block/BlockSpreadEvent.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.allaymc.api.eventbus.event.block; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.allaymc.api.block.dto.BlockStateWithPos; | ||
import org.allaymc.api.eventbus.event.CancellableEvent; | ||
|
||
/** | ||
* @author daoge_cmd | ||
*/ | ||
@Getter | ||
@Setter | ||
public class BlockSpreadEvent extends BlockEvent implements CancellableEvent { | ||
|
||
protected BlockStateWithPos spreadBlockState; | ||
|
||
public BlockSpreadEvent(BlockStateWithPos blockState, BlockStateWithPos spreadBlockState) { | ||
super(blockState); | ||
this.spreadBlockState = spreadBlockState; | ||
} | ||
} |
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
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