-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EntityDisplayNameEvent & EntityCustomNameUpdateEvent & DataWatcherUpd…
…atedEvent
- Loading branch information
Showing
9 changed files
with
28 additions
and
28 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
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
7 changes: 4 additions & 3 deletions
7
src/main/java/at/hannibal2/skyhanni/events/DataWatcherUpdatedEvent.kt
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,9 +1,10 @@ | ||
package at.hannibal2.skyhanni.events | ||
|
||
import at.hannibal2.skyhanni.api.event.GenericSkyHanniEvent | ||
import net.minecraft.entity.DataWatcher | ||
import net.minecraft.entity.Entity | ||
|
||
data class DataWatcherUpdatedEvent( | ||
val entity: Entity, | ||
data class DataWatcherUpdatedEvent<T : Entity>( | ||
val entity: T, | ||
val updatedEntries: List<DataWatcher.WatchableObject>, | ||
) : LorenzEvent() | ||
) : GenericSkyHanniEvent<T>(entity.javaClass) |
7 changes: 4 additions & 3 deletions
7
src/main/java/at/hannibal2/skyhanni/events/EntityCustomNameUpdateEvent.kt
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,9 @@ | ||
package at.hannibal2.skyhanni.events | ||
|
||
import at.hannibal2.skyhanni.api.event.GenericSkyHanniEvent | ||
import net.minecraft.entity.Entity | ||
|
||
data class EntityCustomNameUpdateEvent( | ||
data class EntityCustomNameUpdateEvent<T : Entity>( | ||
val entity: T, | ||
val newName: String?, | ||
val entity: Entity, | ||
) : LorenzEvent() | ||
) : GenericSkyHanniEvent<T>(entity.javaClass) |
4 changes: 2 additions & 2 deletions
4
src/main/java/at/hannibal2/skyhanni/events/entity/EntityDisplayNameEvent.kt
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,7 +1,7 @@ | ||
package at.hannibal2.skyhanni.events.entity | ||
|
||
import at.hannibal2.skyhanni.events.LorenzEvent | ||
import at.hannibal2.skyhanni.api.event.GenericSkyHanniEvent | ||
import net.minecraft.entity.Entity | ||
import net.minecraft.util.ChatComponentText | ||
|
||
class EntityDisplayNameEvent(val entity: Entity, var chatComponent: ChatComponentText) : LorenzEvent() | ||
class EntityDisplayNameEvent<T : Entity>(val entity: T, var chatComponent: ChatComponentText) : GenericSkyHanniEvent<T>(entity.javaClass) |
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