-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition Injections can now be injected before or after their targe…
…t transition, instead of only before. Planning to use this for i.e. Raccoon Mario air-stall action, a transition to which could be injected after landing-related transitions.
- Loading branch information
1 parent
a21c62a
commit f12058c
Showing
5 changed files
with
86 additions
and
24 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
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
34 changes: 34 additions & 0 deletions
34
...main/java/com/floralquafloral/registries/states/action/baseactions/airborne/DuckJump.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,34 @@ | ||
package com.floralquafloral.registries.states.action.baseactions.airborne; | ||
|
||
import com.floralquafloral.MarioQuaMario; | ||
import com.floralquafloral.registries.states.action.baseactions.grounded.DuckWaddle; | ||
import net.minecraft.util.Identifier; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public class DuckJump extends Jump { | ||
@Override public @NotNull Identifier getID() { | ||
return Identifier.of(MarioQuaMario.MOD_ID, "duck_jump"); | ||
} | ||
|
||
@Override public SneakLegalityRule getSneakLegalityRule() { | ||
return SneakLegalityRule.ALLOW; | ||
} | ||
|
||
@Override public List<ActionTransitionDefinition> getPreTickTransitions() { | ||
return List.of( | ||
new ActionTransitionDefinition("qua_mario:duck_waddle", | ||
AerialTransitions.BASIC_LANDING.EVALUATOR | ||
) | ||
); | ||
} | ||
|
||
@Override public List<ActionTransitionDefinition> getPostTickTransitions() { | ||
return List.of( | ||
new ActionTransitionDefinition("qua_mario:jump", | ||
DuckWaddle.UNDUCK.EVALUATOR | ||
) | ||
); | ||
} | ||
} |
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