a few puter fixes
This commit is contained in:
1 parent
0c400ef404
commit
3300fa8f2a
86 files changed
+4480
-200
No files matched your search
@@ -321,6 +321,7 @@ public final class AntarchyFabricContent {
|
||||
AntarchyFabricSounds.QUEEN_ROAR,
|
||||
AntarchyFabricSounds.KING_BEAM_SHOOT,
|
||||
AntarchyFabricSounds.KING_FIREBALL_SHOOT,
|
||||
AntarchyFabricSounds.KING_ICE_SPIKES,
|
||||
AntarchyFabricSounds.KING_DECREE_CAST,
|
||||
AntarchyFabricSounds.QUEEN_BEAM_SHOOT,
|
||||
AntarchyFabricSounds.QUEEN_BEAM_START,
|
||||
|
||||
-10
@@ -33,11 +33,6 @@ public final class AntarchyClothConfigScreenBuilder {
|
||||
ConfigBuilder builder = ConfigBuilder.create()
|
||||
.setParentScreen(parent)
|
||||
.setTitle(Component.translatable("antarchy.config.title"));
|
||||
// Entry save consumers (below) already update the live AntarchySettings fields the
|
||||
// instant the player edits a widget, matching how the game normally behaves. This runs
|
||||
// last, once, when the player clicks "Save" — it's what actually writes those changes
|
||||
// back to the three JSON files, since AntarchyConfigModuleFabric only reads+writes them
|
||||
// at startup otherwise.
|
||||
builder.setSavingRunnable(AntarchyConfigModuleFabric::persist);
|
||||
|
||||
ConfigEntryBuilder entryBuilder = builder.entryBuilder();
|
||||
@@ -74,11 +69,6 @@ public final class AntarchyClothConfigScreenBuilder {
|
||||
.setSaveConsumer(binding::setValue)
|
||||
.build());
|
||||
}
|
||||
// String-typed bindings back the ResourceKey<Level> dimension fields (see
|
||||
// AntarchyConfigModuleFabric.isSupported) and are intentionally skipped here — they're
|
||||
// structural dimension identity, not a tuning knob, and Cloth Config has no natural
|
||||
// widget for them. Every other supported type is exactly what's already persisted to
|
||||
// JSON today, so nothing shown here can drift from what the JSON files contain.
|
||||
}
|
||||
|
||||
private static String displayName(ConfigSection section) {
|
||||
|
||||
+5
@@ -36,6 +36,11 @@ public final class AntarchyFabricClientNetworking {
|
||||
}
|
||||
|
||||
public static void register() {
|
||||
ClientPlayNetworking.registerGlobalReceiver(AntmailResultPayload.TYPE, (payload, context) ->
|
||||
context.client().execute(() -> com.craisinlord.antarchy.content.client.AntmailClientState.update(payload)));
|
||||
ClientPlayNetworking.registerGlobalReceiver(ComputerAccessResultPayload.TYPE, (payload, context) ->
|
||||
context.client().execute(() -> com.craisinlord.antarchy.content.client.ComputerAccessClientState.update(payload)));
|
||||
com.craisinlord.antarchy.content.network.ComputerNetworking.setSender(ServerPlayNetworking::send);
|
||||
ClientPlayNetworking.registerGlobalReceiver(GravityStatePayload.TYPE, (payload, context) ->
|
||||
context.client().execute(() -> AntarchyFabricNetworking.handleGravityState(context.player(), payload)));
|
||||
ClientPlayNetworking.registerGlobalReceiver(BloodglassStatePayload.TYPE, (payload, context) ->
|
||||
|
||||
+20
@@ -49,6 +49,9 @@ public final class AntarchyFabricNetworking {
|
||||
public static void register() {
|
||||
registerPayloadTypes();
|
||||
registerServerReceivers();
|
||||
com.craisinlord.antarchy.content.network.ComputerAccessHandler.setResultSender(ServerPlayNetworking::send);
|
||||
com.craisinlord.antarchy.content.network.AntmailServerHandler.setResultSender(ServerPlayNetworking::send);
|
||||
com.craisinlord.antarchy.content.network.ComputerNetworking.setSender(ServerPlayNetworking::send);
|
||||
}
|
||||
|
||||
public static void bootstrapMultipartCommon() {
|
||||
@@ -72,6 +75,8 @@ public final class AntarchyFabricNetworking {
|
||||
}
|
||||
|
||||
private static void registerPayloadTypes() {
|
||||
PayloadTypeRegistry.playS2C().register(ComputerAccessResultPayload.TYPE, ComputerAccessResultPayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playS2C().register(AntmailResultPayload.TYPE, AntmailResultPayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playS2C().register(GravityStatePayload.TYPE, GravityStatePayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playS2C().register(BloodglassStatePayload.TYPE, BloodglassStatePayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playS2C().register(TigerEyeCamouflageStatePayload.TYPE, TigerEyeCamouflageStatePayload.STREAM_CODEC);
|
||||
@@ -104,9 +109,24 @@ public final class AntarchyFabricNetworking {
|
||||
PayloadTypeRegistry.playC2S().register(HerculesBeetleMountedChargePayload.TYPE, HerculesBeetleMountedChargePayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playC2S().register(MultipartAttackPayload.TYPE, MultipartAttackPayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playC2S().register(MultipartInteractPayload.TYPE, MultipartInteractPayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playC2S().register(ComputerAccessPayload.TYPE, ComputerAccessPayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playC2S().register(AntmailSetupPayload.TYPE, AntmailSetupPayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playC2S().register(AntmailStateRequestPayload.TYPE, AntmailStateRequestPayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playC2S().register(AntmailSendPayload.TYPE, AntmailSendPayload.STREAM_CODEC);
|
||||
PayloadTypeRegistry.playC2S().register(AntmailReadPayload.TYPE, AntmailReadPayload.STREAM_CODEC);
|
||||
}
|
||||
|
||||
private static void registerServerReceivers() {
|
||||
ServerPlayNetworking.registerGlobalReceiver(ComputerAccessPayload.TYPE, (payload, context) ->
|
||||
context.server().execute(() -> ComputerAccessHandler.handle(context.player(), payload)));
|
||||
ServerPlayNetworking.registerGlobalReceiver(AntmailSetupPayload.TYPE, (payload, context) ->
|
||||
context.server().execute(() -> AntmailServerHandler.handle(context.player(), payload)));
|
||||
ServerPlayNetworking.registerGlobalReceiver(AntmailStateRequestPayload.TYPE, (payload, context) ->
|
||||
context.server().execute(() -> AntmailServerHandler.handle(context.player(), payload)));
|
||||
ServerPlayNetworking.registerGlobalReceiver(AntmailSendPayload.TYPE, (payload, context) ->
|
||||
context.server().execute(() -> AntmailServerHandler.handle(context.player(), payload)));
|
||||
ServerPlayNetworking.registerGlobalReceiver(AntmailReadPayload.TYPE, (payload, context) ->
|
||||
context.server().execute(() -> AntmailServerHandler.handle(context.player(), payload)));
|
||||
ServerPlayNetworking.registerGlobalReceiver(GravityGunPrimaryPayload.TYPE, (payload, context) ->
|
||||
context.server().execute(() -> handleGravityGunPrimary(context.player(), payload)));
|
||||
ServerPlayNetworking.registerGlobalReceiver(PortalGunPrimaryPayload.TYPE, (payload, context) ->
|
||||
|
||||
-3
@@ -1548,9 +1548,6 @@ public final class AntarchyFabricItems {
|
||||
() -> new EyeOfTheStormItem(new Item.Properties().stacksTo(1).durability(384).rarity(Rarity.EPIC)));
|
||||
|
||||
|
||||
// Temporarily disabled: keeping the code but not registering the item for now.
|
||||
// public static final DeferredItem<MinersDreamItem> MINERS_DREAM = ITEMS.register("miners_dream",
|
||||
// () -> new MinersDreamItem(new Item.Properties().stacksTo(1).rarity(Rarity.RARE)));
|
||||
|
||||
|
||||
public static final DeferredItem<SquidzookaItem> SQUIDZOOKA = ITEMS.register("squidzooka",
|
||||
|
||||
+1
@@ -542,6 +542,7 @@ public final class AntarchyFabricSounds {
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> KING_DEATH = registerSoundEvent("king_death");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> KING_BEAM_SHOOT = registerSoundEvent("king_beam_shoot");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> KING_FIREBALL_SHOOT = registerSoundEvent("king_fireball_shoot");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> KING_ICE_SPIKES = registerSoundEvent("king_ice_spikes");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> KING_DECREE_CAST = registerSoundEvent("king_decree_cast");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> KING_DECREE = registerSoundEvent("king_decree");
|
||||
public static final DeferredHolder<SoundEvent, SoundEvent> KING_SUCCESS = registerSoundEvent("king_success");
|
||||
|
||||
Reference in new issue
Block a user