mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Improve Corporea Index keybind requests (#3065)
Keybind requests now send an itemstack instead of the item name. Items in inventories ignore their own NBT, NBT matching made less strict Chat is no longer touched by keybind requests Recipe book buttons can now be a source of keybind requests Keybind requests work again with shift and ctrl Matchers are in charge of their index request formatting Index event now uses a matcher (this and previous change break api) Indexes ignore spectators
This commit is contained in:
1 parent
5e565aef45
commit
e1e95a872d
8 files changed
+137
-32
No files matched your search
@@ -14,7 +14,7 @@ import net.minecraftforge.fml.network.simple.SimpleChannel;
|
||||
import vazkii.botania.common.lib.LibMisc;
|
||||
|
||||
public final class PacketHandler {
|
||||
private static final String PROTOCOL = "1";
|
||||
private static final String PROTOCOL = "2";
|
||||
public static final SimpleChannel HANDLER = NetworkRegistry.newSimpleChannel(
|
||||
new ResourceLocation(LibMisc.MOD_ID, "chan"),
|
||||
() -> PROTOCOL,
|
||||
@@ -30,6 +30,7 @@ public final class PacketHandler {
|
||||
HANDLER.registerMessage(id++, PacketJump.class, PacketJump::encode, PacketJump::decode, PacketJump::handle);
|
||||
HANDLER.registerMessage(id++, PacketItemAge.class, PacketItemAge::encode, PacketItemAge::decode, PacketItemAge::handle);
|
||||
HANDLER.registerMessage(id++, PacketSyncRecipes.class, PacketSyncRecipes::encode, PacketSyncRecipes::decode, PacketSyncRecipes::handle);
|
||||
HANDLER.registerMessage(id++, PacketIndexKeybindRequest.class, PacketIndexKeybindRequest::encode, PacketIndexKeybindRequest::decode, PacketIndexKeybindRequest::handle);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user