Skip to content

Commit

Permalink
Changes Iterable for ImmutableCollection in getInputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haven-King committed Feb 20, 2021
1 parent 95feeef commit 3bc285c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/dev/hephaestus/fiblib/api/BlockFib.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.hephaestus.fiblib.api;

import com.google.common.collect.ImmutableCollection;
import dev.hephaestus.fiblib.impl.BlockFibImpl;
import dev.hephaestus.fiblib.impl.BlockStateFib;
import net.minecraft.block.Block;
Expand Down Expand Up @@ -28,7 +29,7 @@ public interface BlockFib {
*
* This list should not change throughout a fibs life.
*/
Iterable<BlockState> getInputs();
ImmutableCollection<BlockState> getInputs();

/**
* Gets the result of this fib when applied to the given state for the given player.
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/dev/hephaestus/fiblib/impl/BlockFibImpl.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.hephaestus.fiblib.impl;

import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
import dev.hephaestus.fiblib.api.BlockFib;
import net.minecraft.block.Block;
Expand Down Expand Up @@ -32,7 +33,7 @@ public final boolean isLenient() {
}

@Override
public final Iterable<BlockState> getInputs() {
public final ImmutableCollection<BlockState> getInputs() {
return this.inputs;
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/dev/hephaestus/fiblib/impl/BlockStateFib.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.hephaestus.fiblib.impl;

import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
import dev.hephaestus.fiblib.api.BlockFib;
import net.minecraft.block.BlockState;
Expand Down Expand Up @@ -27,7 +28,7 @@ public final boolean isLenient() {
}

@Override
public final Iterable<BlockState> getInputs() {
public final ImmutableCollection<BlockState> getInputs() {
return this.inputStates;
}

Expand Down

0 comments on commit 3bc285c

Please sign in to comment.