2021-02-13 23:24:36 +00:00
|
|
|
package net.shadowfacts.phycon.api;
|
|
|
|
|
|
|
|
import net.minecraft.block.BlockState;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.util.math.Direction;
|
2021-02-18 03:29:18 +00:00
|
|
|
import net.minecraft.world.WorldAccess;
|
2021-02-13 23:24:36 +00:00
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
public interface NetworkComponentBlock {
|
|
|
|
|
|
|
|
@NotNull
|
2021-02-18 03:29:18 +00:00
|
|
|
Collection<Direction> getNetworkConnectedSides(@NotNull BlockState state, @NotNull WorldAccess world, @NotNull BlockPos pos);
|
2021-02-13 23:24:36 +00:00
|
|
|
|
|
|
|
@Nullable
|
2021-02-18 03:29:18 +00:00
|
|
|
Interface getNetworkInterfaceForSide(@NotNull Direction side, @NotNull BlockState state, @NotNull WorldAccess world, @NotNull BlockPos pos);
|
2021-02-13 23:24:36 +00:00
|
|
|
|
|
|
|
}
|