mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-16 14:37:39 +00:00
Compare commits
9 Commits
v1.20.1-1.
...
feature/po
Author | SHA1 | Date | |
---|---|---|---|
![]() |
94e7d2d03b | ||
![]() |
c271ed7c7f | ||
![]() |
d6a246c122 | ||
![]() |
0bef3ee0d8 | ||
![]() |
bb04df7086 | ||
![]() |
a70baf0d74 | ||
![]() |
86e2f92493 | ||
![]() |
e9aceca1de | ||
![]() |
3042950507 |
10
.github/workflows/main-ci.yml
vendored
10
.github/workflows/main-ci.yml
vendored
@@ -30,8 +30,16 @@ jobs:
|
||||
- name: ⚒️ Build
|
||||
run: ./gradlew assemble || ./gradlew assemble
|
||||
|
||||
- name: Cache pre-commit
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
|
||||
- name: 💡 Lint
|
||||
uses: pre-commit/action@v3.0.0
|
||||
run: |
|
||||
pipx install pre-commit
|
||||
pre-commit run --show-diff-on-failure --color=always
|
||||
|
||||
- name: 🧪 Run tests
|
||||
run: ./gradlew test validateMixinNames checkChangelog
|
||||
|
@@ -21,6 +21,7 @@ files:
|
||||
ru: ru_ru # Russian
|
||||
sv-SE: sv_se # Sweedish
|
||||
tok: tok # Toki Pona
|
||||
tr: tr_tr # Turkish
|
||||
uk: uk_ua # Ukraine
|
||||
vi: vi_vn # Vietnamese
|
||||
zh-CN: zh_cn # Chinese Simplified
|
||||
|
@@ -81,7 +81,7 @@ compatibility for these newer versions.
|
||||
| `string.dump` strip argument | ✔ | |
|
||||
| `string.pack`/`string.unpack`/`string.packsize` | ✔ | |
|
||||
| `table.move` | ✔ | |
|
||||
| `math.atan2` -> `math.atan` | ❌ | |
|
||||
| `math.atan2` -> `math.atan` | 🔶 | `math.atan` supports its two argument form. |
|
||||
| Removed `math.frexp`, `math.ldexp`, `math.pow`, `math.cosh`, `math.sinh`, `math.tanh` | ❌ | |
|
||||
| `math.maxinteger`/`math.mininteger` | ❌ | |
|
||||
| `math.tointeger` | ❌ | |
|
||||
|
@@ -26,7 +26,7 @@ slf4j = "2.0.1"
|
||||
asm = "9.6"
|
||||
autoService = "1.1.1"
|
||||
checkerFramework = "3.42.0"
|
||||
cobalt = "0.9.3"
|
||||
cobalt = "0.9.4"
|
||||
commonsCli = "1.6.0"
|
||||
jetbrainsAnnotations = "24.1.0"
|
||||
jsr305 = "3.0.2"
|
||||
|
@@ -56,4 +56,8 @@ public final class ClientPocketComputers {
|
||||
var id = PocketComputerItem.getInstanceID(stack);
|
||||
return id == null ? null : instances.get(id);
|
||||
}
|
||||
|
||||
static @Nullable PocketComputerData get(UUID id) {
|
||||
return instances.get(id);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,101 @@
|
||||
// SPDX-FileCopyrightText: 2024 The CC: Tweaked Developers
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package dan200.computercraft.client.pocket;
|
||||
|
||||
import com.mojang.blaze3d.vertex.PoseStack;
|
||||
import dan200.computercraft.client.gui.GuiSprites;
|
||||
import dan200.computercraft.client.render.ComputerBorderRenderer;
|
||||
import dan200.computercraft.client.render.RenderTypes;
|
||||
import dan200.computercraft.client.render.SpriteRenderer;
|
||||
import dan200.computercraft.client.render.text.FixedWidthFontRenderer;
|
||||
import dan200.computercraft.core.terminal.Terminal;
|
||||
import dan200.computercraft.shared.computer.core.ComputerFamily;
|
||||
import dan200.computercraft.shared.computer.terminal.NetworkedTerminal;
|
||||
import dan200.computercraft.shared.pocket.items.PocketTooltipComponent;
|
||||
import net.minecraft.client.gui.Font;
|
||||
import net.minecraft.client.gui.GuiGraphics;
|
||||
import net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent;
|
||||
import net.minecraft.client.renderer.MultiBufferSource;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.UUID;
|
||||
|
||||
import static dan200.computercraft.client.render.ComputerBorderRenderer.BORDER;
|
||||
import static dan200.computercraft.client.render.ComputerBorderRenderer.MARGIN;
|
||||
import static dan200.computercraft.client.render.text.FixedWidthFontRenderer.FONT_HEIGHT;
|
||||
import static dan200.computercraft.client.render.text.FixedWidthFontRenderer.FONT_WIDTH;
|
||||
|
||||
/**
|
||||
* Renders the pocket computer's terminal in the item's tooltip.
|
||||
* <p>
|
||||
* The rendered terminal is downscaled by a factor of {@link #SCALE}.
|
||||
*/
|
||||
public class PocketClientTooltipComponent implements ClientTooltipComponent {
|
||||
private static final float SCALE = 0.5f;
|
||||
|
||||
private final UUID id;
|
||||
private final ComputerFamily family;
|
||||
|
||||
public PocketClientTooltipComponent(PocketTooltipComponent component) {
|
||||
this.id = component.id();
|
||||
this.family = component.family();
|
||||
}
|
||||
|
||||
private @Nullable PocketComputerData computer() {
|
||||
return ClientPocketComputers.get(id);
|
||||
}
|
||||
|
||||
private @Nullable NetworkedTerminal terminal() {
|
||||
var computer = computer();
|
||||
return computer == null ? null : computer.getTerminal();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHeight() {
|
||||
var terminal = terminal();
|
||||
if (terminal == null) return 0;
|
||||
|
||||
return (int) Math.ceil(
|
||||
(terminal.getHeight() * FixedWidthFontRenderer.FONT_HEIGHT + ComputerBorderRenderer.BORDER * 2 + ComputerBorderRenderer.MARGIN * 2) * SCALE
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWidth(Font font) {
|
||||
var terminal = terminal();
|
||||
if (terminal == null) return 0;
|
||||
|
||||
return (int) Math.ceil(
|
||||
(terminal.getWidth() * FixedWidthFontRenderer.FONT_WIDTH + ComputerBorderRenderer.BORDER * 2 + ComputerBorderRenderer.MARGIN * 2) * SCALE
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderImage(Font font, int x, int y, GuiGraphics guiGraphics) {
|
||||
var terminal = terminal();
|
||||
if (terminal == null) return;
|
||||
|
||||
var pose = guiGraphics.pose();
|
||||
pose.pushPose();
|
||||
pose.translate(x, y, 0);
|
||||
pose.scale(SCALE, SCALE, 1);
|
||||
|
||||
|
||||
render(pose, guiGraphics.bufferSource(), terminal);
|
||||
|
||||
pose.popPose();
|
||||
}
|
||||
|
||||
private void render(PoseStack stack, MultiBufferSource buffers, Terminal terminal) {
|
||||
var width = terminal.getWidth() * FONT_WIDTH + MARGIN * 2;
|
||||
var height = terminal.getHeight() * FONT_HEIGHT + MARGIN * 2;
|
||||
|
||||
var renderer = SpriteRenderer.createForGui(stack.last().pose(), buffers.getBuffer(RenderTypes.GUI_SPRITES));
|
||||
ComputerBorderRenderer.render(renderer, GuiSprites.getComputerTextures(family), BORDER, BORDER, width, height, false);
|
||||
|
||||
var quadEmitter = FixedWidthFontRenderer.toVertexConsumer(stack, buffers.getBuffer(RenderTypes.TERMINAL));
|
||||
FixedWidthFontRenderer.drawTerminal(quadEmitter, BORDER + MARGIN, BORDER + MARGIN, terminal, MARGIN, MARGIN, MARGIN, MARGIN);
|
||||
}
|
||||
}
|
@@ -34,11 +34,12 @@ public class SpriteRenderer {
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
public static SpriteRenderer createForGui(Matrix4f transform, VertexConsumer builder) {
|
||||
return new SpriteRenderer(transform, builder, 0, RenderTypes.FULL_BRIGHT_LIGHTMAP, 255, 255, 255);
|
||||
}
|
||||
|
||||
public static SpriteRenderer createForGui(GuiGraphics graphics, RenderType renderType) {
|
||||
return new SpriteRenderer(
|
||||
graphics.pose().last().pose(), graphics.bufferSource().getBuffer(renderType),
|
||||
0, RenderTypes.FULL_BRIGHT_LIGHTMAP, 255, 255, 255
|
||||
);
|
||||
return createForGui(graphics.pose().last().pose(), graphics.bufferSource().getBuffer(renderType));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -38,8 +38,6 @@
|
||||
"commands.computercraft.generic.additional_rows": "%d additional rows…",
|
||||
"commands.computercraft.generic.exception": "Unhandled exception (%s)",
|
||||
"commands.computercraft.generic.no": "N",
|
||||
"commands.computercraft.generic.no_position": "<no pos>",
|
||||
"commands.computercraft.generic.position": "%s, %s, %s",
|
||||
"commands.computercraft.generic.yes": "Y",
|
||||
"commands.computercraft.help.desc": "Displays this help message",
|
||||
"commands.computercraft.help.no_children": "%s has no sub-commands",
|
||||
|
@@ -160,8 +160,6 @@ public final class LanguageProvider implements DataProvider {
|
||||
add("commands.computercraft.queue.synopsis", "Send a computer_command event to a command computer");
|
||||
add("commands.computercraft.queue.desc", "Send a computer_command event to a command computer, passing through the additional arguments. This is mostly designed for map makers, acting as a more computer-friendly version of /trigger. Any player can run the command, which would most likely be done through a text component's click event.");
|
||||
|
||||
add("commands.computercraft.generic.no_position", "<no pos>");
|
||||
add("commands.computercraft.generic.position", "%s, %s, %s");
|
||||
add("commands.computercraft.generic.yes", "Y");
|
||||
add("commands.computercraft.generic.no", "N");
|
||||
add("commands.computercraft.generic.exception", "Unhandled exception (%s)");
|
||||
|
@@ -40,9 +40,8 @@ public final class ChatHelpers {
|
||||
return component;
|
||||
}
|
||||
|
||||
public static MutableComponent position(@Nullable BlockPos pos) {
|
||||
if (pos == null) return Component.translatable("commands.computercraft.generic.no_position");
|
||||
return Component.translatable("commands.computercraft.generic.position", pos.getX(), pos.getY(), pos.getZ());
|
||||
public static MutableComponent position(BlockPos pos) {
|
||||
return Component.literal(pos.toShortString());
|
||||
}
|
||||
|
||||
public static MutableComponent bool(boolean value) {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
|
||||
//
|
||||
// SPDX-License-Identifier: LicenseRef-CCPL
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package dan200.computercraft.shared.peripheral.generic.methods;
|
||||
|
||||
|
@@ -6,6 +6,7 @@ package dan200.computercraft.shared.peripheral.monitor;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import dan200.computercraft.annotations.ForgeOverride;
|
||||
import dan200.computercraft.api.peripheral.AttachedComputerSet;
|
||||
import dan200.computercraft.api.peripheral.IComputerAccess;
|
||||
import dan200.computercraft.api.peripheral.IPeripheral;
|
||||
import dan200.computercraft.core.terminal.Terminal;
|
||||
@@ -25,9 +26,6 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public class MonitorBlockEntity extends BlockEntity {
|
||||
@@ -53,7 +51,7 @@ public class MonitorBlockEntity extends BlockEntity {
|
||||
private @Nullable ClientMonitor clientMonitor;
|
||||
|
||||
private @Nullable MonitorPeripheral peripheral;
|
||||
private final Set<IComputerAccess> computers = Collections.newSetFromMap(new ConcurrentHashMap<>());
|
||||
private final AttachedComputerSet computers = new AttachedComputerSet();
|
||||
|
||||
private boolean needsUpdate = false;
|
||||
private boolean needsValidating = false;
|
||||
@@ -487,7 +485,7 @@ public class MonitorBlockEntity extends BlockEntity {
|
||||
var monitor = getLoadedMonitor(x, y).getMonitor();
|
||||
if (monitor == null) continue;
|
||||
|
||||
for (var computer : monitor.computers) fun.accept(computer);
|
||||
computers.forEach(fun);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -4,11 +4,11 @@
|
||||
|
||||
package dan200.computercraft.shared.peripheral.speaker;
|
||||
|
||||
import com.google.errorprone.annotations.concurrent.GuardedBy;
|
||||
import dan200.computercraft.api.lua.ILuaContext;
|
||||
import dan200.computercraft.api.lua.LuaException;
|
||||
import dan200.computercraft.api.lua.LuaFunction;
|
||||
import dan200.computercraft.api.lua.LuaTable;
|
||||
import dan200.computercraft.api.peripheral.AttachedComputerSet;
|
||||
import dan200.computercraft.api.peripheral.IComputerAccess;
|
||||
import dan200.computercraft.api.peripheral.IPeripheral;
|
||||
import dan200.computercraft.core.util.Nullability;
|
||||
@@ -33,7 +33,10 @@ import net.minecraft.world.item.RecordItem;
|
||||
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
import static dan200.computercraft.api.lua.LuaValues.checkFinite;
|
||||
|
||||
@@ -60,7 +63,7 @@ public abstract class SpeakerPeripheral implements IPeripheral {
|
||||
public static final int SAMPLE_RATE = 48000;
|
||||
|
||||
private final UUID source = UUID.randomUUID();
|
||||
private final @GuardedBy("computers") Set<IComputerAccess> computers = new HashSet<>();
|
||||
private final AttachedComputerSet computers = new AttachedComputerSet();
|
||||
|
||||
private long clock = 0;
|
||||
private long lastPositionTime;
|
||||
@@ -140,11 +143,7 @@ public abstract class SpeakerPeripheral implements IPeripheral {
|
||||
syncedPosition(position);
|
||||
|
||||
// And notify computers that we have space for more audio.
|
||||
synchronized (computers) {
|
||||
for (var computer : computers) {
|
||||
computer.queueEvent("speaker_audio_empty", computer.getAttachmentName());
|
||||
}
|
||||
}
|
||||
computers.forEach(c -> c.queueEvent("speaker_audio_empty", c.getAttachmentName()));
|
||||
}
|
||||
|
||||
// Push position updates to any speakers which have ever played a note,
|
||||
@@ -353,16 +352,12 @@ public abstract class SpeakerPeripheral implements IPeripheral {
|
||||
|
||||
@Override
|
||||
public void attach(IComputerAccess computer) {
|
||||
synchronized (computers) {
|
||||
computers.add(computer);
|
||||
}
|
||||
computers.add(computer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void detach(IComputerAccess computer) {
|
||||
synchronized (computers) {
|
||||
computers.remove(computer);
|
||||
}
|
||||
computers.remove(computer);
|
||||
}
|
||||
|
||||
static double clampVolume(double volume) {
|
||||
|
@@ -28,7 +28,6 @@ import dan200.computercraft.shared.util.IDAssigner;
|
||||
import dan200.computercraft.shared.util.InventoryUtil;
|
||||
import dan200.computercraft.shared.util.NBTUtil;
|
||||
import net.minecraft.ChatFormatting;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
@@ -39,6 +38,7 @@ import net.minecraft.world.InteractionResultHolder;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.item.ItemEntity;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.inventory.tooltip.TooltipComponent;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.item.TooltipFlag;
|
||||
@@ -47,6 +47,7 @@ import net.minecraft.world.level.Level;
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
public class PocketComputerItem extends Item implements IComputerItem, IMedia, IColouredItem {
|
||||
@@ -196,6 +197,11 @@ public class PocketComputerItem extends Item implements IComputerItem, IMedia, I
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<TooltipComponent> getTooltipImage(ItemStack stack) {
|
||||
var id = getInstanceID(stack);
|
||||
return id == null ? Optional.empty() : Optional.of(new PocketTooltipComponent(id, family));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void appendHoverText(ItemStack stack, @Nullable Level world, List<Component> list, TooltipFlag flag) {
|
||||
@@ -350,8 +356,4 @@ public class PocketComputerItem extends Item implements IComputerItem, IMedia, I
|
||||
compound.put(NBT_UPGRADE_INFO, upgrade.data().copy());
|
||||
}
|
||||
}
|
||||
|
||||
public static CompoundTag getUpgradeInfo(ItemStack stack) {
|
||||
return stack.getOrCreateTagElement(NBT_UPGRADE_INFO);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,25 @@
|
||||
// SPDX-FileCopyrightText: 2024 The CC: Tweaked Developers
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package dan200.computercraft.shared.pocket.items;
|
||||
|
||||
import dan200.computercraft.shared.computer.core.ComputerFamily;
|
||||
import net.minecraft.world.inventory.tooltip.TooltipComponent;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* A tooltip computer describing a pocket computer.
|
||||
* <p>
|
||||
* This has no behaviour on its own. When rendering, this is converted to an equivalent client-side component,
|
||||
* that renders the computer's terminal.
|
||||
*
|
||||
* @param id The instance ID of this pocket computer.
|
||||
* @param family The family of this pocket computer.
|
||||
* @see PocketComputerItem#getTooltipImage(ItemStack)
|
||||
* @see dan200.computercraft.client.pocket.PocketClientTooltipComponent
|
||||
*/
|
||||
public record PocketTooltipComponent(UUID id, ComputerFamily family) implements TooltipComponent {
|
||||
}
|
@@ -57,7 +57,7 @@
|
||||
"commands.computercraft.track.start.stop": "Führe %s aus um die Aufzeichnung zu stoppen und die Ergebnisse anzusehen",
|
||||
"commands.computercraft.track.start.synopsis": "Startet die Aufzeichnung von Computern",
|
||||
"commands.computercraft.track.stop.action": "Klicke um die Aufzeichnung zu stoppen",
|
||||
"commands.computercraft.track.stop.desc": "Stopt die Aufzeichnung aller Computer Events und Laufzeiten",
|
||||
"commands.computercraft.track.stop.desc": "Stopt die Aufzeichnung aller Computer-Events und Laufzeiten",
|
||||
"commands.computercraft.track.stop.not_enabled": "Momentan werden keine Computer aufgezeichnet",
|
||||
"commands.computercraft.track.stop.synopsis": "Stoppt die Aufzeichnung aller Computer",
|
||||
"commands.computercraft.track.synopsis": "Zeichnet die Laufzeiten von Computern auf.",
|
||||
@@ -75,7 +75,7 @@
|
||||
"gui.computercraft.config.default_computer_settings": "Computer-Standardeinstellungen",
|
||||
"gui.computercraft.config.default_computer_settings.tooltip": "eine mit Komma separierte Liste an standardmäßige Systemeinstellungen für neuen Computern.\nBeispiel: \"shell.autocomplete=false,lua.autocomplete=false,edit.autocomplete=false\"\nwürde jegliche Autovervollständigung deaktivieren.",
|
||||
"gui.computercraft.config.disabled_generic_methods": "Generische Methoden deaktiviert.",
|
||||
"gui.computercraft.config.disabled_generic_methods.tooltip": "Eine Liste an generischen Methoden oder Methodenquellen zum deaktivieren.\nGenerische Methoden sind Methoden die zu einem block/block entity hinzugefügt werden, insofern kein expliziter Peripheral Provider\ngefunden wurde. Mitbetroffen sind Inventarmethoden (d.h. inventory.getItemDetail,\ninventory.pushItems) und, wenn in Forge gespielt wird, die fluid_storage und energy_storage\nMethoden.\nMethoden in dieser Liste können entweder Gruppen von Methoden (wie computercraft:inventory)\noder einzelne Methoden (wie computercraft:inventory#pushItems) sein.\n",
|
||||
"gui.computercraft.config.disabled_generic_methods.tooltip": "Eine Liste an generischen Methoden oder Methodenquellen zum deaktivieren.\nGenerische Methoden sind Methoden die zu einem Block oder Blockentity hinzugefügt werden, insofern kein expliziter Peripheral Provider\ngefunden wurde. Mitbetroffen sind Inventarmethoden (d.h. inventory.getItemDetail,\ninventory.pushItems) und, wenn in Forge gespielt wird, die fluid_storage und energy_storage\nMethoden.\nMethoden in dieser Liste können entweder Gruppen von Methoden (wie computercraft:inventory)\noder einzelne Methoden (wie computercraft:inventory#pushItems) sein.\n",
|
||||
"gui.computercraft.config.execution": "Ausführung",
|
||||
"gui.computercraft.config.execution.computer_threads": "Computer Threads",
|
||||
"gui.computercraft.config.execution.computer_threads.tooltip": "Setzt die Anzahl an Hintergrundprozessen fest, auf denen Computer laufen können. Eine hohe Nummer heißt,\ndass mehrere Computer zur selben Zeit laufen können, jedoch aber auch ggf. mehr Verzögerungen verursachen. Bitte beachte, dass manche mods\nnicht mit einer Anzahl an Hintergrundprozessen laufen, die höher als 1 ist. Benutze also mit bedacht.\nBereich: > 1",
|
||||
@@ -133,15 +133,15 @@
|
||||
"upgrade.minecraft.diamond_sword.adjective": "Nahkampf",
|
||||
"argument.computercraft.computer.id": "Computer ID",
|
||||
"argument.computercraft.computer.instance": "einzigartige Instanz ID",
|
||||
"argument.computercraft.computer.label": "Computer name",
|
||||
"argument.computercraft.unknown_computer_family": "Unbekannte computer familie '%s'",
|
||||
"argument.computercraft.computer.label": "Computername",
|
||||
"argument.computercraft.unknown_computer_family": "Unbekannte Computerfamilie '%s'",
|
||||
"gui.computercraft.config.floppy_space_limit.tooltip": "Die maximale Dateisystem Größe von Disketten (in bytes).",
|
||||
"gui.computercraft.config.http.bandwidth": "Bandbreite",
|
||||
"gui.computercraft.config.http.bandwidth.global_upload": "Globales upload limit",
|
||||
"gui.computercraft.config.http.bandwidth.global_download.tooltip": "Die maximale Geschwindigkeit aller Computer in bytes/s mit der Heruntergeladen werden kann.\nBereich: > 1",
|
||||
"gui.computercraft.config.http.bandwidth.global_download": "Globales download limit",
|
||||
"gui.computercraft.config.http.bandwidth.global_upload": "Globale Uploadbandbreite",
|
||||
"gui.computercraft.config.http.bandwidth.global_download.tooltip": "Die maximale Bandbreite aller Computer in bytes/s mit der heruntergeladen werden kann.\nBereich: > 1",
|
||||
"gui.computercraft.config.http.bandwidth.global_download": "Globale Downloadbandbreite",
|
||||
"gui.computercraft.config.http.bandwidth.tooltip": "Limitiert die Bandbreite der Computer.",
|
||||
"argument.computercraft.computer.family": "Computer familie",
|
||||
"gui.computercraft.config.execution.max_main_global_time.tooltip": "Die maximale Zeit in millisekunden, in der Aufgaben ausgeführt werden.\nAnmerkung: Diese Zeit wird höchstwarscheinlich überschritten und dient nur als ungefähre Grenze.\nLimit: > 1",
|
||||
"gui.computercraft.config.http.bandwidth.global_upload.tooltip": "Die maximale Hochladungs Geschwindigkeit aller Computer in bytes/s.\nBereich: > 1"
|
||||
"argument.computercraft.computer.family": "Computerfamilie",
|
||||
"gui.computercraft.config.execution.max_main_global_time.tooltip": "Die maximale Zeit in Millisekunden, in der Aufgaben ausgeführt werden.\nAnmerkung: Diese Zeit wird höchstwarscheinlich überschritten und dient nur als ungefähre Grenze.\nLimit: > 1",
|
||||
"gui.computercraft.config.http.bandwidth.global_upload.tooltip": "Die maximale Bandbreite aller Computer in bytes/s mit der hochgeladen werden kann.\nBereich: > 1"
|
||||
}
|
||||
|
@@ -0,0 +1,237 @@
|
||||
{
|
||||
"argument.computercraft.argument_expected": "Beklenen Argüman",
|
||||
"argument.computercraft.computer.distance": "Varlığa olan mesafe",
|
||||
"argument.computercraft.computer.family": "Bilgisayar ailesi",
|
||||
"argument.computercraft.computer.id": "Bilgisayar Kimliği",
|
||||
"argument.computercraft.computer.instance": "Benzersiz örnek kimliği",
|
||||
"argument.computercraft.computer.label": "Bilgisayar etiketi",
|
||||
"argument.computercraft.computer.many_matching": "Birden fazla bilgisayar eşleşiyor '%s' (örnekler %s)",
|
||||
"argument.computercraft.computer.no_matching": "Eşleşen bilgisayar yok '%s'",
|
||||
"argument.computercraft.tracking_field.no_field": "Bilinmeyen alan '%s'",
|
||||
"argument.computercraft.unknown_computer_family": "Bilinmeyen bilgisayar ailesi '%s'",
|
||||
"block.computercraft.cable": "Ağ Kablosu",
|
||||
"block.computercraft.computer_advanced": "Gelişmiş Bilgisayar",
|
||||
"block.computercraft.computer_command": "Komut Bilgisayarı",
|
||||
"block.computercraft.computer_normal": "Bilgisayar",
|
||||
"block.computercraft.disk_drive": "Disk Sürücüsü",
|
||||
"block.computercraft.monitor_advanced": "Gelişmiş Monitör",
|
||||
"block.computercraft.monitor_normal": "Monitör",
|
||||
"block.computercraft.printer": "Yazıcı",
|
||||
"block.computercraft.speaker": "Hoparlör",
|
||||
"block.computercraft.turtle_advanced": "Gelişmiş Kaplumbağa",
|
||||
"block.computercraft.turtle_advanced.upgraded": "Gelişmiş %s Kaplumbağa",
|
||||
"block.computercraft.turtle_advanced.upgraded_twice": "Gelişmiş %s %s Kaplumbağa",
|
||||
"block.computercraft.turtle_normal": "Kaplumbağa",
|
||||
"block.computercraft.turtle_normal.upgraded": "%s Kaplumbağa",
|
||||
"block.computercraft.turtle_normal.upgraded_twice": "%s %s Kaplumbağa",
|
||||
"block.computercraft.wired_modem": "Kablolu Modem",
|
||||
"block.computercraft.wired_modem_full": "Kablolu Modem",
|
||||
"block.computercraft.wireless_modem_advanced": "Ender Modem",
|
||||
"block.computercraft.wireless_modem_normal": "Kablosuz Modem",
|
||||
"chat.computercraft.wired_modem.peripheral_connected": "Çevre birimi \"%s\" ağa bağlandı",
|
||||
"chat.computercraft.wired_modem.peripheral_disconnected": "Çevre birimi \"%s\" ağ ile bağlantısı kesildi",
|
||||
"commands.computercraft.desc": "/computercraft komutu, bilgisayarları kontrol etmek ve bilgisayarlarla etkileşimde bulunmak için çeşitli hata ayıklama ve yönetici araçları sağlar.",
|
||||
"commands.computercraft.dump.action": "Bu bilgisayar hakkında daha fazla bilgi görüntüle",
|
||||
"commands.computercraft.dump.desc": "Tüm bilgisayarların durumunu veya bir bilgisayarla ilgili belirli bilgileri görüntüleme. Bilgisayarın örnek kimliğini (örn. 123), bilgisayar kimliğini (örn. #123) ya da etiketini (örn. \"@Bilgisayar\") belirtebilirsiniz.",
|
||||
"commands.computercraft.dump.open_path": "Bu bilgisayarın dosyalarını görüntüle",
|
||||
"commands.computercraft.dump.synopsis": "Bilgisayarların durumunu görüntüle.",
|
||||
"commands.computercraft.generic.additional_rows": "%d ek satır…",
|
||||
"commands.computercraft.generic.exception": "Beklenmeyen durum (%s)",
|
||||
"commands.computercraft.generic.no": "H",
|
||||
"commands.computercraft.generic.no_position": "<no poz>",
|
||||
"commands.computercraft.generic.position": "%s, %s, %s",
|
||||
"commands.computercraft.generic.yes": "E",
|
||||
"commands.computercraft.help.desc": "Bu yardım mesajını görüntüler",
|
||||
"commands.computercraft.help.no_children": "%s alt komutları yok",
|
||||
"commands.computercraft.help.no_command": "Böyle bir komut yok '%s'",
|
||||
"commands.computercraft.help.synopsis": "Belirli bir komut için yardım sağlar",
|
||||
"commands.computercraft.queue.desc": "Komut bilgisayarına bir computer_command olayı gönder, ek argümanları geçerek. Bu çoğunlukla harita yapımcıları için tasarlanmıştır ve /trigger'ın daha bilgisayar dostu bir versiyonu olarak işlev görür. Herhangi bir oyuncu komutu çalıştırabilir, bu da büyük olasılıkla bir metin bileşeninin tıklama olayı aracılığıyla yapılır.",
|
||||
"commands.computercraft.queue.synopsis": "Bir komut bilgisayarına computer_command olayı gönder",
|
||||
"commands.computercraft.shutdown.desc": "Listelenen bilgisayarları veya hiçbiri belirtilmemişse tümünü kapatma. Bilgisayarın örnek kimliğini (örn. 123), bilgisayar kimliğini (örn. #123) ya da etiketini (örn. \"@Bilgisayar\") belirtebilirsiniz.",
|
||||
"commands.computercraft.shutdown.done": "%s/%s bilgisayarı kapat",
|
||||
"commands.computercraft.shutdown.synopsis": "Bilgisayarları uzaktan kapat.",
|
||||
"commands.computercraft.synopsis": "Bilgisayarları kontrol etmek için çeşitli komutlar.",
|
||||
"commands.computercraft.tp.action": "Bu bilgisayara ışınlan",
|
||||
"commands.computercraft.tp.desc": "Bir bilgisayarın bulunduğu yere ışınlan. Bilgisayarın örnek kimliğini (örn. 123), bilgisayar kimliğini (örn. #123) belirtebilirsiniz.",
|
||||
"commands.computercraft.tp.synopsis": "Belirli bir bilgisayara ışınlan.",
|
||||
"commands.computercraft.track.desc": "Bilgisayarların ne kadar süre çalıştığını ve kaç olay işlediğini takip et. Bu, /forge track'e benzer bir şekilde bilgi sunar ve gecikmeyi teşhis etmek için yararlı olabilir.",
|
||||
"commands.computercraft.track.dump.computer": "Bilgisayar",
|
||||
"commands.computercraft.track.dump.desc": "Bilgisayar takibinin en son sonuçlarını boşalt.",
|
||||
"commands.computercraft.track.dump.no_timings": "Zamanlama mevcut değil",
|
||||
"commands.computercraft.track.dump.synopsis": "En son izleme sonuçlarını boşalt",
|
||||
"commands.computercraft.track.start.desc": "Tüm bilgisayarların yürütme sürelerini ve olay sayılarını izlemeye başla. Bu, önceki çalıştırmaların sonuçlarını atacaktır.",
|
||||
"commands.computercraft.track.start.stop": "İzlemeyi durdurmak ve sonuçları görüntülemek için %s çalıştır",
|
||||
"commands.computercraft.track.start.synopsis": "Tüm bilgisayarları izlemeyi başlat",
|
||||
"commands.computercraft.track.stop.action": "İzlemeyi durdurmak için tıkla",
|
||||
"commands.computercraft.track.stop.desc": "Tüm bilgisayarların olaylarını ve yürütme sürelerini izlemeyi durdur",
|
||||
"commands.computercraft.track.stop.not_enabled": "Şu anda bilgisayarlar izlenmiyor",
|
||||
"commands.computercraft.track.stop.synopsis": "Tüm bilgisayarları izlemeyi durdur",
|
||||
"commands.computercraft.track.synopsis": "Bilgisayarların yürütme sürelerini takip et.",
|
||||
"commands.computercraft.turn_on.desc": "Listelenen bilgisayarları aç. Bilgisayarın örnek kimliğini (örn. 123), bilgisayar kimliğini (örn. #123) ya da etiketini (örn. \"@Bilgisayar\") belirtebilirsiniz.",
|
||||
"commands.computercraft.turn_on.done": "%s/%s bilgisayar açıldı",
|
||||
"commands.computercraft.turn_on.synopsis": "Bilgisayarları uzaktan aç.",
|
||||
"commands.computercraft.view.action": "Bu bilgisayarı görüntüle",
|
||||
"commands.computercraft.view.desc": "Bir bilgisayarın terminalinin açılması, bir bilgisayarın uzaktan kontrolüne izin verir. Bu, kaplumbağanın envanterlerine erişim sağlamaz. Bilgisayarın örnek kimliğini (örn. 123), bilgisayar kimliğini (örn. #123) belirtebilirsiniz.",
|
||||
"commands.computercraft.view.not_player": "Oyuncu olmayanlar için terminal açılamıyor",
|
||||
"commands.computercraft.view.synopsis": "Bir bilgisayarın terminalini görüntüle.",
|
||||
"gui.computercraft.config.command_require_creative": "Komut bilgisayarları yaratıcı modu gerektirir",
|
||||
"gui.computercraft.config.command_require_creative.tooltip": "Oyuncuların komut bilgisayarlarıyla etkileşime girebilmesi için yaratıcı modda olmalarını\nve op'lu olmalarını gerektirir. Bu, vanilla'nın Komut blokları için varsayılan davranıştır.",
|
||||
"gui.computercraft.config.computer_space_limit": "Bilgisayar alan sınırı (bayt)",
|
||||
"gui.computercraft.config.computer_space_limit.tooltip": "Bilgisayarlar ve kaplumbağalar için bayt cinsinden disk alanı sınırı.",
|
||||
"gui.computercraft.config.default_computer_settings": "Varsayılan Bilgisayar ayarları",
|
||||
"gui.computercraft.config.default_computer_settings.tooltip": "Yeni bilgisayarlarda ayarlanacak varsayılan sistem ayarlarının virgülle\nayrılmış bir listesi.\nÖrnek: \"shell.autocomplete=false,lua.autocomplete=false,edit.autocomplete=false\"\ntüm otomatik tamamlamayı devre dışı bırakır.",
|
||||
"gui.computercraft.config.disabled_generic_methods": "Devre dışı bırakılmış genel yöntemler",
|
||||
"gui.computercraft.config.disabled_generic_methods.tooltip": "Devre dışı bırakılacak genel yöntemlerin veya yöntem kaynaklarının bir listesi.\nGenel yöntemler açık bir çevresel sağlayıcı olmadığında bir blok/blok varlığına\neklenen yöntemlerdir. Bu, envanter yöntemlerini (yani inventory.getItemDetail,\ninventory.pushItems), ve (Forge'da ise), fluid_storage ve energy_storage\nyöntemlerini içerir.\nBu listedeki yöntemler bir grup yöntem (computercraft:inventory)\nya da tek bir yöntem (computercraft:inventory#pushItems) olabilir.\n",
|
||||
"gui.computercraft.config.execution": "Yürüt",
|
||||
"gui.computercraft.config.execution.computer_threads": "Bilgisayar iş parçacıkları",
|
||||
"gui.computercraft.config.execution.computer_threads.tooltip": "Bilgisayarların çalışabileceği iş parçacığı sayısını ayarla. Daha yüksek bir\nsayı, aynı anda daha fazla bilgisayarın çalışabileceği anlamına gelir, ancak\ngecikmeye neden olabilir. Lütfen bazı modların 1'den yüksek iş parçacığı sayısı\nile çalışmayabileceğini unutmayın. Dikkatli kullanın.\nAralık: > 1",
|
||||
"gui.computercraft.config.execution.max_main_computer_time": "Sunucu tik bilgisayar zaman sınırı",
|
||||
"gui.computercraft.config.execution.max_main_computer_time.tooltip": "Milisaniye cinsinden, bilgisayarın bir tik içinde yürütebileceği ideal maksimum süre.\nUnutmayın, ne kadar süreceğini söylemenin bir yolu olmadığı için büyük olasılıkla\nbu sınırı aşacağız - bu, ortalama sürenin üst sınırı olmayı\namaçlamaktadır.\nAralık: > 1",
|
||||
"gui.computercraft.config.execution.max_main_global_time": "Sunucu tik genel zaman sınırı",
|
||||
"gui.computercraft.config.execution.max_main_global_time.tooltip": "Milisaniye cinsinden, tek bir tikte görevleri yürütmek için harcanabilecek\nmaksimum süre.\nUnutmayın, ne kadar süreceğini söylemenin bir yolu olmadığı için büyük\nolasılıkla bu sınırı aşacağız - bu, ortalama sürenin üst sınırı olmayı\namaçlamaktadır.\nAralık: > 1",
|
||||
"gui.computercraft.config.execution.tooltip": "Bilgisayarların yürütme davranışını kontrol eder. Bu, büyük ölçüde sunuculara\nince ayar yapmak için tasarlanmıştır ve genellikle dokunulması gerekmez.",
|
||||
"gui.computercraft.config.floppy_space_limit": "Disket alan sınırı (bayt)",
|
||||
"gui.computercraft.config.floppy_space_limit.tooltip": "Disketler için bayt cinsinden disk alanı sınırı.",
|
||||
"gui.computercraft.config.http": "HTTP",
|
||||
"gui.computercraft.config.http.bandwidth": "Bant Genişliği",
|
||||
"gui.computercraft.config.http.bandwidth.global_download": "Genel indirme sınırı",
|
||||
"gui.computercraft.config.http.bandwidth.global_download.tooltip": "Bir saniye içinde indirilebilecek bayt sayısı. Bu tüm bilgisayarlar arasında paylaşılır. (bayt/s).\nAralık: > 1",
|
||||
"gui.computercraft.config.http.bandwidth.global_upload": "Genel yükleme sınırı",
|
||||
"gui.computercraft.config.http.bandwidth.global_upload.tooltip": "Bir saniye içinde yüklenebilecek bayt sayısı. Bu tüm bilgisayarlar arasında paylaşılır. (bayt/s).\nAralık: > 1",
|
||||
"gui.computercraft.config.http.bandwidth.tooltip": "Bilgisayarlar tarafından kullanılan bant genişliğini sınırlar.",
|
||||
"gui.computercraft.config.http.enabled": "HTTP API'sini etkinleştir",
|
||||
"gui.computercraft.config.http.enabled.tooltip": "Bilgisayarlarda \"http\" API'sini etkinleştir. Bunu devre dışı bırakmak, birçok kullanıcının güvendiği \"pastebin\" ve\n\"wget\" programlarını da devre dışı bırakır. Bunu açık bırakmanız ve daha ayrıntılı denetim uygulamak için\n\"rules\" yapılandırma seçeneğini kullanmanız önerilir.",
|
||||
"gui.computercraft.config.http.max_requests": "Maksimum eşzamanlı istekler",
|
||||
"gui.computercraft.config.http.max_requests.tooltip": "Bir bilgisayarın tek seferde yapabileceği http isteği sayısı. Ek istekler\nkuyruğa alınacak ve çalışan istekler bittiğinde gönderilecektir. Sınırsız için\n0 olarak ayarla.\nAralık: > 0",
|
||||
"gui.computercraft.config.http.max_websockets": "Maksimum eşzamanlı websocketleri",
|
||||
"gui.computercraft.config.http.max_websockets.tooltip": "Bir bilgisayarın tek seferde açık tutabileceği websocket sayısı.\nAralık: > 1",
|
||||
"gui.computercraft.config.http.proxy": "Proxy",
|
||||
"gui.computercraft.config.http.proxy.host": "Ana bilgisayar adı",
|
||||
"gui.computercraft.config.http.proxy.host.tooltip": "Proxy sunucusunun ana bilgisayar adı veya IP adresi.",
|
||||
"gui.computercraft.config.http.proxy.port": "Port",
|
||||
"gui.computercraft.config.http.proxy.port.tooltip": "Proxy sunucusunun portu.\nAralık: 1 ~ 65536",
|
||||
"gui.computercraft.config.http.proxy.tooltip": "HTTP ve websocket isteklerini bir proxy sunucusu üzerinden aktarır. Yalnızca \n\"use_proxy\" olan HTTP kurallarını etkiler, true olarak ayarla (varsayılan\nolarak kapalıdır).\nProxy için kimlik doğrulaması gerekiyorsa, \"computercraft-server.toml\" ile\naynı dizinde, iki nokta üst üste ile ayrılmış kullanıcı adı ve parolayı içeren\nbir \"computercraft-proxy.pw\" dosyası oluştur. örn. \"myuser:mypassword\".\nSOCKS4 proxy'leri için yalnızca kullanıcı adı gereklidir.",
|
||||
"gui.computercraft.config.http.proxy.type": "Proxy türü",
|
||||
"gui.computercraft.config.http.proxy.type.tooltip": "Kullanılacak proxy türü.\nİzin Verilen Değerler: HTTP, HTTPS, SOCKS4, SOCKS5",
|
||||
"gui.computercraft.config.http.rules": "Kurallara izin ver/reddet",
|
||||
"gui.computercraft.config.http.rules.tooltip": "Belirli alan adları veya IP'ler için \"http\" API davranışını denetleyen\nkurallar listesi. Her kural bir ana bilgisayar adı ve isteğe bağlı bir port ile\neşleşir ve ardından istek için çeşitli özellikler ayarlar. Kurallar sırayla\ndeğerlendirilir, yani önceki kurallar sonrakileri geçersiz kılar.\n\nGeçerli özellikler:\n - \"host\" (gerekli): Bu kuralın eşleştiği alan adı veya IP adresi. Bu bir alan adı olabilir\n (\"pastebin.com\"), wildcard (\"*.pastebin.com\") ya da CIDR gösterimi (\"127.0.0.0/8\").\n - \"port\" (isteğe bağlı): Belirli bir porta yönelik istekleri eşleştir\n80 veya 443 gibi\n\n - \"action\" (isteğe bağlı): Bu isteğe izin verilip verilmeyeceği veya\nreddedilip reddedilmeyeceği.\n - \"max_download\" (isteğe bağlı): Bir bilgisayarın bu istekte indirebileceği\nmaksimum boyut (bayt cinsinden).\n - \"max_upload\" (isteğe bağlı): Bir bilgisayarın bu istekte yükleyebileceği\nmaksimum boyut (bayt cinsinden).\n - \"max_websocket_message\" (isteğe bağlı): Bir bilgisayarın bir websocket\npaketinde gönderebileceği veya alabileceği maksimum boyut (bayt cinsinden).\n - \"use_proxy\" (isteğe bağlı): Yapılandırılmışsa HTTP/SOCKS proxy'sinin kullanımını etkinleştir.",
|
||||
"gui.computercraft.config.http.tooltip": "HTTP API'sini kontrol eder",
|
||||
"gui.computercraft.config.http.websocket_enabled": "Websocket'leri etkinleştir",
|
||||
"gui.computercraft.config.http.websocket_enabled.tooltip": "Http websocket kullanımını etkinleştir. Bunun için \"http_enable\" seçeneğinin de true olması gerekir.",
|
||||
"gui.computercraft.config.log_computer_errors": "Bilgisayar hatalarını günlüğe kaydet",
|
||||
"gui.computercraft.config.log_computer_errors.tooltip": "Çevre birimleri ve diğer Lua nesneleri tarafından atılan istisnaları\ngünlüğe kaydet. Bu, mod yapımcılarının sorunları ayıklamasını kolaylaştırır\nancak insanların hatalı yöntemler kullanması durumunda günlük spam'ına neden\nolabilir.",
|
||||
"gui.computercraft.config.maximum_open_files": "Bilgisayar başına maksimum açık dosya",
|
||||
"gui.computercraft.config.maximum_open_files.tooltip": "Bir bilgisayarda aynı anda kaç dosyanın açık olabileceğini ayarla. Sınırsız için 0 olarak ayarla.\nAralık: > 0",
|
||||
"gui.computercraft.config.monitor_distance": "Monitör mesafesi",
|
||||
"gui.computercraft.config.monitor_distance.tooltip": "Monitörlerin görüntü oluşturacağı maksimum mesafe. Bu, varsayılan olarak\nstandart tile entity sınırıdır, ancak daha büyük monitörler oluşturmak\nisterseniz genişletilebilir.\nAralık: 16 ~ 1024",
|
||||
"gui.computercraft.config.monitor_renderer": "Monitör oluşturucu",
|
||||
"gui.computercraft.config.monitor_renderer.tooltip": "Monitörler için kullanılacak oluşturucu. Genellikle bu \"best\" değerinde\ntutulmalıdır - monitörlerde performans sorunları varsa, alternatif oluşturucuları\ndenemek isteyebilirsiniz.\nİzin Verilen Değerler: BEST, TBO, VBO",
|
||||
"gui.computercraft.config.peripheral": "Çevre birimleri",
|
||||
"gui.computercraft.config.peripheral.command_block_enabled": "Komut bloğu çevresel birimini etkinleştir",
|
||||
"gui.computercraft.config.peripheral.command_block_enabled.tooltip": "Komut Bloğu çevre birimi desteğini etkinleştir",
|
||||
"gui.computercraft.config.peripheral.max_notes_per_tick": "Bir bilgisayarın aynı anda çalabileceği maksimum nota sayısı",
|
||||
"gui.computercraft.config.peripheral.max_notes_per_tick.tooltip": "Bir hoparlörün aynı anda çalabileceği maksimum nota miktarı.\nAralık: > 1",
|
||||
"gui.computercraft.config.peripheral.modem_high_altitude_range": "Modem menzili (yüksek irtifa)",
|
||||
"gui.computercraft.config.peripheral.modem_high_altitude_range.tooltip": "Kablosuz Modemlerin açık havada maksimum irtifadaki menzili, metre cinsinden.\nAralık: 0 ~ 100000",
|
||||
"gui.computercraft.config.peripheral.modem_high_altitude_range_during_storm": "Modem menzili (yüksek irtifa, kötü hava koşulları)",
|
||||
"gui.computercraft.config.peripheral.modem_high_altitude_range_during_storm.tooltip": "Kablosuz Modemlerin fırtınalı havalarda maksimum irtifadaki menzili, metre cinsinden.\nAralık: 0 ~ 100000",
|
||||
"gui.computercraft.config.peripheral.modem_range": "Modem menzili (varsayılan)",
|
||||
"gui.computercraft.config.peripheral.modem_range.tooltip": "Kablosuz Modemlerin açık havada alçak irtifadaki menzili, metre cinsinden.\nAralık: 0 ~ 100000",
|
||||
"gui.computercraft.config.peripheral.modem_range_during_storm": "Modem menzili (kötü hava koşulları)",
|
||||
"gui.computercraft.config.peripheral.modem_range_during_storm.tooltip": "Kablosuz Modemlerin fırtınalı havalarda alçak irtifadaki menzili, metre cinsinden.\nAralık: 0 ~ 100000",
|
||||
"gui.computercraft.config.peripheral.monitor_bandwidth": "Monitör bant genişliği",
|
||||
"gui.computercraft.config.peripheral.monitor_bandwidth.tooltip": "Tik başına* ne kadar monitör verisi gönderilebileceğinin sınırı. Not:\n - Bant genişliği sıkıştırmadan önce ölçülür, bu nedenle istemciye gönderilen veriler\n daha küçüktür.\n - Bu, bir paketin gönderildiği oyuncu sayısını göz ardı eder. Bir oyuncu için bir\nmonitörü güncellemek, 20 oyuncuya göndermekle aynı bant genişliği sınırını tüketir.\n - Tam boyutlu bir monitör ~25kb veri gönderir. Dolayısıyla varsayılan değer (1MB)\ntek bir tikte ~40 monitörün güncellenmesine izin verir.\nDevre dışı bırakmak için 0 olarak ayarla.\nAralık: > 0",
|
||||
"gui.computercraft.config.peripheral.tooltip": "Çevre birimlerine ilişkin çeşitli seçenekler.",
|
||||
"gui.computercraft.config.term_sizes": "Terminal boyutları",
|
||||
"gui.computercraft.config.term_sizes.computer": "Bilgisayar",
|
||||
"gui.computercraft.config.term_sizes.computer.height": "Terminal yüksekliği",
|
||||
"gui.computercraft.config.term_sizes.computer.height.tooltip": "Aralık: 1 ~ 255",
|
||||
"gui.computercraft.config.term_sizes.computer.tooltip": "Bilgisayarların terminal boyutu.",
|
||||
"gui.computercraft.config.term_sizes.computer.width": "Terminal genişliği",
|
||||
"gui.computercraft.config.term_sizes.computer.width.tooltip": "Aralık: 1 ~ 255",
|
||||
"gui.computercraft.config.term_sizes.monitor": "Monitör",
|
||||
"gui.computercraft.config.term_sizes.monitor.height": "Maks monitör yüksekliği",
|
||||
"gui.computercraft.config.term_sizes.monitor.height.tooltip": "Aralık: 1 ~ 32",
|
||||
"gui.computercraft.config.term_sizes.monitor.tooltip": "Maksimum monitör boyutu (blok olarak).",
|
||||
"gui.computercraft.config.term_sizes.monitor.width": "Maks monitör genişliği",
|
||||
"gui.computercraft.config.term_sizes.monitor.width.tooltip": "Aralık: 1 ~ 32",
|
||||
"gui.computercraft.config.term_sizes.pocket_computer": "Cep Bilgisayarı",
|
||||
"gui.computercraft.config.term_sizes.pocket_computer.height": "Terminal yüksekliği",
|
||||
"gui.computercraft.config.term_sizes.pocket_computer.height.tooltip": "Aralık: 1 ~ 255",
|
||||
"gui.computercraft.config.term_sizes.pocket_computer.tooltip": "Cep bilgisayarlarının terminal boyutu.",
|
||||
"gui.computercraft.config.term_sizes.pocket_computer.width": "Terminal genişliği",
|
||||
"gui.computercraft.config.term_sizes.pocket_computer.width.tooltip": "Aralık: 1 ~ 255",
|
||||
"gui.computercraft.config.term_sizes.tooltip": "Çeşitli bilgisayar terminallerinin boyutunu yapılandır.\nDaha büyük terminaller daha fazla bant genişliği gerektirir, bu nedenle dikkatli\nkullanın.",
|
||||
"gui.computercraft.config.turtle": "Kaplumbağalar",
|
||||
"gui.computercraft.config.turtle.advanced_fuel_limit": "Gelişmiş Kaplumbağa yakıt limiti",
|
||||
"gui.computercraft.config.turtle.advanced_fuel_limit.tooltip": "Gelişmiş Kaplumbağaların yakıt limiti.\nAralık: > 0",
|
||||
"gui.computercraft.config.turtle.can_push": "Kaplumbağalar varlıkları itebilir",
|
||||
"gui.computercraft.config.turtle.can_push.tooltip": "true olarak ayarlanırsa, Kaplumbağalar yer varsa durmak yerine varlıkları yolun\ndışına iter.",
|
||||
"gui.computercraft.config.turtle.need_fuel": "Yakıtı etkinleştir",
|
||||
"gui.computercraft.config.turtle.need_fuel.tooltip": "Kaplumbağaların hareket etmek için yakıta ihtiyaç duyup duymadığını ayarla.",
|
||||
"gui.computercraft.config.turtle.normal_fuel_limit": "Kaplumbağa yakıt limiti",
|
||||
"gui.computercraft.config.turtle.normal_fuel_limit.tooltip": "Kaplumbağaların yakıt limiti.\nAralık: > 0",
|
||||
"gui.computercraft.config.turtle.tooltip": "Kaplumbağalarla ilgili çeşitli seçenekler.",
|
||||
"gui.computercraft.config.upload_max_size": "Dosya yükleme boyut sınırı (bayt)",
|
||||
"gui.computercraft.config.upload_max_size.tooltip": "Bayt cinsinden dosya yükleme boyut sınırı. 1 KiB ve 16 MiB aralığında olmalıdır.\nYüklemelerin tek bir tikte işlendiğini unutmayın - büyük dosyalar veya düşük ağ\nperformansı ağ iş parçacığını bekletebilir. Ve disk alanına dikkat edin!\nAralık: 1024 ~ 16777216",
|
||||
"gui.computercraft.config.upload_nag_delay": "Yükleme nag gecikmesi",
|
||||
"gui.computercraft.config.upload_nag_delay.tooltip": "Beklenmeyen içe aktarmalar hakkında bildirimde bulunacağımız saniye cinsinden gecikme. Devre dışı bırakmak için 0 olarak ayarla.\nAralık: 0 ~ 60",
|
||||
"gui.computercraft.pocket_computer_overlay": "Cep bilgisayarı açık. Kapatmak için ESC tuşuna bas.",
|
||||
"gui.computercraft.terminal": "Bilgisayar terminali",
|
||||
"gui.computercraft.tooltip.computer_id": "Bilgisayar Kimliği: %s",
|
||||
"gui.computercraft.tooltip.copy": "Panoya kopyala",
|
||||
"gui.computercraft.tooltip.disk_id": "Disk Kimliği: %s",
|
||||
"gui.computercraft.tooltip.terminate": "Çalışmakta olan kodu durdur",
|
||||
"gui.computercraft.tooltip.terminate.key": "Ctrl+T basılı tut",
|
||||
"gui.computercraft.tooltip.turn_off": "Bu bilgisayarı kapat",
|
||||
"gui.computercraft.tooltip.turn_off.key": "Ctrl+S basılı tut",
|
||||
"gui.computercraft.tooltip.turn_on": "Bu bilgisayarı aç",
|
||||
"gui.computercraft.upload.failed": "Yükleme Başarısız",
|
||||
"gui.computercraft.upload.failed.computer_off": "Dosyaları yüklemeden önce bilgisayarı açmalısın.",
|
||||
"gui.computercraft.upload.failed.corrupted": "Dosyalar yüklenirken bozuldu. Lütfen tekrar dene.",
|
||||
"gui.computercraft.upload.failed.generic": "Dosya yükleme başarısız (%s)",
|
||||
"gui.computercraft.upload.failed.name_too_long": "Dosya adları yüklenemeyecek kadar uzun.",
|
||||
"gui.computercraft.upload.failed.too_many_files": "Bu kadar dosya yüklenemiyor.",
|
||||
"gui.computercraft.upload.failed.too_much": "Dosyalarınız yüklenemeyecek kadar büyük.",
|
||||
"gui.computercraft.upload.no_response": "Dosyalar Aktarılıyor",
|
||||
"gui.computercraft.upload.no_response.msg": "Bilgisayarınız aktarılan dosyalarınızı kullanmadı. %s programını çalıştırmanız ve tekrar denemeniz gerekebilir.",
|
||||
"item.computercraft.disk": "Disket",
|
||||
"item.computercraft.pocket_computer_advanced": "Gelişmiş Cep Bilgisayarı",
|
||||
"item.computercraft.pocket_computer_advanced.upgraded": "Gelişmiş %s Cep Bilgisayarı",
|
||||
"item.computercraft.pocket_computer_normal": "Cep Bilgisayarı",
|
||||
"item.computercraft.pocket_computer_normal.upgraded": "%s Cep Bilgisayarı",
|
||||
"item.computercraft.printed_book": "Yazdırılmış Kitap",
|
||||
"item.computercraft.printed_page": "Yazdırılmış Sayfa",
|
||||
"item.computercraft.printed_pages": "Yazdırılmış Sayfalar",
|
||||
"item.computercraft.treasure_disk": "Disket",
|
||||
"itemGroup.computercraft": "ComputerCraft",
|
||||
"tag.item.computercraft.computer": "Bilgisayarlar",
|
||||
"tag.item.computercraft.dyeable": "Boyanabilir eşyalar",
|
||||
"tag.item.computercraft.monitor": "Monitörler",
|
||||
"tag.item.computercraft.turtle": "Kaplumbağalar",
|
||||
"tag.item.computercraft.turtle_can_place": "Kaplumbağa-koyulabilir eşyalar",
|
||||
"tag.item.computercraft.wired_modem": "Kablolu modemler",
|
||||
"tracking_field.computercraft.avg": "%s (ort)",
|
||||
"tracking_field.computercraft.computer_tasks.name": "Görevler",
|
||||
"tracking_field.computercraft.count": "%s (sayı)",
|
||||
"tracking_field.computercraft.fs.name": "Dosya sistemi işlemleri",
|
||||
"tracking_field.computercraft.http_download.name": "HTTP indir",
|
||||
"tracking_field.computercraft.http_requests.name": "HTTP istekleri",
|
||||
"tracking_field.computercraft.http_upload.name": "HTTP yükleme",
|
||||
"tracking_field.computercraft.java_allocation.name": "Java Ayırmaları",
|
||||
"tracking_field.computercraft.max": "%s (maks)",
|
||||
"tracking_field.computercraft.peripheral.name": "Çevre birimi çağrıları",
|
||||
"tracking_field.computercraft.server_tasks.name": "Sunucu görevleri",
|
||||
"tracking_field.computercraft.turtle_ops.name": "Kaplumbağa işlemleri",
|
||||
"tracking_field.computercraft.websocket_incoming.name": "Websocket gelen",
|
||||
"tracking_field.computercraft.websocket_outgoing.name": "Websocket giden",
|
||||
"upgrade.computercraft.speaker.adjective": "Gürültücü",
|
||||
"upgrade.computercraft.wireless_modem_advanced.adjective": "Ender",
|
||||
"upgrade.computercraft.wireless_modem_normal.adjective": "Kablosuz",
|
||||
"upgrade.minecraft.crafting_table.adjective": "Üretken",
|
||||
"upgrade.minecraft.diamond_axe.adjective": "Düşen",
|
||||
"upgrade.minecraft.diamond_hoe.adjective": "Çiftçi",
|
||||
"upgrade.minecraft.diamond_pickaxe.adjective": "Madenci",
|
||||
"upgrade.minecraft.diamond_shovel.adjective": "Kazıcı",
|
||||
"upgrade.minecraft.diamond_sword.adjective": "Dövüşçü"
|
||||
}
|
@@ -0,0 +1,129 @@
|
||||
// SPDX-FileCopyrightText: 2024 The CC: Tweaked Developers
|
||||
//
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package dan200.computercraft.api.peripheral;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.CopyOnWriteArraySet;
|
||||
import java.util.concurrent.locks.ReentrantReadWriteLock;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* A thread-safe collection of computers.
|
||||
* <p>
|
||||
* This collection is intended to be used by peripherals that need to maintain a set of all attached computers.
|
||||
* <p>
|
||||
* It is recommended to use over Java's built-in concurrent collections (e.g. {@link CopyOnWriteArraySet} or
|
||||
* {@link ConcurrentHashMap}), as {@link AttachedComputerSet} ensures that computers cannot be accessed after they are
|
||||
* detached, guaranteeing that {@link NotAttachedException}s will not be thrown.
|
||||
* <p>
|
||||
* To ensure this, {@link AttachedComputerSet} is not directly iterable, as we cannot ensure that computers are not
|
||||
* detached while the iterator is running (and so trying to use the computer would error). Instead, computers should be
|
||||
* looped over using {@link #forEach(Consumer)}.
|
||||
*
|
||||
* <h2>Example</h2>
|
||||
*
|
||||
* <pre>{@code
|
||||
* public class MyPeripheral implements IPeripheral {
|
||||
* private final AttachedComputerSet computers = new ComputerCollection();
|
||||
*
|
||||
* @Override
|
||||
* public void attach(IComputerAccess computer) {
|
||||
* computers.add(computer);
|
||||
* }
|
||||
*
|
||||
* @Override
|
||||
* public void detach(IComputerAccess computer) {
|
||||
* computers.remove(computer);
|
||||
* }
|
||||
* }
|
||||
* }</pre>
|
||||
*
|
||||
* @see IComputerAccess
|
||||
* @see IPeripheral#attach(IComputerAccess)
|
||||
* @see IPeripheral#detach(IComputerAccess)
|
||||
*/
|
||||
public final class AttachedComputerSet {
|
||||
private final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
|
||||
private final Set<IComputerAccess> computers = new HashSet<>(0);
|
||||
|
||||
/**
|
||||
* Add a computer to this collection of computers. This should be called from
|
||||
* {@link IPeripheral#attach(IComputerAccess)}.
|
||||
*
|
||||
* @param computer The computer to add.
|
||||
*/
|
||||
public void add(IComputerAccess computer) {
|
||||
lock.writeLock().lock();
|
||||
try {
|
||||
computers.add(computer);
|
||||
} finally {
|
||||
lock.writeLock().unlock();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a computer from this collection of computers. This should be called from
|
||||
* {@link IPeripheral#detach(IComputerAccess)}.
|
||||
*
|
||||
* @param computer The computer to remove.
|
||||
*/
|
||||
public void remove(IComputerAccess computer) {
|
||||
lock.writeLock().lock();
|
||||
try {
|
||||
computers.remove(computer);
|
||||
} finally {
|
||||
lock.writeLock().unlock();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply an action to each computer in this collection.
|
||||
*
|
||||
* @param action The action to apply.
|
||||
*/
|
||||
public void forEach(Consumer<? super IComputerAccess> action) {
|
||||
lock.readLock().lock();
|
||||
try {
|
||||
computers.forEach(action);
|
||||
} finally {
|
||||
lock.readLock().unlock();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@linkplain IComputerAccess#queueEvent(String, Object...) Queue an event} on all computers.
|
||||
*
|
||||
* @param event The name of the event to queue.
|
||||
* @param arguments The arguments for this event.
|
||||
* @see IComputerAccess#queueEvent(String, Object...)
|
||||
*/
|
||||
public void queueEvent(String event, @Nullable Object... arguments) {
|
||||
forEach(c -> c.queueEvent(event, arguments));
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if this collection contains any computers.
|
||||
* <p>
|
||||
* This method is primarily intended for presentation purposes (such as rendering an icon in the UI if a computer
|
||||
* is attached to your peripheral). Due to the multi-threaded nature of peripherals, it is not recommended to guard
|
||||
* any logic behind this check.
|
||||
* <p>
|
||||
* For instance, {@code if(computers.hasComputers()) computers.queueEvent("foo");} contains a race condition, as
|
||||
* there's no guarantee that any computers are still attached within the body of the if statement.
|
||||
*
|
||||
* @return Whether this collection is non-empty.
|
||||
*/
|
||||
public boolean hasComputers() {
|
||||
lock.readLock().lock();
|
||||
try {
|
||||
return !computers.isEmpty();
|
||||
} finally {
|
||||
lock.readLock().unlock();
|
||||
}
|
||||
}
|
||||
}
|
@@ -48,8 +48,9 @@ public interface IPeripheral {
|
||||
* {@code peripheral.call()}. This method can be used to keep track of which computers are attached to the
|
||||
* peripheral, or to take action when attachment occurs.
|
||||
* <p>
|
||||
* Be aware that will be called from both the server thread and ComputerCraft Lua thread, and so must be thread-safe
|
||||
* and reentrant.
|
||||
* Be aware that may be called from both the server thread and ComputerCraft Lua thread, and so must be thread-safe
|
||||
* and reentrant. If you need to store a list of attached computers, it is recommended you use a
|
||||
* {@link AttachedComputerSet}.
|
||||
*
|
||||
* @param computer The interface to the computer that is being attached. Remember that multiple computers can be
|
||||
* attached to a peripheral at once.
|
||||
@@ -68,8 +69,9 @@ public interface IPeripheral {
|
||||
* This method can be used to keep track of which computers are attached to the peripheral, or to take action when
|
||||
* detachment occurs.
|
||||
* <p>
|
||||
* Be aware that this will be called from both the server and ComputerCraft Lua thread, and must be thread-safe
|
||||
* and reentrant.
|
||||
* Be aware that this may be called from both the server and ComputerCraft Lua thread, and must be thread-safe
|
||||
* and reentrant. If you need to store a list of attached computers, it is recommended you use a
|
||||
* {@link AttachedComputerSet}.
|
||||
*
|
||||
* @param computer The interface to the computer that is being detached. Remember that multiple computers can be
|
||||
* attached to a peripheral at once.
|
||||
|
@@ -403,21 +403,39 @@ public class OSAPI implements ILuaAPI {
|
||||
* function. The format string can also be prefixed with an exclamation mark
|
||||
* ({@code !}) to use UTC time instead of the server's local timezone.
|
||||
* <p>
|
||||
* If the format is exactly {@code *t} (optionally prefixed with {@code !}), a
|
||||
* table will be returned instead. This table has fields for the year, month,
|
||||
* day, hour, minute, second, day of the week, day of the year, and whether
|
||||
* Daylight Savings Time is in effect. This table can be converted to a UNIX
|
||||
* timestamp (days since 1 January 1970) with {@link #date}.
|
||||
* If the format is exactly {@code "*t"} (or {@code "!*t"} ), a table
|
||||
* representation of the timestamp will be returned instead. This table has
|
||||
* fields for the year, month, day, hour, minute, second, day of the week,
|
||||
* day of the year, and whether Daylight Savings Time is in effect. This
|
||||
* table can be converted back to a timestamp with {@link #time(IArguments)}.
|
||||
*
|
||||
* @param formatA The format of the string to return. This defaults to {@code %c}, which expands to a string similar to "Sat Dec 24 16:58:00 2011".
|
||||
* @param timeA The time to convert to a string. This defaults to the current time.
|
||||
* @return The resulting format string.
|
||||
* @param timeA The timestamp to convert to a string. This defaults to the current time.
|
||||
* @return The resulting formated string, or table.
|
||||
* @throws LuaException If an invalid format is passed.
|
||||
* @cc.since 1.83.0
|
||||
* @cc.usage Print the current date in a user-friendly string.
|
||||
* <pre>{@code
|
||||
* os.date("%A %d %B %Y") -- See the reference above!
|
||||
* }</pre>
|
||||
*
|
||||
* @cc.usage Convert a timestamp to a table.
|
||||
* <pre>{@code
|
||||
* os.date("!*t", 1242534247)
|
||||
* --[=[ {
|
||||
* -- Date
|
||||
* year = 2009,
|
||||
* month = 5,
|
||||
* day = 17,
|
||||
* yday = 137,
|
||||
* wday = 1,
|
||||
* -- Time
|
||||
* hour = 4,
|
||||
* min = 24,
|
||||
* sec = 7,
|
||||
* isdst = false,
|
||||
* } ]=]
|
||||
* }</pre>
|
||||
*/
|
||||
@LuaFunction
|
||||
public final Object date(Optional<String> formatA, Optional<Long> timeA) throws LuaException {
|
||||
|
@@ -7,6 +7,7 @@ package dan200.computercraft.client;
|
||||
import dan200.computercraft.api.ComputerCraftAPI;
|
||||
import dan200.computercraft.api.client.FabricComputerCraftAPIClient;
|
||||
import dan200.computercraft.client.model.CustomModelLoader;
|
||||
import dan200.computercraft.client.pocket.PocketClientTooltipComponent;
|
||||
import dan200.computercraft.impl.Services;
|
||||
import dan200.computercraft.shared.ModRegistry;
|
||||
import dan200.computercraft.shared.config.ConfigSpec;
|
||||
@@ -15,6 +16,7 @@ import dan200.computercraft.shared.network.client.ClientNetworkContext;
|
||||
import dan200.computercraft.shared.peripheral.modem.wired.CableBlock;
|
||||
import dan200.computercraft.shared.platform.FabricConfigFile;
|
||||
import dan200.computercraft.shared.platform.FabricMessageType;
|
||||
import dan200.computercraft.shared.pocket.items.PocketTooltipComponent;
|
||||
import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
|
||||
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback;
|
||||
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
|
||||
@@ -22,6 +24,7 @@ import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
|
||||
import net.fabricmc.fabric.api.client.model.loading.v1.PreparableModelLoadingPlugin;
|
||||
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
|
||||
import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry;
|
||||
import net.fabricmc.fabric.api.client.rendering.v1.TooltipComponentCallback;
|
||||
import net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;
|
||||
import net.fabricmc.fabric.api.event.client.player.ClientPickBlockGatherCallback;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
@@ -74,6 +77,11 @@ public class ComputerCraftClient {
|
||||
}
|
||||
});
|
||||
|
||||
TooltipComponentCallback.EVENT.register(c -> {
|
||||
if (c instanceof PocketTooltipComponent p) return new PocketClientTooltipComponent(p);
|
||||
return null;
|
||||
});
|
||||
|
||||
// Easier to hook in as an event than use BlockPickInteractionAware.
|
||||
ClientPickBlockGatherCallback.EVENT.register((player, hit) -> {
|
||||
if (hit.getType() != HitResult.Type.BLOCK) return ItemStack.EMPTY;
|
||||
|
@@ -7,13 +7,12 @@ package dan200.computercraft.client;
|
||||
import dan200.computercraft.api.ComputerCraftAPI;
|
||||
import dan200.computercraft.api.client.turtle.RegisterTurtleModellersEvent;
|
||||
import dan200.computercraft.client.model.turtle.TurtleModelLoader;
|
||||
import dan200.computercraft.client.pocket.PocketClientTooltipComponent;
|
||||
import dan200.computercraft.shared.pocket.items.PocketTooltipComponent;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.item.ItemProperties;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.client.event.ModelEvent;
|
||||
import net.minecraftforge.client.event.RegisterClientReloadListenersEvent;
|
||||
import net.minecraftforge.client.event.RegisterColorHandlersEvent;
|
||||
import net.minecraftforge.client.event.RegisterShadersEvent;
|
||||
import net.minecraftforge.client.event.*;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.ModLoader;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
@@ -85,4 +84,9 @@ public final class ForgeClientRegistry {
|
||||
ClientRegistry.register();
|
||||
event.enqueueWork(() -> ClientRegistry.registerMainThread(ItemProperties::register));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public static void onTooltipComponent(RegisterClientTooltipComponentFactoriesEvent event) {
|
||||
event.register(PocketTooltipComponent.class, PocketClientTooltipComponent::new);
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
|
||||
//
|
||||
// SPDX-License-Identifier: LicenseRef-CCPL
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package dan200.computercraft.shared.peripheral.generic.methods;
|
||||
|
||||
|
Reference in New Issue
Block a user