This commit is contained in:
modmuss50 2020-03-18 20:58:31 +00:00
parent 99b2755887
commit e4fb1773f3
31 changed files with 56 additions and 56 deletions

View file

@ -29,7 +29,7 @@ import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.client.screen.ScreenProviderRegistry;
import net.fabricmc.fabric.api.container.ContainerProviderRegistry;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.client.gui.screen.ingame.ScreenWithHandler;
import net.minecraft.client.gui.screen.ingame.HandledScreen;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import reborncore.RebornCore;
@ -74,7 +74,7 @@ public class GuiHandler {
}
@Environment(EnvType.CLIENT)
private static ScreenWithHandler<?> getClientGuiElement(final EGui gui, final PlayerEntity player, BlockPos pos, int syncID) {
private static HandledScreen<?> getClientGuiElement(final EGui gui, final PlayerEntity player, BlockPos pos, int syncID) {
final BlockEntity blockEntity = player.world.getBlockEntity(pos);
if (blockEntity instanceof DataDrivenBEProvider.DataDrivenBlockEntity) {

View file

@ -69,7 +69,7 @@ public class GuiGreenhouseController extends GuiBase<BuiltScreenHandler> {
if (!blockEntity.getMultiBlock()) {
getMinecraft().getTextureManager().bindTexture(new Identifier("techreborn", "textures/item/part/digital_display.png"));
blit(x + 68, y + 22, 0, 0, 16, 16, 16, 16);
drawTexture(x + 68, y + 22, 0, 0, 16, 16, 16, 16);
if (isPointInRect(68, 22, 16, 16, mouseX, mouseY)) {
List<String> list = Arrays.asList(StringUtils.t("techreborn.tooltip.greenhouse.upgrade_available").split("\\r?\\n"));
RenderSystem.pushMatrix();

View file

@ -88,7 +88,7 @@ public class GuiManual extends Screen {
client.getTextureManager().bindTexture(GuiManual.texture);
int centerX = (width / 2) - guiWidth / 2;
int centerY = (height / 2) - guiHeight / 2;
blit(centerX, centerY, 0, 0, guiWidth, guiHeight);
drawTexture(centerX, centerY, 0, 0, guiWidth, guiHeight);
textRenderer.draw(text1, ((width / 2) - textRenderer.getStringWidth(text1) / 2), centerY + 40, 4210752);
textRenderer.draw(text2, ((width / 2) - textRenderer.getStringWidth(text2) / 2), centerY + 90, 4210752);
if (TechRebornConfig.allowManualRefund) {