-
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.
Added aerial state system (Fall and Jump implemented)
- Loading branch information
1 parent
c94d2c8
commit fefa871
Showing
10 changed files
with
420 additions
and
29 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
74 changes: 74 additions & 0 deletions
74
src/main/java/com/floralquafloral/registries/states/action/baseactions/airborne/Fall.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,74 @@ | ||
package com.floralquafloral.registries.states.action.baseactions.airborne; | ||
|
||
import com.floralquafloral.MarioQuaMario; | ||
import com.floralquafloral.mariodata.MarioPlayerData; | ||
import com.floralquafloral.mariodata.client.MarioClientData; | ||
import com.floralquafloral.registries.states.action.AirborneActionDefinition; | ||
import com.floralquafloral.stats.CharaStat; | ||
import net.minecraft.util.Identifier; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.List; | ||
|
||
public class Fall extends AirborneActionDefinition { | ||
@Override public @NotNull Identifier getID() { | ||
return Identifier.of(MarioQuaMario.MOD_ID, "fall"); | ||
} | ||
@Override public @Nullable String getAnimationName() { | ||
return ""; | ||
} | ||
|
||
@Override public SneakLegalityRule getSneakLegalityRule() { | ||
return SneakLegalityRule.PROHIBIT; | ||
} | ||
@Override public SlidingStatus getConstantSlidingStatus() { | ||
return SlidingStatus.NOT_SLIDING; | ||
} | ||
@Override public @Nullable Identifier getStompType() { | ||
return Identifier.of("qua_mario", "stomp"); | ||
} | ||
|
||
@Override protected @NotNull CharaStat getGravity() { | ||
return AerialStats.GRAVITY; | ||
} | ||
@Override protected @Nullable CharaStat getJumpGravity() { | ||
return null; | ||
} | ||
@Override protected @NotNull CharaStat getTerminalVelocity() { | ||
return AerialStats.TERMINAL_VELOCITY; | ||
} | ||
@Override protected @Nullable CharaStat getJumpCap() { | ||
return null; | ||
} | ||
|
||
@Override public void aerialSelfTick(MarioClientData data) { | ||
airborneAccel(data); | ||
} | ||
|
||
@Override public void otherClientsTick(MarioPlayerData data) { | ||
|
||
} | ||
|
||
@Override public void serverTick(MarioPlayerData data) { | ||
|
||
} | ||
|
||
@Override public List<ActionTransitionDefinition> getPreTickTransitions() { | ||
return List.of( | ||
AerialTransitions.BASIC_LANDING | ||
); | ||
} | ||
|
||
@Override public List<ActionTransitionDefinition> getPostTickTransitions() { | ||
return List.of(); | ||
} | ||
|
||
@Override public List<ActionTransitionDefinition> getPostMoveTransitions() { | ||
return List.of(); | ||
} | ||
|
||
@Override public List<ActionTransitionInjection> getTransitionInjections() { | ||
return List.of(); | ||
} | ||
} |
Oops, something went wrong.