Skip to content

Commit

Permalink
Fix broken javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
apple502j committed Apr 12, 2024
1 parent bd4e617 commit 3dee2c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.item.ItemStack;
import net.minecraft.resource.featuretoggle.FeatureSet;
import net.minecraft.util.math.random.Random;

/*
Expand All @@ -36,7 +37,7 @@ public enum EnchantingContext {
* When generating a random enchantment for the item. This includes the enchanting table, random
* mob equipment, and the {@code enchant_with_levels} loot function.
*
* @see EnchantmentHelper#generateEnchantments(Random, ItemStack, int, boolean)
* @see EnchantmentHelper#generateEnchantments(FeatureSet, Random, ItemStack, int, boolean)
*/
RANDOM_ENCHANTMENT,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ public static void register(EntityType<? extends LivingEntity> type, DefaultAttr
* <p>If a registration overrides another, a debug log message will be emitted. Existing registrations
* can be checked at {@link net.minecraft.entity.attribute.DefaultAttributeRegistry#hasDefinitionFor(EntityType)}.</p>
*
* <p>For convenience, this can also be done on the {@link FabricEntityTypeBuilder} to simplify the building process.
* <p>For convenience, this can also be done on the {@link FabricEntityType.Builder} to simplify the building process.
*
* @param type the entity type
* @param container the container for the default attribute
* @see FabricEntityTypeBuilder.Living#defaultAttributes(Supplier)
* @see FabricEntityType.Builder.Living#defaultAttributes(Supplier)
*/
public static void register(EntityType<? extends LivingEntity> type, DefaultAttributeContainer container) {
if (DefaultAttributeRegistryAccessor.getRegistry().put(type, container) != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static <T extends Entity> FabricEntityTypeBuilder<T> create(SpawnGroup sp
* @param <T> the type of entity
*
* @return a new living entity type builder
* @deprecated use {@link FabricEntityType.Builder#createLiving(UnaryOperator)}
* @deprecated use {@link FabricEntityType.Builder#createLiving(EntityType.EntityFactory, SpawnGroup, UnaryOperator)}
*/
@Deprecated
public static <T extends LivingEntity> FabricEntityTypeBuilder.Living<T> createLiving() {
Expand All @@ -128,7 +128,7 @@ public static <T extends LivingEntity> FabricEntityTypeBuilder.Living<T> createL
* @param <T> the type of entity
*
* @return a new mob entity type builder
* @deprecated use {@link FabricEntityType.Builder#createMob(UnaryOperator)}
* @deprecated use {@link FabricEntityType.Builder#createMob(EntityType.EntityFactory, SpawnGroup, UnaryOperator)}
*/
public static <T extends MobEntity> FabricEntityTypeBuilder.Mob<T> createMob() {
return new FabricEntityTypeBuilder.Mob<>(SpawnGroup.MISC, FabricEntityTypeBuilder::emptyFactory);
Expand Down Expand Up @@ -203,7 +203,7 @@ public FabricEntityTypeBuilder<T> spawnableFarFromPlayer() {
* @param dimensions the dimensions representing the entity's size
*
* @return this builder for chaining
* @deprecated use {@link EntityType.Builder#setDimensions(float, float)}
* @deprecated use {@link EntityType.Builder#dimensions(float, float)}
*/
@Deprecated
public FabricEntityTypeBuilder<T> dimensions(EntityDimensions dimensions) {
Expand Down Expand Up @@ -347,7 +347,7 @@ public EntityType<T> build() {
* An extended version of {@link FabricEntityTypeBuilder} with support for features on present on {@link LivingEntity living entities}, such as default attributes.
*
* @param <T> Entity class.
* @deprecated use {@link EntityType.Builder#createLiving(UnaryOperator)}
* @deprecated use {@link EntityType.Builder#createLiving(EntityType.EntityFactory, SpawnGroup, UnaryOperator)}
*/
@Deprecated
public static class Living<T extends LivingEntity> extends FabricEntityTypeBuilder<T> {
Expand Down Expand Up @@ -606,7 +606,7 @@ public FabricEntityTypeBuilder.Mob<T> defaultAttributes(Supplier<DefaultAttribut
* <p>This is used by mobs to determine whether Minecraft should spawn an entity within a certain context.
*
* @return this builder for chaining.
* @deprecated use {@link FabricEntityType.Builder.Mob#spawnRestriction(SpawnRestriction.Location, Heightmap.Type, SpawnRestriction.SpawnPredicate)}
* @deprecated use {@link FabricEntityType.Builder.Mob#spawnRestriction(SpawnLocation, Heightmap.Type, SpawnRestriction.SpawnPredicate)}
*/
@Deprecated
public FabricEntityTypeBuilder.Mob<T> spawnRestriction(SpawnLocation spawnLocation, Heightmap.Type heightmap, SpawnRestriction.SpawnPredicate<T> spawnPredicate) {
Expand Down

0 comments on commit 3dee2c1

Please sign in to comment.