Skip to content

Commit

Permalink
Update Minecraft wiki references (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spongecade authored Sep 28, 2023
1 parent b57c35c commit 607ae1e
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/glowstone/GlowWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ public MoonPhase getMoonPhase() {
/**
* Returns the fraction of the moon that is illuminated, ranging from 0.0 at new moon to 1.0 at
* full moon. Always a multiple of 0.25. See
* <a href="https://minecraft.gamepedia.com/Moon#Phases">Moon Phases</a> at Gamepedia.
* <a href="https://minecraft.wiki/w/Moon#Phases">Moon Phases</a> at Wiki.
*
* @return the fraction of the moon that is illuminated
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void rightClickBlock(GlowPlayer player, GlowBlock target, BlockFace face,
location.add(0.5, 0, 0.5);
EnderCrystal crystal = player.getWorld().spawn(location, EnderCrystal.class);
// "Defaults to false when placing by hand [..]
// http://minecraft.gamepedia.com/End_Crystal#Data_values
// http://minecraft.wiki/w/End_Crystal#Data_values
crystal.setShowingBottom(false);

super.rightClickBlock(player, target, face, holding, clickedLoc, hand);
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/glowstone/chunk/GlowChunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ public Collection<BlockEntity> getRawBlockEntities() {
}

/**
* Formula taken from Minecraft Gamepedia.
* https://minecraft.gamepedia.com/Slime#.22Slime_chunks.22
* Formula taken from Minecraft Wiki.
* https://minecraft.wiki/w/Slime#.22Slime_chunks.22
*/
@Override
public boolean isSlimeChunk() {
Expand Down Expand Up @@ -965,7 +965,7 @@ public ChunkDataMessage toMessage(boolean skylight, boolean entireChunk,
if (entireChunk && biomes != null) {
for (int i = 0; i < 256; i++) {
// TODO: 1.13 Biome ID (0 = OCEAN)
// For biome IDs, see https://minecraft.gamepedia.com/Biome#Biome_IDs
// For biome IDs, see https://minecraft.wiki/w/Biome#Biome_IDs
buf.writeInt(0);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/glowstone/constants/GlowEnchantment.java
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ EnchantmentTarget.ALL, new MatcherAdapter(EnchantmentTarget.ALL), Group.NONE,
private final EnchantmentRarity rarity;
private final boolean treasure;
private final boolean cursed;
private final int minValue; // https://minecraft.gamepedia.com/Enchanting/Levels
private final int minValue; // https://minecraft.wiki/w/Enchanting/Levels
private final int minIncrement;
private final int maxIncrement;
private final int maxValue;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/glowstone/entity/AttributeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.stream.Collectors;

/**
* Manages the attributes described at https://minecraft.gamepedia.com/Attribute
* Manages the attributes described at https://minecraft.wiki/w/Attribute
*/
public class AttributeManager {

Expand Down Expand Up @@ -151,7 +151,7 @@ public enum Key {
Attribute.ZOMBIE_SPAWN_REINFORCEMENTS, 0, 1);

/**
* Attribute name from https://minecraft.gamepedia.com/Attribute
* Attribute name from https://minecraft.wiki/w/Attribute
*/
private final String name;
/**
Expand Down Expand Up @@ -283,7 +283,7 @@ public void setBaseValue(double value) {
*
* <p>
* Attributes with the same uuid will be overridden according to
* https://minecraft.gamepedia.com/Attribute#Attributes
* https://minecraft.wiki/w/Attribute#Attributes
* </p>
*
* @param attributeModifier to add to this property
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/glowstone/entity/GlowLivingEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ public void damage(double amount, Entity source, @NotNull DamageCause cause) {
}

// armor damage protection
// formula source: http://minecraft.gamepedia.com/Armor#Damage_Protection
// formula source: http://minecraft.wiki/w/Armor#Damage_protection
double defensePoints = getAttributeManager().getPropertyValue(Key.KEY_ARMOR);
double toughness = getAttributeManager().getPropertyValue(Key.KEY_ARMOR_TOUGHNESS);
amount = amount * (1 - Math.min(20.0,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/glowstone/entity/passive/GlowLlama.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* Represents a llama.
* The data comes from https://minecraft.gamepedia.com/Llama
* The data comes from https://minecraft.wiki/w/Llama
*/
public class GlowLlama extends GlowChestedHorse<GlowLlamaInventory> implements Llama {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public abstract class GlowStructurePiece {
private BlockFace orientation;
/**
* The NBT data field "GD" described in
* https://minecraft.gamepedia.com/Generated_structures_data_file_format like this:
* https://minecraft.wiki/w/Generated_structures_data_file_format like this:
* "Appears to be some sort of measure of how far this piece is from the start."
*/
@Getter
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/glowstone/io/entity/EntityStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public T createEntity(Location location) {
}

// For information on the NBT tags loaded here and elsewhere:
// http://minecraft.gamepedia.com/Chunk_format#Entity_Format
// https://minecraft.wiki/w/Entity_format

// todo: the following tags
// - bool "Invulnerable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public HumanEntityStore(Class<T> clazz, EntityType type) {
super(clazz, type);
}

// documented at http://minecraft.gamepedia.com/Player.dat_Format
// documented at http://minecraft.wiki/w/Player.dat_format
// player data that does not correspond to HumanEntity is in PlayerStore

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/glowstone/map/GlowMapRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public GlowMapRenderer(GlowMapView map) {
}

/**
* Based on https://minecraft.gamepedia.com/Slime#.22Slime_chunks.22 but simplified (doesn't
* Based on https://minecraft.wiki/w/Slime#.22Slime_chunks.22 but simplified (doesn't
* instantiate a Random, and doesn't vary with the world seed. Designed to be reproducible, so
* that updating a map doesn't change the color unless the map contents have changed.
*/
Expand Down

0 comments on commit 607ae1e

Please sign in to comment.