[Feature] Build for 1.19.4
This commit is contained in:
parent
8a8e73348c
commit
55930d73d5
55 changed files with 380 additions and 304 deletions
|
@ -37,6 +37,18 @@ public class AnvilScreenMixin extends ItemCombinerScreen<AnvilMenu> {
|
|||
super(handler, playerInventory, title, texture);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void renderErrorIcon(PoseStack poseStack, int i, int j) {
|
||||
if (this.hasRecipeError()) {
|
||||
blit(poseStack, i + 65, j + 46, this.imageWidth, 0, 28, 21);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean hasRecipeError() {
|
||||
//TODO: 1.19.4 check error conditions
|
||||
return false;
|
||||
}
|
||||
|
||||
@Inject(method = "subInit", at = @At("TAIL"))
|
||||
protected void be_subInit(CallbackInfo info) {
|
||||
int x = (width - imageWidth) / 2;
|
||||
|
|
|
@ -2,17 +2,17 @@ package org.betterx.bclib.mixin.client;
|
|||
|
||||
import org.betterx.bclib.api.v2.dataexchange.DataExchangeAPI;
|
||||
|
||||
import net.minecraft.client.Game;
|
||||
import net.minecraft.client.multiplayer.ClientPacketListener;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(Game.class)
|
||||
public class GameMixin {
|
||||
@Mixin(ClientPacketListener.class)
|
||||
public class ClientPacketListenerMixin {
|
||||
|
||||
@Inject(method = "onStartGameSession", at = @At("TAIL"))
|
||||
@Inject(method = "handleLogin", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/telemetry/WorldSessionTelemetryManager;onPlayerInfoReceived(Lnet/minecraft/world/level/GameType;Z)V"))
|
||||
public void bclib_onStart(CallbackInfo ci) {
|
||||
DataExchangeAPI.sendOnEnter();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue