1.19.1
This commit is contained in:
parent
4461b5d782
commit
3313f3165f
9 changed files with 14 additions and 25 deletions
|
@ -17,7 +17,7 @@ curseforge {
|
|||
id = "237903"
|
||||
changelog = ENV.CHANGELOG ?: "No changelog provided"
|
||||
releaseType = ENV.RELEASE_CHANNEL ?: "release"
|
||||
addGameVersion "1.19"
|
||||
addGameVersion "1.19.1"
|
||||
addGameVersion "Fabric"
|
||||
|
||||
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
|
||||
|
|
|
@ -147,8 +147,7 @@ public class ClientBoundPacketHandlers {
|
|||
|
||||
client.execute(() -> {
|
||||
int deleteID = RebornCore.MOD_ID.hashCode() + messageId;
|
||||
ChatHud chat = MinecraftClient.getInstance().inGameHud.getChatHud();
|
||||
chat.addMessage(text, deleteID);
|
||||
MinecraftClient.getInstance().inGameHud.setOverlayMessage(text, false);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -25,19 +25,11 @@
|
|||
package reborncore.client;
|
||||
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.network.message.MessageSender;
|
||||
import net.minecraft.network.message.MessageType;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Util;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class ClientChatUtils {
|
||||
public static void addHudMessage(Text text) {
|
||||
MinecraftClient.getInstance().inGameHud.onChatMessage(getSystemMessageType(), text, new MessageSender(Util.NIL_UUID, text));
|
||||
}
|
||||
|
||||
private static MessageType getSystemMessageType() {
|
||||
Registry<MessageType> registry = MinecraftClient.getInstance().world.getRegistryManager().get(Registry.MESSAGE_TYPE_KEY);
|
||||
return registry.get(MessageType.SYSTEM);
|
||||
final MinecraftClient client = MinecraftClient.getInstance();
|
||||
client.inGameHud.getChatHud().addMessage(text);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -444,7 +444,7 @@ public class GuiBuilder {
|
|||
bufferBuilder.vertex(this.left, this.top, 0.0D).texture((float) this.left / 32.0F, (float) (this.top + (int) this.getScrollAmount()) / 32.0F).color(32, 32, 32, 255).next();
|
||||
tessellator.draw();
|
||||
|
||||
super.renderList(matrices, this.getRowLeft(), this.top, mouseX, mouseY, delta);
|
||||
super.renderList(matrices, mouseX, mouseY, delta);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -16,7 +16,6 @@ accessible method net/minecraft/client/render/WorldRenderer drawShapeOu
|
|||
|
||||
accessible method net/minecraft/world/gen/treedecorator/TreeDecoratorType <init> (Lcom/mojang/serialization/Codec;)V
|
||||
|
||||
accessible method net/minecraft/client/gui/hud/ChatHud addMessage (Lnet/minecraft/text/Text;I)V
|
||||
accessible method net/minecraft/client/item/ModelPredicateProviderRegistry register (Lnet/minecraft/item/Item;Lnet/minecraft/util/Identifier;Lnet/minecraft/client/item/UnclampedModelPredicateProvider;)V
|
||||
accessible field net/minecraft/client/gui/screen/Screen selectables Ljava/util/List;
|
||||
accessible field net/minecraft/block/FluidBlock fluid Lnet/minecraft/fluid/FlowableFluid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue