-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
477 additions
and
495 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
6 changes: 6 additions & 0 deletions
6
projects/pswg/src/main/java/com/parzivail/pswg/client/input/JetpackControls.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
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
6 changes: 6 additions & 0 deletions
6
projects/pswg/src/main/java/com/parzivail/pswg/client/input/ShipControls.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
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
38 changes: 21 additions & 17 deletions
38
projects/pswg/src/main/java/com/parzivail/pswg/container/SwgPackets.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 |
---|---|---|
@@ -1,34 +1,38 @@ | ||
package com.parzivail.pswg.container; | ||
|
||
import com.parzivail.pswg.Resources; | ||
import com.parzivail.pswg.network.*; | ||
import com.parzivail.util.network.PreciseEntitySpawnS2CPacket; | ||
import com.parzivail.util.network.PreciseEntityVelocityUpdateS2CPacket; | ||
import net.minecraft.network.packet.CustomPayload; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class SwgPackets | ||
{ | ||
public static class C2S | ||
{ | ||
public static final Identifier LightsaberForgeApply = Resources.id("lightsaber_forge_apply"); | ||
public static final Identifier BlasterWorkbenchApply = Resources.id("blaster_workbench_apply"); | ||
public static final Identifier RequestCustomizeSelf = Resources.id("open_character_customizer"); | ||
public static final Identifier SetOwnSpecies = Resources.id("set_own_species"); | ||
public static final Identifier PlayerLeftClickItem = Resources.id("player_use_left"); | ||
public static final Identifier PlayerItemAction = Resources.id("item_action"); | ||
public static final Identifier ShipFire = Resources.id("ship_fire"); | ||
public static final Identifier ShipRotation = Resources.id("srot"); | ||
public static final Identifier ShipControls = Resources.id("sctrl"); | ||
public static final Identifier JetpackControls = Resources.id("jctrl"); | ||
public static final Identifier TogglePatrolPosture = Resources.id("toggle_patrol_posture"); | ||
public static final Identifier LightsaberForgeApply = new CustomPayload.Id<>(Resources.id("lightsaber_forge_apply")); | ||
public static final Identifier BlasterWorkbenchApply = new CustomPayload.Id<>(Resources.id("blaster_workbench_apply")); | ||
public static final CustomPayload.Id<UnitC2SPacket> RequestCustomizeSelf = new CustomPayload.Id<>(Resources.id("open_character_customizer")); // unit | ||
public static final CustomPayload.Id<SetOwnSpeciesC2SPacket> SetOwnSpecies = new CustomPayload.Id<>(Resources.id("set_own_species")); | ||
public static final CustomPayload.Id<PlayerItemLeftClickC2SPacket> PlayerLeftClickItem = new CustomPayload.Id<>(Resources.id("player_use_left")); | ||
public static final CustomPayload.Id<PlayerItemActionC2SPacket> PlayerItemAction = new CustomPayload.Id<>(Resources.id("item_action")); | ||
public static final CustomPayload.Id<UnitC2SPacket> ShipFire = new CustomPayload.Id<>(Resources.id("ship_fire")); // unit | ||
public static final CustomPayload.Id<ShipRotationC2SPacket> ShipRotation = new CustomPayload.Id<>(Resources.id("srot")); | ||
public static final CustomPayload.Id<ShipControlsC2SPacket> ShipControls = new CustomPayload.Id<>(Resources.id("sctrl")); | ||
public static final CustomPayload.Id<JetpackControlsC2SPacket> JetpackControls = new CustomPayload.Id<>(Resources.id("jctrl")); | ||
public static final CustomPayload.Id<UnitC2SPacket> TogglePatrolPosture = new CustomPayload.Id<>(Resources.id("toggle_patrol_posture")); // unit | ||
} | ||
|
||
public static class S2C | ||
{ | ||
public static final Identifier SyncBlockToClient = Resources.id("csync"); | ||
public static final Identifier PreciseEntityVelocityUpdate = Resources.id("pevel"); | ||
public static final Identifier PreciseEntitySpawn = Resources.id("pesp"); | ||
public static final Identifier OpenEntityInventory = Resources.id("entity_inventory"); | ||
public static final Identifier AccumulateRecoil = Resources.id("recoil"); | ||
public static final Identifier BlasterHit = Resources.id("blaster_hit"); | ||
public static final Identifier PlayerSocketPyro = Resources.id("player_sparks"); | ||
public static final CustomPayload.Id<PreciseEntityVelocityUpdateS2CPacket> PreciseEntityVelocityUpdate = new CustomPayload.Id<>(Resources.id("pevel")); | ||
public static final CustomPayload.Id<PreciseEntitySpawnS2CPacket> PreciseEntitySpawn = new CustomPayload.Id<>(Resources.id("pesp")); | ||
public static final CustomPayload.Id<OpenEntityInventoryS2CPacket> OpenEntityInventory = new CustomPayload.Id<>(Resources.id("entity_inventory")); | ||
public static final CustomPayload.Id<AccumulateRecoilS2CPacket> AccumulateRecoil = new CustomPayload.Id<>(Resources.id("recoil")); | ||
public static final CustomPayload.Id<BlasterHitS2CPacket> BlasterHit = new CustomPayload.Id<>(Resources.id("blaster_hit")); | ||
public static final CustomPayload.Id<PlayerSocketSparksS2CPacket> PlayerSocketPyro = new CustomPayload.Id<>(Resources.id("player_sparks")); | ||
public static final Identifier OpenCharacterCustomizer = Resources.id("open_character_customizer"); | ||
} | ||
} |
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
Oops, something went wrong.