-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added keybind for clearing goop puddles
- Loading branch information
1 parent
cf72edd
commit 3e64abc
Showing
8 changed files
with
49 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
- Added Censor Mode Setting | ||
- Improved Surface Detection (Goop now sticks to non-full block surfaces like slabs) | ||
- goop is no longer offset weirdly in negative coordinates | ||
- Added Random Rotation Setting | ||
- Added Random Rotation Setting | ||
- Added Keybind for clearing all Goop |
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
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
30 changes: 30 additions & 0 deletions
30
src/main/java/absolutelyaya/goop/registries/KeybindRegistry.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,30 @@ | ||
package absolutelyaya.goop.registries; | ||
|
||
import absolutelyaya.goop.particles.GoopParticle; | ||
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; | ||
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper; | ||
import net.minecraft.client.option.KeyBinding; | ||
import net.minecraft.client.util.InputUtil; | ||
|
||
public class KeybindRegistry | ||
{ | ||
public static final KeyBinding CLEAR_GOOP = KeyBindingHelper.registerKeyBinding( | ||
new KeyBinding("key.goop.clear", InputUtil.Type.KEYSYM, | ||
InputUtil.UNKNOWN_KEY.getCode(), "category.goop")); | ||
|
||
static boolean clearPressed; | ||
|
||
public static void register() | ||
{ | ||
ClientTickEvents.END_CLIENT_TICK.register(client -> | ||
{ | ||
while (CLEAR_GOOP.wasPressed() && !clearPressed) | ||
{ | ||
GoopParticle.removeAll(); | ||
clearPressed = true; | ||
} | ||
while (CLEAR_GOOP.wasPressed()); //remove stored presses | ||
clearPressed = CLEAR_GOOP.isPressed(); | ||
}); | ||
} | ||
} |
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