-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get dedicated servers actually working
- Loading branch information
1 parent
c438d1f
commit d0d3dbb
Showing
3 changed files
with
45 additions
and
33 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
32 changes: 32 additions & 0 deletions
32
xplat/src/main/java/fzzyhmstrs/emi_loot/client/ClientLootTablesReceiver.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,32 @@ | ||
package fzzyhmstrs.emi_loot.client; | ||
|
||
import fzzyhmstrs.emi_loot.networking.ArchaeologyLootPayload; | ||
import fzzyhmstrs.emi_loot.networking.BlockLootPayload; | ||
import fzzyhmstrs.emi_loot.networking.ChestLootPayload; | ||
import fzzyhmstrs.emi_loot.networking.GameplayLootPayload; | ||
import fzzyhmstrs.emi_loot.networking.MobLootPayload; | ||
import me.fzzyhmstrs.fzzy_config.networking.api.ClientPlayNetworkContext; | ||
|
||
public class ClientLootTablesReceiver { | ||
|
||
public static void receiveChestSender(ChestLootPayload payload, ClientPlayNetworkContext ctx) { | ||
ClientLootTables.INSTANCE.receiveChestSender(payload.buf(), ctx.player().getWorld()); | ||
} | ||
|
||
public static void receiveBlockSender(BlockLootPayload payload, ClientPlayNetworkContext ctx) { | ||
ClientLootTables.INSTANCE.receiveBlockSender(payload.buf(), ctx.player().getWorld()); | ||
} | ||
|
||
public static void receiveMobSender(MobLootPayload payload, ClientPlayNetworkContext ctx) { | ||
ClientLootTables.INSTANCE.receiveMobSender(payload.buf(), ctx.player().getWorld()); | ||
} | ||
|
||
public static void receiveGameplaySender(GameplayLootPayload payload, ClientPlayNetworkContext ctx) { | ||
ClientLootTables.INSTANCE.receiveGameplaySender(payload.buf(), ctx.player().getWorld()); | ||
} | ||
|
||
public static void receiveArchaeologySender(ArchaeologyLootPayload payload, ClientPlayNetworkContext ctx) { | ||
ClientLootTables.INSTANCE.receiveArchaeologySender(payload.buf(), ctx.player().getWorld()); | ||
} | ||
|
||
} |