3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 08:30:12 +01:00

Update Minecraft Wiki links to new domain (#4151)

Dieser Commit ist enthalten in:
Spongecade 2023-09-27 09:55:54 -05:00 committet von GitHub
Ursprung ae983779ba
Commit 5276a1e2ba
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
6 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -31,7 +31,7 @@ import java.util.Locale;
/** /**
* Potion identifiers and their respective Bedrock IDs used with arrows. * Potion identifiers and their respective Bedrock IDs used with arrows.
* https://minecraft.gamepedia.com/Arrow#Item_Data * https://minecraft.wiki/w/Arrow#Data_values
*/ */
@Getter @Getter
public enum TippedArrowPotion { public enum TippedArrowPotion {

Datei anzeigen

@ -76,7 +76,7 @@ public class MinecraftLocale {
public static void downloadAndLoadLocale(String locale) { public static void downloadAndLoadLocale(String locale) {
locale = locale.toLowerCase(Locale.ROOT); locale = locale.toLowerCase(Locale.ROOT);
if (locale.equals("nb_no")) { if (locale.equals("nb_no")) {
// Different locale code - https://minecraft.fandom.com/wiki/Language // Different locale code - https://minecraft.wiki/w/Language
locale = "no_no"; locale = "no_no";
} }

Datei anzeigen

@ -120,7 +120,7 @@ public class JavaEntityEventTranslator extends PacketTranslator<ClientboundEntit
if (fishingHook.getBedrockTargetId() == session.getPlayerEntity().getGeyserId()) { if (fishingHook.getBedrockTargetId() == session.getPlayerEntity().getGeyserId()) {
Entity hookOwner = session.getEntityCache().getEntityByGeyserId(fishingHook.getBedrockOwnerId()); Entity hookOwner = session.getEntityCache().getEntityByGeyserId(fishingHook.getBedrockOwnerId());
if (hookOwner != null) { if (hookOwner != null) {
// https://minecraft.gamepedia.com/Fishing_Rod#Hooking_mobs_and_other_entities // https://minecraft.wiki/w/Fishing_Rod#Hooking_mobs_and_other_entities
SetEntityMotionPacket motionPacket = new SetEntityMotionPacket(); SetEntityMotionPacket motionPacket = new SetEntityMotionPacket();
motionPacket.setRuntimeEntityId(session.getPlayerEntity().getGeyserId()); motionPacket.setRuntimeEntityId(session.getPlayerEntity().getGeyserId());
motionPacket.setMotion(hookOwner.getPosition().sub(session.getPlayerEntity().getPosition()).mul(0.1f)); motionPacket.setMotion(hookOwner.getPosition().sub(session.getPlayerEntity().getPosition()).mul(0.1f));

Datei anzeigen

@ -40,7 +40,7 @@ public class JavaSetTimeTranslator extends PacketTranslator<ClientboundSetTimePa
// Java just sends a negative long if there is no daylight cycle // Java just sends a negative long if there is no daylight cycle
long time = packet.getTime(); long time = packet.getTime();
// https://minecraft.gamepedia.com/Day-night_cycle#24-hour_Minecraft_day // https://minecraft.wiki/w/Day-night_cycle#24-hour_Minecraft_day
SetTimePacket setTimePacket = new SetTimePacket(); SetTimePacket setTimePacket = new SetTimePacket();
// We use modulus to prevent an integer overflow // We use modulus to prevent an integer overflow
// 24000 is the range of ticks that a Minecraft day can be; we times by 8 so all moon phases are visible // 24000 is the range of ticks that a Minecraft day can be; we times by 8 so all moon phases are visible

Datei anzeigen

@ -32,7 +32,7 @@ import com.github.steveice10.mc.protocol.data.game.entity.attribute.ModifierOper
public class AttributeUtils { public class AttributeUtils {
/** /**
* Retrieve the base attribute value with all modifiers applied. * Retrieve the base attribute value with all modifiers applied.
* https://minecraft.gamepedia.com/Attribute#Modifiers * https://minecraft.wiki/w/Attribute#Modifiers
* @param attribute The attribute to calculate the total value. * @param attribute The attribute to calculate the total value.
* @return The finished attribute with all modifiers applied. * @return The finished attribute with all modifiers applied.
*/ */

Datei anzeigen

@ -64,7 +64,7 @@ public final class BlockUtils {
if (toolType.equals("shears")) return isShearsEffective ? 5.0 : 15.0; if (toolType.equals("shears")) return isShearsEffective ? 5.0 : 15.0;
if (toolType.equals("")) return 1.0; if (toolType.equals("")) return 1.0;
return switch (toolTier) { return switch (toolTier) {
// https://minecraft.gamepedia.com/Breaking#Speed // https://minecraft.wiki/w/Breaking#Speed
case "wooden" -> 2.0; case "wooden" -> 2.0;
case "stone" -> 4.0; case "stone" -> 4.0;
case "iron" -> 6.0; case "iron" -> 6.0;
@ -100,7 +100,7 @@ public final class BlockUtils {
return true; return true;
} }
// https://minecraft.gamepedia.com/Breaking // https://minecraft.wiki/w/Breaking
private static double calculateBreakTime(double blockHardness, String toolTier, boolean canHarvestWithHand, boolean correctTool, boolean canTierMineBlock, private static double calculateBreakTime(double blockHardness, String toolTier, boolean canHarvestWithHand, boolean correctTool, boolean canTierMineBlock,
String toolType, boolean isShearsEffective, int toolEfficiencyLevel, int hasteLevel, int miningFatigueLevel, String toolType, boolean isShearsEffective, int toolEfficiencyLevel, int hasteLevel, int miningFatigueLevel,
boolean insideOfWaterWithoutAquaAffinity, boolean onGround) { boolean insideOfWaterWithoutAquaAffinity, boolean onGround) {