Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyces committed Jun 26, 2024
1 parent c6f9b1a commit b03ee56
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public InsertableLinkedOpenCustomHashSet() {

/**
* Constructs a new {@link InsertableLinkedOpenCustomHashSet} with the given {@link Hash.Strategy}.
*
* @param strategy The strategy to use for adding and getting elements from the set.
*/
public InsertableLinkedOpenCustomHashSet(Hash.Strategy<? super T> strategy) {
Expand All @@ -42,8 +43,9 @@ public InsertableLinkedOpenCustomHashSet(Hash.Strategy<? super T> strategy) {
* This method will attempt to add {@code element} after the given element {@code insertAfter} in the set. If an
* element matching {@code insertAfter} cannot be found with this set's {@link Hash.Strategy}, then {@code element}
* will be added in insertion order. If {#code element} already exists in the set, then the set is not modified.
*
* @param insertAfter The element to insert {@code element} after.
* @param element The element to add into this set.
* @param element The element to add into this set.
* @return {@code true} if the element was added to the set.
*/
public boolean addAfter(T insertAfter, T element) {
Expand Down Expand Up @@ -83,8 +85,9 @@ public boolean addAfter(T insertAfter, T element) {
* This method will attempt to add {@code element} before the given element {@code insertBefore} in the set. If an
* element matching {@code insertBefore} cannot be found with this set's {@link Hash.Strategy}, then {@code element}
* will be added in insertion order. If {#code element} already exists in the set, then the set is not modified.
*
* @param insertBefore The element to insert {@code element} before.
* @param element The element to add into this set.
* @param element The element to add into this set.
* @return {@code true} if the element was added to the set.
*/
public boolean addBefore(T insertBefore, T element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.util.List;
import java.util.Set;
import java.util.stream.IntStream;
import net.minecraft.core.HolderLookup;
import net.minecraft.core.component.DataComponents;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
Expand All @@ -20,7 +19,6 @@
import net.minecraft.server.MinecraftServer;
import net.minecraft.tags.ItemTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.flag.FeatureFlagSet;
import net.minecraft.world.flag.FeatureFlags;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.CreativeModeTabs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

package net.neoforged.neoforge.unittest;

import java.util.stream.IntStream;

import it.unimi.dsi.fastutil.Hash;
import it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet;
import java.util.stream.IntStream;
import net.neoforged.neoforge.common.util.InsertableLinkedOpenCustomHashSet;
import org.jetbrains.annotations.Nullable;
import org.junit.jupiter.api.Assertions;
Expand Down

0 comments on commit b03ee56

Please sign in to comment.