-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add telemetry events missed in 1.13 and 1.14
- Loading branch information
1 parent
f9705b6
commit ee72557
Showing
10 changed files
with
462 additions
and
4 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
13 changes: 13 additions & 0 deletions
13
...c/main/java/com/nukkitx/protocol/bedrock/data/event/EntityDefinitionTriggerEventData.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,13 @@ | ||
package com.nukkitx.protocol.bedrock.data.event; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class EntityDefinitionTriggerEventData implements EventData { | ||
private final String id; | ||
|
||
@Override | ||
public EventDataType getType() { | ||
return EventDataType.ENTITY_DEFINITION_TRIGGER; | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...k-common/src/main/java/com/nukkitx/protocol/bedrock/data/event/ExtractHoneyEventData.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,14 @@ | ||
package com.nukkitx.protocol.bedrock.data.event; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class ExtractHoneyEventData implements EventData { | ||
public static final ExtractHoneyEventData INSTANCE = new ExtractHoneyEventData(); | ||
|
||
@Override | ||
public EventDataType getType() { | ||
return EventDataType.EXTRACT_HONEY; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...drock-common/src/main/java/com/nukkitx/protocol/bedrock/data/event/MovementEventData.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,17 @@ | ||
package com.nukkitx.protocol.bedrock.data.event; | ||
|
||
import com.nukkitx.math.vector.Vector2f; | ||
import com.nukkitx.math.vector.Vector3f; | ||
import lombok.Value; | ||
|
||
@Value | ||
public class MovementEventData implements EventData { | ||
private final int movementType; | ||
private final Vector2f rotation; // Guess | ||
private final Vector3f position; // Guess | ||
|
||
@Override | ||
public EventDataType getType() { | ||
return EventDataType.MOVEMENT; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...mon/src/main/java/com/nukkitx/protocol/bedrock/data/event/MovementThresholdEventData.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,17 @@ | ||
package com.nukkitx.protocol.bedrock.data.event; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class MovementThresholdEventData implements EventData { | ||
private final float unknown0; | ||
private final float unknown1; | ||
private final float playerMovementScoreThreshold; | ||
private final float playerMovementDistanceThreshold; | ||
private final int playerMovementDurationThreshold; | ||
|
||
@Override | ||
public EventDataType getType() { | ||
return EventDataType.MOVEMENT_THRESHOLD; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...ock-common/src/main/java/com/nukkitx/protocol/bedrock/data/event/RaidUpdateEventData.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,15 @@ | ||
package com.nukkitx.protocol.bedrock.data.event; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class RaidUpdateEventData implements EventData { | ||
private final int currentWave; | ||
private final int totalWaves; | ||
private final boolean unknown0; // Hero of the village? | ||
|
||
@Override | ||
public EventDataType getType() { | ||
return EventDataType.RAID_UPDATE; | ||
} | ||
} |
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
Oops, something went wrong.