Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit ccdbfad

Browse files
committed
Add EventBus constructors to EntityEvent
1 parent f1aa3da commit ccdbfad

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

  • patchwork-events-entity/src/main/java/net/minecraftforge/event/entity

patchwork-events-entity/src/main/java/net/minecraftforge/event/entity/EntityEvent.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ public Entity getEntity() {
6363
* <p>This event is fired on the {@link net.minecraftforge.common.MinecraftForge#EVENT_BUS}.</p>
6464
*/
6565
public static class EntityConstructing extends EntityEvent {
66+
// For EventBus
67+
public EntityConstructing() {
68+
super();
69+
}
70+
6671
public EntityConstructing(Entity entity) {
6772
super(entity);
6873
}
@@ -83,6 +88,11 @@ public EntityConstructing(Entity entity) {
8388
/* TODO public static class CanUpdate extends EntityEvent {
8489
private boolean canUpdate = false;
8590
91+
// For EventBus
92+
public CanUpdate() {
93+
super();
94+
}
95+
8696
public CanUpdate(Entity entity) {
8797
super(entity);
8898
}
@@ -114,6 +124,11 @@ public static class EnteringChunk extends EntityEvent {
114124
private int oldChunkX;
115125
private int oldChunkZ;
116126

127+
// For EventBus
128+
public EnteringChunk() {
129+
super();
130+
}
131+
117132
public EnteringChunk(Entity entity, int newChunkX, int newChunkZ, int oldChunkX, int oldChunkZ) {
118133
super(entity);
119134
this.setNewChunkX(newChunkX);
@@ -172,6 +187,16 @@ public static class EyeHeight extends EntityEvent {
172187
private final float oldHeight;
173188
private float newHeight;
174189

190+
// For EventBus
191+
public EyeHeight() {
192+
super();
193+
194+
this.pose = null;
195+
this.size = null;
196+
this.oldHeight = 0;
197+
this.newHeight = 0;
198+
}
199+
175200
public EyeHeight(Entity entity, EntityPose pose, EntityDimensions size, float defaultHeight) {
176201
super(entity);
177202
this.pose = pose;

0 commit comments

Comments
 (0)