Skip to content

Commit b467b5d

Browse files
committed
Add more handlers to CheckedBehaviourProvider
1 parent 7233e95 commit b467b5d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/modlauncher/src/main/java/org/gotti/wurmunlimited/modsupport/actions/ChainedBehaviourProvider.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ public List<ActionEntry> getBehavioursFor(Creature performer, int tilex, int til
9292
return call(behaviourProvider -> behaviourProvider.getBehavioursFor(performer, tilex, tiley, onSurface, corner, tile));
9393
}
9494

95+
@Override
96+
public List<ActionEntry> getBehavioursFor(Creature performer, int tilex, int tiley, boolean onSurface, boolean corner, int tile, int heightOffset) {
97+
return call(behaviourProvider -> behaviourProvider.getBehavioursFor(performer, tilex, tiley, onSurface, corner, tile, heightOffset));
98+
}
99+
95100
@Override
96101
public List<ActionEntry> getBehavioursFor(Creature performer, int tilex, int tiley, boolean onSurface, int tile) {
97102
return call(behaviourProvider -> behaviourProvider.getBehavioursFor(performer, tilex, tiley, onSurface, tile));
@@ -117,6 +122,11 @@ public List<ActionEntry> getBehavioursFor(Creature performer, Item object, int t
117122
return call(behaviourProvider -> behaviourProvider.getBehavioursFor(performer, object, tilex, tiley, onSurface, corner, tile));
118123
}
119124

125+
@Override
126+
public List<ActionEntry> getBehavioursFor(Creature performer, Item object, int tilex, int tiley, boolean onSurface, boolean corner, int tile, int heightOffset) {
127+
return call(behaviourProvider -> behaviourProvider.getBehavioursFor(performer, object, tilex, tiley, onSurface, corner, tile, heightOffset));
128+
}
129+
120130
@Override
121131
public List<ActionEntry> getBehavioursFor(Creature performer, Item object, int tilex, int tiley, boolean onSurface, int tile) {
122132
return call(behaviourProvider -> behaviourProvider.getBehavioursFor(performer, object, tilex, tiley, onSurface, tile));

0 commit comments

Comments
 (0)