2.2.6
This commit is contained in:
1 parent
758fa58b1b
commit
c00d57e4e0
63 files changed
+7541
-2626
No files matched your search
+25
@@ -36,6 +36,21 @@ public final class AntarchyKeyBindings {
|
||||
InputConstants.KEY_R,
|
||||
CATEGORY
|
||||
);
|
||||
public static final KeyMapping MOUNT_BEAM = new KeyMapping(
|
||||
"key.antarchy.mount_beam",
|
||||
KeyConflictContext.IN_GAME,
|
||||
InputConstants.Type.KEYSYM,
|
||||
InputConstants.KEY_H,
|
||||
CATEGORY
|
||||
);
|
||||
|
||||
public static final KeyMapping MOUNT_SIGNATURE = new KeyMapping(
|
||||
"key.antarchy.mount_signature",
|
||||
KeyConflictContext.IN_GAME,
|
||||
InputConstants.Type.KEYSYM,
|
||||
InputConstants.KEY_J,
|
||||
CATEGORY
|
||||
);
|
||||
public static final KeyMapping TIGERS_EYE_CAMOUFLAGE = new KeyMapping(
|
||||
"key.antarchy.tigers_eye_camouflage",
|
||||
KeyConflictContext.IN_GAME,
|
||||
@@ -80,6 +95,8 @@ public final class AntarchyKeyBindings {
|
||||
event.register(BRUTALFLY_FLAP);
|
||||
event.register(MOUNT_SPECIAL);
|
||||
event.register(MOUNT_FLIGHT_TOGGLE);
|
||||
event.register(MOUNT_BEAM);
|
||||
event.register(MOUNT_SIGNATURE);
|
||||
event.register(TIGERS_EYE_CAMOUFLAGE);
|
||||
event.register(ROYAL_INVERSION_TOGGLE);
|
||||
event.register(ROYAL_BOUNDARY);
|
||||
@@ -91,6 +108,14 @@ public final class AntarchyKeyBindings {
|
||||
return MOUNT_FLIGHT_TOGGLE.isDown();
|
||||
}
|
||||
|
||||
public static boolean isMountBeamPressed() {
|
||||
return MOUNT_BEAM.isDown();
|
||||
}
|
||||
|
||||
public static boolean isMountSignaturePressed() {
|
||||
return MOUNT_SIGNATURE.isDown();
|
||||
}
|
||||
|
||||
public static boolean isMountSpecialPressed() {
|
||||
return MOUNT_SPECIAL.isDown();
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,6 +17,6 @@ public final class QueenMusicClientHandler {
|
||||
@SubscribeEvent
|
||||
public static void onClientTick(ClientTickEvent.Post event) {
|
||||
Minecraft minecraft = Minecraft.getInstance();
|
||||
QueenMusicHandler.tick(minecraft, AntarchyNeoforgeSounds.THE_QUEEN.get());
|
||||
QueenMusicHandler.tick(minecraft, AntarchyNeoforgeSounds.THE_QUEEN);
|
||||
}
|
||||
}
|
||||
+16
@@ -18,6 +18,8 @@ public final class RoyalMountClientHandler {
|
||||
private static boolean wasAttack;
|
||||
private static boolean wasSpecial;
|
||||
private static boolean wasFlightToggle;
|
||||
private static boolean wasBeam;
|
||||
private static boolean wasSignature;
|
||||
private static boolean wasAscend;
|
||||
private static boolean wasDescend;
|
||||
private static boolean wasUse;
|
||||
@@ -64,6 +66,18 @@ public final class RoyalMountClientHandler {
|
||||
}
|
||||
wasFlightToggle = flightToggle;
|
||||
|
||||
boolean beam = AntarchyKeyBindings.isMountBeamPressed();
|
||||
if (beam && !wasBeam) {
|
||||
PacketDistributor.sendToServer(new RoyalMountActionPayload(RoyalMountActionPayload.BEAM));
|
||||
}
|
||||
wasBeam = beam;
|
||||
|
||||
boolean signature = AntarchyKeyBindings.isMountSignaturePressed();
|
||||
if (signature && !wasSignature) {
|
||||
PacketDistributor.sendToServer(new RoyalMountActionPayload(RoyalMountActionPayload.SIGNATURE));
|
||||
}
|
||||
wasSignature = signature;
|
||||
|
||||
boolean ascend = mc.options.keyJump.isDown();
|
||||
boolean descend = mc.options.keyShift.isDown();
|
||||
if (ascend != wasAscend || descend != wasDescend) {
|
||||
@@ -80,6 +94,8 @@ public final class RoyalMountClientHandler {
|
||||
wasAttack = false;
|
||||
wasSpecial = false;
|
||||
wasFlightToggle = false;
|
||||
wasBeam = false;
|
||||
wasSignature = false;
|
||||
wasAscend = false;
|
||||
wasDescend = false;
|
||||
}
|
||||
|
||||
+6
@@ -29,5 +29,11 @@ public class AmendmentRareOresMixin {
|
||||
new Amendment.MatchingBlockTagSelector("antarchy:infinity_dimension_rare_ores"),
|
||||
new Amendment.SetValue(0.02)
|
||||
));
|
||||
data.computeIfAbsent(ConfigType.EFFECTS, k -> new ArrayList<>()).add(new Amendment(
|
||||
ConfigType.EFFECTS,
|
||||
new Amendment.MatchingModSelector("antarchy"),
|
||||
new Amendment.MatchingSelector("antarchy:paralyzed"),
|
||||
new Amendment.SetValue(0.0)
|
||||
));
|
||||
}
|
||||
}
|
||||
+2
@@ -107,6 +107,8 @@ public class AntarchyNeoforgePayloadHandlers {
|
||||
case com.craisinlord.antarchy.content.network.RoyalMountActionPayload.FLIGHT_TOGGLE -> mount.toggleMountedFlight(player);
|
||||
case com.craisinlord.antarchy.content.network.RoyalMountActionPayload.BITE -> mount.handleMountedBite(player);
|
||||
case com.craisinlord.antarchy.content.network.RoyalMountActionPayload.SPIT -> mount.handleMountedSpit(player);
|
||||
case com.craisinlord.antarchy.content.network.RoyalMountActionPayload.BEAM -> mount.handleMountedBeam(player);
|
||||
case com.craisinlord.antarchy.content.network.RoyalMountActionPayload.SIGNATURE -> mount.handleMountedSignature(player);
|
||||
default -> {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user